Need help, Interesting Slide show !!
Hi all,
I am attempting to setup slide show with some preselected products. When tested it is running fine on my local host.
When I am uploading it to X-cart in the home page (using e.g.: slide_show.tpl) a blank image box shows up where there is flickers but the actual images don't show up....
I have pasted the codes I tried below. Can someone suggest the error. It would be useful for lot many other users too.
Thanks in advance...
Codes:
-------------------------------------------------
<html>
<head>
<script type="text/javascript">
<!--
var image1=new Image()
image1. src="{$ImagesDir}/scroller images/offer-01.jpg"
var image2=new Image()
image2. src="{$ImagesDir}/scroller images/offer-02.jpg"
var image3=new Image()
image3. src="{$ImagesDir}/scroller images/offer-03.jpg"
//-->
</script>
</head>
<body>
<img src="{$ImagesDir}/scroller images/100048.jpg" name="slide" border="0" width="115" height="56" />
<script>
<!--
//variable that will increment through the images
var step=1
function slideit(){
//if browser does not support the image object, exit.
if (!document.images)
return
document.images.slide.src=eval("image"+step+".src" )
if (step<3)
step++
else
step=1
//call function "slideit()" every 2.5 seconds
setTimeout("slideit()",2500)
}
slideit()
//-->
</script>
</body>
</html>
---------------------------------------
Balinor, may I request you for help please...
__________________
X-Cart Pro 4.1.9
[Migrated from Gold 4.1.8 to Pro 4.1.9 - Feb 2008]
Add Ons: X-FancyCategories, X-Magnifier, X-FeatureComparison, X-SpecialOffers
|