SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Evangelist's Avatar
    Join Date
    Apr 2002
    1 Post(s)
    0 Thread(s)

    Hover command in a .js file - please help

    After requesting help in this thread, somebody kindly came up with the following code which I use in a .js file to send my visitors to a different link for each month:

    months[9]="this <a onMouseOver=\"window.status='Go here to visit our September link'; return true;\" onCLick=\"location.href=''\" title=\"September\" style=\"color: 1D418B; text-decoration: underline; cursor: hand; \"> September Site</a>";

    I need to integrate it into my site which currently has the following command in the header:


    A:link {color:#1D418B}
    A:hover {text-decoration: underline overline}

    Unfortunately, the hover and visited commands do not seem to affect the code I have provided. We've managed to incorporate the a:link command, as you can see, but not the other style features. Is there any way of adding the a:hover and a:visited command to the script? I've put the bit that we need to add these commands to in bold. I have tried several permutations of these commands, but it doesn't seem to have any effect on the text that is displayed.

    Thank you
    Last edited by; Nov 23, 2002 at 20:51.
    Azam Marketing, Inc.
    Award-Winning Digital Marketing and Design Results Since 1997
    Click here to read acclaimed online marketing & design blog

  2. #2
    Rehab is for quiters! spartan's Avatar
    Join Date
    Apr 2002
    Cape Town, South Africa
    0 Post(s)
    0 Thread(s)
    what browser are you using?
    It's like our sergeant told us before one trip into the jungle. Men! Fifty of you are leaving on a mission. Twenty-five of you ain't coming back.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts