Drop down menu

Go down

Solved Drop down menu

Post by ImProviser on November 25th 2009, 12:23 pm

I've been trying to add dropdown menu to my default page... Go button doesn't seem to work :S

Can anyone review the code, i can't find any mistakes in it...

Code:
<style type="text/css">
select {height: 22px; width: 250px; max-height: 22px}
</style>

<form>
<select name="menu" style="font-family:'Arial';color:#000000;background-color:#FFFFFF;font-size:10pt;">
<option value="http://www.team-xenon.com/pravila-informacije-i-obavestenja-c1/">Pravila, Informacije i Obaveštenja</option>
<option value="http://www.team-xenon.com/upoznavanje-c10/">Upoznavanje</option>
<option value="http://www.team-xenon.com/klanska-sekcija-c2/">Klanska Sekcija</option>
<option value="http://www.team-xenon.com/footbal-manager-c6/">Football Manager</option>
<option value="http://www.team-xenon.com/lige-i-turniri-c5/">Lige i Turniri</option>
<option value="http://www.team-xenon.com/zabava-c4/">Zabava</option>
<option value="http://www.team-xenon.com/grafieka-sekcija-c3/">Grafička Sekcija</option>
<option value="http://www.team-xenon.com/promovisite-svoj-sajt-c11/">Promovišite svoj sajt</option>
<option value="http://www.team-xenon.com/razmena-bannera-f75/">Razmena banera</option>
</select>
<input type="button" onClick="WindowName.location=this.form.menu.options[this.form.menu.selectedIndex].value;" value="GO">
</form>
ImProviser
ImProviser
Forumember

Male Posts : 617
Reputation : 23
Language : Serbian, English, Deutsch
Location : Kraljevo, Serbia

http://www.team-xenon.com

Back to top Go down

Solved Re: Drop down menu

Post by ImProviser on November 25th 2009, 5:47 pm

I've found temporary answer without that GO button so when someone selects from a drop down menu it will lead to desired location... but i really need it with go button...

someone reread the code I would greatly appreciate it
ImProviser
ImProviser
Forumember

Male Posts : 617
Reputation : 23
Language : Serbian, English, Deutsch
Location : Kraljevo, Serbia

http://www.team-xenon.com

Back to top Go down

Solved Re: Drop down menu

Post by Sanket on November 25th 2009, 6:30 pm

There you go Impro, see if it works.
Code:
<style type="text/css">
select {height: 22px; width: 250px; max-height: 22px}
</style>

<form name ="impro">
<select name="menu" style="font-family:'Arial';color:#000000;background-color:#FFFFFF;font-size:10pt;">
<option value="http://www.team-xenon.com/pravila-informacije-i-obavestenja-c1/">Pravila, Informacije i Obaveštenja</option>
<option value="http://www.team-xenon.com/upoznavanje-c10/">Upoznavanje</option>
<option value="http://www.team-xenon.com/klanska-sekcija-c2/">Klanska Sekcija</option>
<option value="http://www.team-xenon.com/footbal-manager-c6/">Football Manager</option>
<option value="http://www.team-xenon.com/lige-i-turniri-c5/">Lige i Turniri</option>
<option value="http://www.team-xenon.com/zabava-c4/">Zabava</option>
<option value="http://www.team-xenon.com/grafieka-sekcija-c3/">Grafic(ka Sekcija</option>
<option value="http://www.team-xenon.com/promovisite-svoj-sajt-c11/">Promovišite svoj sajt</option>
<option value="http://www.team-xenon.com/razmena-bannera-f75/">Razmena banera</option>
</select>
<input  name="submitName"
  type="submit"
  value="Go"
 onClick="window.location.href=impro.menu.options[impro.menu.selectedIndex].value;return false" value="GO">
</form>
Sanket
Sanket
ForumGuru

Male Posts : 48766
Reputation : 2829
Language : English
Location : Mumbai

Back to top Go down

Solved Re: Drop down menu

Post by ImProviser on November 25th 2009, 6:47 pm

Thanks for your effort Wink

Code:
<style type="text/css">
select {height: 22px; width: 250px; max-height: 22px}
</style>

<form name="jump">
<select name="menu">
<option value="#">Izaberite Kategoriju</option>
<option value="http://www.team-xenon.com/pravila-informacije-i-obavestenja-c1/">Pravila, Informacije i Obaveštenja</option>
<option value="http://www.team-xenon.com/upoznavanje-c10/">Upoznavanje</option>
<option value="http://www.team-xenon.com/klanska-sekcija-c2/">Klanska Sekcija</option>
<option value="http://www.team-xenon.com/footbal-manager-c6/">Football Manager</option>
<option value="http://www.team-xenon.com/lige-i-turniri-c5/">Lige i Turniri</option>
<option value="http://www.team-xenon.com/zabava-c4/">Zabava</option>
<option value="http://www.team-xenon.com/grafieka-sekcija-c3/">Grafička Sekcija</option>
<option value="http://www.team-xenon.com/promovisite-svoj-sajt-c11/">Promovišite svoj sajt</option>
<option value="http://www.team-xenon.com/razmena-bannera-f75/">Razmena banera</option>
<option value="#">-------------</option>
<option value="http://www.serbianforum.info">Forum host - Serbian Forum</option>
<option value="http://www.kgb-hosting.com/">CW server - KGB Hosting</option>
</select>
<input type="button" onClick="location=document.jump.menu.options[document.jump.menu.selectedIndex].value;" value="GO">
</form>

That seems to be working...

You can lock it now
ImProviser
ImProviser
Forumember

Male Posts : 617
Reputation : 23
Language : Serbian, English, Deutsch
Location : Kraljevo, Serbia

http://www.team-xenon.com

Back to top Go down

Solved Re: Drop down menu

Post by Sanket on November 25th 2009, 7:08 pm

Since this thread appears to be solved, I will lock this thread and mark it as solved.
Drop down menu 2j4t5a8

Sanket Smile
Sanket
Sanket
ForumGuru

Male Posts : 48766
Reputation : 2829
Language : English
Location : Mumbai

Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum