Simple RollOver Swap Image
Oct 28, 2008 Javascript, Tricks
Adobe Dreamweaver offers a way to Swap Images by adding javascript through its behaviours which uses following functions:
function MM_swapImgRestore() function MM_findObj(n, d) function MM_swapImage() function MM_preloadImages()
And at OnMouseOver and OnMouseOut events you can swap images, but that method adds a lot of javascript code into your pages.
There is another very simple and easy way of swapping images. You need a single js file of 1 kb that will be sufficient for all the pages of your website. Moreover implementation of code is as easy as think and done.
Tags: Javascript, swap, Tricks