I have a little menu (navigation) script that uses this code
to write the menu on the html page:
....code to asign the urlsplit variables...
menucontent += "<TR><TD COLSPAN=2><A HREF=" + urlsplit[1] + " TARGET=" + urlsplit[2] + ">" + urlsplit[0] + "</A><BR></TD></TR>"
if (document.all) {
menu.innerHTML=menucontent
}
Now I want to use the window.status function on the
onmouseover action on the A HREF tag, but i only get errors when trying to implement that.
This is the syntax for the status text i belive:
"window.status='text something, but want a variabel' ; return true"
The problem is when I try to build a string of this with the
orginal asigning the variabel menucontent. Anyone got any ideas to slove this??
this is what I have figured out so far:......
menucontent += "<TR><TD COLSPAN=2><A HREF=" + urlsplit[1] + " TARGET=" + urlsplit[2] +
" ONMOUSEOVER='window.status='" + urlsplit[0] + "'; return true'>"
+ urlsplit[0] + "</A><BR></TD></TR>"




Reply With Quote