In these forums, I have seen some simple java code for slideshows but did not see any that included hyperlinks. I only want to have three or four jpeg images on the homepage "image area" of the website with links. I'm using a dev site to change from the old mmui to a full css using the MIVA css perfume store template.
Should I use gif images or is jpeg ok for the purpose?
I found this code from caronec and Bruce and it works for the slideshow. Where should I add the href= ?
Thanks.
<html>
<head>
<script type="text/javascript">
<!--
var image1=new Image()
image1.src="/mm5/graphics/00000001/ABBA_Pure_Gentle_Shampoo_8_45_oz_sm.jpg"
var image2=new Image()
image2.src="/mm5/graphics/00000001/ABBA_Pure_Volume_Shampoo_8_45_oz_sm.jpg"
var image3=new Image()
image3.src="/mm5/graphics/00000001/Abba_Pure_Performance_Hair_Care_Daily_Shampoo_Clea nse_Normal_33_8oz_sm.jpg"
//-->
</script>
</head>
<body>
<img src="/mm5/graphics/00000001/ABBA_Pure_Gentle_Shampoo_8_45_oz_sm.jpg" name="slide" width="600" height="250" />
<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 7.5 seconds
setTimeout("slideit()",2500)
}
slideit()
//-->
</script>
</body>
</html>
Should I use gif images or is jpeg ok for the purpose?
I found this code from caronec and Bruce and it works for the slideshow. Where should I add the href= ?
Thanks.
<html>
<head>
<script type="text/javascript">
<!--
var image1=new Image()
image1.src="/mm5/graphics/00000001/ABBA_Pure_Gentle_Shampoo_8_45_oz_sm.jpg"
var image2=new Image()
image2.src="/mm5/graphics/00000001/ABBA_Pure_Volume_Shampoo_8_45_oz_sm.jpg"
var image3=new Image()
image3.src="/mm5/graphics/00000001/Abba_Pure_Performance_Hair_Care_Daily_Shampoo_Clea nse_Normal_33_8oz_sm.jpg"
//-->
</script>
</head>
<body>
<img src="/mm5/graphics/00000001/ABBA_Pure_Gentle_Shampoo_8_45_oz_sm.jpg" name="slide" width="600" height="250" />
<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 7.5 seconds
setTimeout("slideit()",2500)
}
slideit()
//-->
</script>
</body>
</html>
Comment