[jQuery] Generic mouseover jode via jQuery?

[jQuery] Generic mouseover jode via jQuery?

I've got mouseover code I've been using for several years now. It works
really well and is pretty streamlined, although it requires I instantiate
each image (used for preloading). You can see it below. I'm wondering if
anyone has a plugin which duplicates this functionality.
I saw Gilles plugin and it seems like it would work, but I'm not sure if
that preloads, plus the download link is broken.
Anyone?
---------------
if (document.images) {
    /* left nav rollover loading */
    home_off = new Image();
    home_off.src = "images/nav_home.jpg";
    home_on = new Image();
    home_on.src = "images/nav_home_o.jpg";
    aboutus_off = new Image();
    aboutus_off.src = "images/nav_aboutus.jpg";
    aboutus_on = new Image();
    aboutus_on.src = "images/nav_aboutus_o.jpg";
}
function swap() {
    if (document.images) {
    for (var i=0; i<swap.arguments.length; i+=2) {
        document[swap.arguments[i]].src = eval(swap.arguments[i+1] + ".src");
        }
    }
}
---------------
<!----------------//------
andy matthews
web developer
certified advanced coldfusion programmer
ICGLink, Inc.
andy@icglink.com
615.370.1530 x737
--------------//--------->
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/






































    • Topic Participants

    • andy