JavaScript Examples

Images and Rollovers

  • Change an image w/ a button
  • Change an image w/ a button (using relative URLs)
  • Image replacements must be the same size for Netscape
  • Change an image back
  • Change only the second image in a page
  • Change an image using the NAME attribute
  • onMouseOver event handler
  • onMouseOut event handler
  • Basic rollover
  • javascript: pseudo protocol
  • Disable the hyperlink
  • Preload rollover images
  • A more polished rollover example

Return to Examples main menu