Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- jQuery.preloadImages = function() {
- var a = (typeof arguments[0] == 'object')? arguments[0] : arguments;
- for(var i = a.length -1; i > 0; i--) {
- imgload = new image();
- $(imgload).src = a[i];
- }
- }
- $(window).bind('load', function() {
- $.preloadImages(
- "login-button2.png",
- "register-button2.png",
- "search2.png",
- "rss2.png"
- );
- });
Add Comment
Please, Sign In to add comment