A
Allan Bruun
Hi all!!
Could anyone help me with this annoying problem:
When I enter the site www.vans-nordic.com I get this error in the browser:
"document.all[...].style is null or not an object"
This is what the files look like:
Left.htm:
<SCRIPT language=javascript src="menuscript.js" type=text/javascript></SCRIPT>
.....
....
....
menuscript.js:
function lag(lagnavn, bil) // IE4+
{
if (document.all[lagnavn].style.display == 'none') {
document.all[lagnavn].style.display = 'block';
bil.src = 'pics/minus.png';
} else {
document.all[lagnavn].style.display = 'none';
bil.src = 'pics/plus.png';
}
}
function menu(action, menunavn)
{
if (action == "over") { document.all[menunavn].style.backgroundColor = "";}
if (action == "out") { document.all[menunavn].style.backgroundColor = ""; }
}
function skift(hvor, farve)
{
// husk # i kald til funktion
hvor.style.backgroundColor = farve;
}
What´s the problem here??
Thanks!
Allan Bruun
Could anyone help me with this annoying problem:
When I enter the site www.vans-nordic.com I get this error in the browser:
"document.all[...].style is null or not an object"
This is what the files look like:
Left.htm:
<SCRIPT language=javascript src="menuscript.js" type=text/javascript></SCRIPT>
.....
....
....
menuscript.js:
function lag(lagnavn, bil) // IE4+
{
if (document.all[lagnavn].style.display == 'none') {
document.all[lagnavn].style.display = 'block';
bil.src = 'pics/minus.png';
} else {
document.all[lagnavn].style.display = 'none';
bil.src = 'pics/plus.png';
}
}
function menu(action, menunavn)
{
if (action == "over") { document.all[menunavn].style.backgroundColor = "";}
if (action == "out") { document.all[menunavn].style.backgroundColor = ""; }
}
function skift(hvor, farve)
{
// husk # i kald til funktion
hvor.style.backgroundColor = farve;
}
What´s the problem here??
Thanks!
Allan Bruun