The question: can anyone tell me what is wrong with this code in mmenu_array.js:
Code: Select all
,"<img src=home_off.gif border=0 name=home>","index.html onmouseover=javascript:document[\"home\"].src=\"home_on.gif\"",,,0 // "Description Text", "URL", "Alternate URL", "Status", "Separator Bar
I have also tried it like this:
Code: Select all
,"<img src=home_off.gif border=0 name=home>","index.html onmouseover=javascript:imgOn(\"home\")",,,0 // "Description Text", "URL", "Alternate URL", "Status", "Separator Bar"
This is calling a javascript function defined in the head tag which looks like
Code: Select all
<SCRIPT LANGUAGE=javascript><!--
function imgOn(imgName) {
document[imgName].src = imgName + "_on.gif";
}
//--></SCRIPT>
I also tried the swap-image tag in the menu, but no luck.
If anyone has run into this problem and has suggestions or solutions, please let me know.
\michael