Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Dec 2004
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Problem with onmouseover & onmouseout

    Hi,

    Can someone help me with the following problem please? I'm making a site and I want to use several gif files as hyperlinks. When the mouse isn't on the gif I want it to be yellow (introduction.gif), but when the mouse is on the link it should turn blue (introduction2.gif). I have a book which states the code should be as follow:

    <a target="Homepage" href="Introduction.html"
    onmousover = document.images["introduction"].src="images/introduction2.gif";
    onmouseout = document.images["introduction"].src="images/introduction.gif";>
    <img border="0" src="images/introductie.gif" NAME="introduction" width="135" height="33"></a>

    Unfortunately it doesn't work. Is there something missing?
    Thanks in advance.

    -Teron-

  • #2
    Regular Coder
    Join Date
    Oct 2004
    Posts
    168
    Thanks
    0
    Thanked 5 Times in 5 Posts
    You have spelled onmouseover incorrectly.

  • #3
    New to the CF scene
    Join Date
    Dec 2004
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Thank you very much

    ....to think I overlooked something so obvious.....I must look away from the screen once in a while....

    You have my greatest thanks for pointing it out to me.

  • #4
    Regular Coder
    Join Date
    Oct 2004
    Posts
    168
    Thanks
    0
    Thanked 5 Times in 5 Posts
    No problem - always check the simple things first

    PS
    Looking away from the screen is also a good idea.


  •  

    Posting Permissions

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