dcsimg
www.webdeveloper.com
Results 1 to 2 of 2

Thread: Changing image onmouseover and onlick in a different div

  1. #1
    Join Date
    Nov 2009
    Posts
    1

    Changing image onmouseover and onlick in a different div

    Hello,

    I'm trying to make a navigation system with a difference. I will have horizontal buttons with a mouseover that displays an image (with image map) below in a separate div. All buttons are to navigate the onmouseover/onmouseclick to the same div.

    The image map is fine but I really can't figure out how to get the mouseover to change an image in a separate div......any suggestions would be greatly appreciated.

    Many thanks

  2. #2
    Join Date
    Apr 2009
    Location
    Leeds, England
    Posts
    101
    I'm not sure I fully understand what you want to do; but here's a suggestion based on my understanding of it.

    Whatever the image is you want to change the source of, give it a unique id, and access it via:

    document.getElementById('imageID').src='images/newimage.jpg';

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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