|
-
Jul 12th, 2001, 04:08 AM
#1
Thread Starter
Hyperactive Member
String problem with status text...
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>"
Visual Basic
C, C++
Java
Access
SQL Server
MCP, MCSD
-
Jul 13th, 2001, 09:59 AM
#2
PowerPoster
are you saying that you want the menucontent variable to go into the status bar? You will have to strip the html if you do that.
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|