Welcome To Snipplr
Everyone's Recent JavaScript Snippets Tagged image
- All /
 - JavaScript /
 - HTML /
 - PHP /
 - CSS /
 - Ruby /
 - Objective C
 
Using CSS is, of course, the preferred method of performing mouseover image swapping, but it's good to have a few tricks up your sleeve. Here's one way of doing it with JS, but the images have to be pre-loaded, or else there'll be a slight lag in the...
        
        
        
            1 
        
        
            1101 
        
                    posted 19 years ago by pckujawa
            The ideal use of this code would be to save the Javascript code as a .js file.  Then use the HTML code at the bottom to call it wherever you want on the web page.
        
        
        
            1 
        
        
            1430 
        
                    posted 19 years ago by Jaymoon