Im having a problem with javascript on my zen cart in the main page editor. I installed the code and everything works ok but there is a delay for it about 3 seconds when it first comes up with a red x. Does anyone know how to fix this I would like to remove the x.
Here is the site
www.musclefreaksnutrition.com
here is the code I installed.
<center>
<div id="welcome">
<SCRIPT LANGUAGE="JavaScript">
<!--
/*
Script by FPMC at http://jsarchive.8m.com
Submitted to JavaScript Kit (http://javascriptkit.com)
For this and 400+ free scripts, visit http://javascriptkit.com
*/
//set image paths
src = ["../images/mass stack.jpg",
"../images/fatloss.jpg",
"../images/metapure.jpg",
"../images/mass stack.jpg",
"../images/fatloss.jpg",
"../images/metapure.jpg",
"../images/mass stack.jpg"]
//set corresponding urls
url = ["http://freewarejava.com",
"http://javascriptkit.com",
"http://dynamicdrive.com",
"http://dynamicdrive.com",
"http://dynamicdrive.com"]
//set duration for each image
duration = 3;
//Please do not edit below
ads=[]; ct=0;
function switchAd() {
var n=(ct+1)%src.length;
if (ads[n] && (ads[n].complete || ads[n].complete==null)) {
document["Ad_Image"].src = ads[ct=n].src;
}
ads[n=(ct+1)%src.length] = new Image;
ads[n].src = src[n];
setTimeout("switchAd()",duration*1000);
}
function doLink(){
location.href = url[ct];
} onload = function(){
if (document.images)
switchAd();
}
//-->
</SCRIPT>
<A HREF="javascript:doLink();" onMouseOver="status=url[ct];return true;"
onMouseOut="status=''">
<IMG NAME="Ad_Image" SRC="image1.gif" BORDER=0>
</A>
<p align="center"><font face="arial" size="-2"><a href="http://javascriptkit.com"></a></font></p>
<br>
</div>



