2 drop down menus on same page

  • 1
  • Question
  • Updated 10 years ago
  • Answered
when i add this code it works great-
<!--
<div style="text-align: right;"> <form name="menu"> <select style="font-size:12px;color:#006699;font-family:verdana;background-color:#ffffff;" name="menu"> <option value="http://hexham.info">Business Search</option> <option value="http://hexham.info/local-events.php">... </option> <option value="http://hexham.info/contact-us.php">Co... Us</option> <option value="http://hexham.info/local-news.php">Local News</option> <option value="http://hexham.info/featured-business.... Business</option> </select> <input style="font-size:12px;color:#ffffff;font-family:verdana;background-color:#91d929;" type="button" onClick="location=document.menu.menu.options[document.menu.menu.selectedIndex].value;" value="Go"> </form>
-->

When i try to add it twice on one page it shows but does not function. Is this a problem from the code or synthasite compatibility?
Photo of UK Duke

UK Duke, Champion

  • 3321 Posts
  • 213 Reply Likes
  • always happy

Posted 10 years ago

  • 1
Photo of Emmy

Emmy

  • 5892 Posts
  • 299 Reply Likes
Hello Lee,
Where are you getting the code from? Is this a contact form?

Thanks,
Emmy
Photo of UK Duke

UK Duke, Champion

  • 3321 Posts
  • 213 Reply Likes
its to do this:

its a clean little menu bar to my main pages but it wont work twice on the same page?
Photo of UK Duke

UK Duke, Champion

  • 3321 Posts
  • 213 Reply Likes
I have just tested it on a blank html page and it does not work with 2 on the same page - so its nothing to do with synthasite - i'll try to find out why.
Thanks
Photo of Emmy

Emmy

  • 5892 Posts
  • 299 Reply Likes
Thanks for letting us know Lee! Good luck!
Photo of Ed-a-Torials @ Honey Bear Playhomes

Ed-a-Torials @ Honey Bear Playhomes, Champion

  • 2582 Posts
  • 279 Reply Likes
Hi Lee

Code is sometimes odd in that it does not like two exact same codes named the same thing on the same page for one counteracts the other.

The only way to get around this is to name the key menu something different. On the second code try to name it "menu2"

<!--
<div style="text-align: right;"> <form name="menu2"> <select style="font-size:12px;color:#006699;font-family:verdana;background-color:#ffffff;" name="menu2"> <option value="http://hexham.info">Business Search</option> <option value="http://hexham.info/local-events.php">... </option> <option value="http://hexham.info/contact-us.php">Co... Us</option> <option value="http://hexham.info/local-news.php">Local News</option> <option value="http://hexham.info/featured-business.... Business</option> </select> <input style="font-size:12px;color:#ffffff;font-family:verdana;background-color:#91d929;" type="button" onClick="location=document.menu.menu.options[document.menu.menu.selectedIndex].value;" value="Go"> </form>
-->

P.S. I tried it and it works... ;)

Merry Christmas...
Ed
http://pagepeel.synthasite.com/
http://honeybearplayhomes.com/
http://honeybearplayhomes.synthasite....
Photo of UK Duke

UK Duke, Champion

  • 3321 Posts
  • 213 Reply Likes
nice one amigo - this is exactly what i wanted to hear. :) The answer is always obvious when you know what it is! thansk so much.
Photo of Emmy

Emmy

  • 5892 Posts
  • 299 Reply Likes
That's awesome Ed! Very cool!
Photo of njoynlife

njoynlife

  • 278 Posts
  • 9 Reply Likes
Nice of you Mr. Ed!