Created
January 28, 2020 15:14
-
-
Save plugn/d8b0ab808e86f23e0a9bcfbd45bcbce8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function MM_preloadImages() { //v3.0 | |
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); | |
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++) | |
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}} | |
} | |
MM_preloadImages('img1.gif','img2.gif'); //add more if required |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment