Helo
I have this function for preloading some images from dreamweaver:
function MM_preloadImages() { //v3.0
var d=document;
if(d.images)
{
if(!d.MM_p) d.MM_p=new Array();
var i,j,a;
j=d.MM_p.length;
a=MM_preloadImages.arguments;
for(i=0; i<a.length; i++)
{
if (a.indexOf("#")!=0)
{
d.MM_p[j]=new Image;
d.MM_p[j++].src=a;
}
}
}
}
And I call the function in <body onload="MM_preloadImages(' ...)">
The thing is that it works when i open a new IE window and type the URL of the site in there. But when i send myself an email containing the link and i click on the link i get an error of "Expected ':'" on line
d.MM_p[j]=new Image;
Can someone help pls?
I have this function for preloading some images from dreamweaver:
function MM_preloadImages() { //v3.0
var d=document;
if(d.images)
{
if(!d.MM_p) d.MM_p=new Array();
var i,j,a;
j=d.MM_p.length;
a=MM_preloadImages.arguments;
for(i=0; i<a.length; i++)
{
if (a.indexOf("#")!=0)
{
d.MM_p[j]=new Image;
d.MM_p[j++].src=a;
}
}
}
}
And I call the function in <body onload="MM_preloadImages(' ...)">
The thing is that it works when i open a new IE window and type the URL of the site in there. But when i send myself an email containing the link and i click on the link i get an error of "Expected ':'" on line
d.MM_p[j]=new Image;
Can someone help pls?