www.webdeveloper.com
Results 1 to 2 of 2

Thread: Need Help- 'onclick' problem

  1. #1
    Join Date
    Apr 2005
    Posts
    1

    Need Help- 'onclick' problem

    I put this code in and when I go over the image, it doesnt work. And both images are correct.

    <a href="rules.html"
    onMouseOver="document.pic1.src='onclickrules.gif'"
    onMouseOut="document.pic1.src='RULES.GIF'">
    <img src="RULES.GIF" BORDER="0" NAME="pic1">
    </a>

    Any help would be appreiciated. Thanks in advance.

  2. #2
    Join Date
    Jun 2004
    Location
    England
    Posts
    2,972
    Javascript is not Java, Java is not javascript.

    You'd do better to use this.src in the image element.
    Disclaimer. (1) Whilst I will help you sometimes, if I feel like it, and my advice in relation to your actual question will be of good quality: my posts are to be taken with a pinch of salt. I will be sarcastic, deploy irony and include obscure cultural references for my own amusement without warning.
    (2) You will gain nothing from complaining, and if you try to argue with me then you will not win. No matter how noble your battle seems, I am still better than you, don't be an hero.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles