dcsimg
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.

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