Results 1 to 2 of 2

Thread: String problem with status text...

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    May 2000
    Location
    Kalix, Norrbotten, SWEDEN
    Posts
    343

    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

  2. #2
    PowerPoster sail3005's Avatar
    Join Date
    Oct 2000
    Location
    Chicago, IL, USA
    Posts
    2,340
    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
  •  



Click Here to Expand Forum to Full Width