Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Image Rollover scripts

Status
Not open for further replies.

purpledawn

Programmer
Joined
Jun 21, 2001
Messages
50
Location
US
I've looked the source code for a number of web pages and I keep seeing these same javascript functions for image rollovers, with names like MM_swapimage(), MM_preloadimage()...

I've browsed for documentaion for these functions, but I can't find any. Does anyone know what these are?
 
The swapimage() is a function that will change the image shown when something occurs. It's probably a mouseover, where if you move your mouse over a certain spot, an image will change somewhere else. I used one in my own web page: If you move the mouse over the links, the image on the left will change.

Preloading is a method of saving time. Images are preloaded on the first page so that when you move to another page, you won't have to wait for the pictures to load. I did that on the same page as well, so if you wait long enough for the images to load on the home page, then they will already be there when you get to my photos page.

If you would like, I don't mind you stealing the code from my web page. I got it from the JavaScript Bible, a great sourcebook.
 
Thanks for your generous help and offer John. I'll definately use your code to model the page I'm making.

Another thing that I'm interested in is those specific functions that I mentioned above (MM_fnName). There are version numbers, and I have seen them in many, many different sites. They seem to be very widely used.

Does anyone know about this specific suite of functions, or where I can find out about them?

Thanks.
 
These are autmatically written by a macromedia program like Dreamweaver or fireworks [hence the MM]- you can download these for free trials at
;-)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top