Jump to content

Javascript again


peasepud
 Share

Recommended Posts

function nextImage()
{
if(list.selectedIndex == list.options.length-1)
{
 list.selectedIndex = 0;
}
else
{
 list.selectedIndex++;
}
changeImage();
}


function changeImage()
{
 galpic.src = list.options[list.selectedIndex].value;
}

 

Anyone tell me why that works on IE but not FIrefox? it displays the first pic but wont allow the pic to change.

Link to comment
Share on other sites

I'm guessing, but it'll probably be something to do with which Java Virtual Machine each browser is using. There are two common ones (Microsoft JVM and Sun JVM).

 

Don't know a lot else about it apart from you can change the settings in IE from the advanced tab on Internet Options.

Link to comment
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
 Share

×
×
  • Create New...

Important Information

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.