I have this function that depending on the value passed will do what ever.
function menu(n){
switch(n)
{
case 0:
document.getElementById('sub2').style.display = 'none';
document.getElementById('sub3').style.display = 'inline';
menu1();
break;
case 1:
document.getElementById('sub3').style.display = 'none';
document.getElementById('sub2').style.display = 'inline';
menu2();
break;
}
}
I also have an Image that when clicked will go to a different page. Is there an event that I can use to trigger this function after the page changes?
Thanks, Edouard.