Results 1 to 3 of 3

Thread: [DHTML] Rollover Images for Idiots

  1. #1
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default [DHTML] Rollover Images for Idiots

    1) CODE TITLE: Rollover Images for Idiots

    2) AUTHOR NAME/NOTES: jscheuer1

    3) DESCRIPTION:

    This script will allow you to make a list of images to be available for rollovers. All that is required is that you give the image tag(s) that you want to have a rollover a class name of "r#" where the # is the number of the image that you want to show onmouseover.

    It is meant to be very easy to use. It will preload your images automatically and add the onmouseover and onmouseout events to the image tag(s) for you, preserving virtually all existing events for those tags, if any.

    It plays very well with other scripts as, it has only one global variable, two functions and its onload event is designed to append itself to others on the page in most cases.

    The same rollover image may be assigned to multiple image tags, even if their original source images are different, without having to list the rollover image more than once or having to use a different class designation to initialize it.

    Other class names may be used to style your images, as long as the r# class is the first class name listed.

    4) URL TO CODE: http://home.comcast.net/~jscheuer1/side/rollo.htm

    or, ATTACHED BELOW (see #3 in guidelines below):
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  2. #2
    Join Date
    Sep 2005
    Posts
    882
    Thanks
    0
    Thanked 3 Times in 3 Posts

    Default

    Nice. Though I prefer CSS.

  3. #3
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Quote Originally Posted by blm126
    Nice. Though I prefer CSS.
    You are obviously not an idiot then. The script is for folks that cannot be bothered to learn much about style, HTML, or scripting and who just want something to plug into their existing page. I think it is a big improvement over the mm_imageswap or whatever it's called that I've seen in use many places. It is the easiest rollover code to use that I've ever seen, and unlike many others like it, plays very well with other scripts and events.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Bookmarks

Posting Permissions

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