Jump to content
xisto Community
Sign in to follow this  
pbolduc

Need Drop Down Menu Script Current not working in firefox

Recommended Posts

I'm in need of a drop down menu script. The one I am currently using was written to work in both ie and netscape, but does not work in firefox. :)

I new at installation that the author had stretched the rules abit to make it work, but didn't expect firefox to come out.

I don't care what language it is written in as long it works

If you have ie you can see an example at:

http://forums.xisto.com/no_longer_exists/

I would appreciate any help you can recommend

pete

Share this post


Link to post
Share on other sites

No problem, this is the code i used recently for a college assignment:

dropdown menu code:

<form id="select" action="">  <p>  <select name="menu" class="jump" onchange="loc(this)">     <option value="" selected="selected">// Destination</option>    <option value="index.html">Home</option>    <option value="">option</option>    <option  value="latest.html">option</option>    <option value="">option</option>    <option class="options" value="wallpapers.html">option</option>  </select>  </p></form>


javascript code:

function loc(val) {	id = val.options[val.selectedIndex].value;	if (id != "") {location.href = id; }}

it should work perfectly fine in firefox as i have tested it. If you find any problems tell me what they are, thanks.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.