...

View Full Version : Slideshow Problem Please Help Need It Very Soon!



uncrocks
08-15-2008, 04:01 PM
:confused:I have the following code...

<a href="javascript:clearTimeout(ID)">Pause</a>||<a href="javascript:start()">Play</a><br><script type="text/javascript">
<!--
var image1=new Image()
image1.src="http://www.nbcolympics.com/mm/photo/sports/general/21/62/63/216263_m03.jpg"
var image2=new Image()
image2.src="http://www.huffingtonpost.com/huff-wires/20080629/oly-swm-us-trials/images/83c008dc-a31d-4f41-ab4d-df89bdbcbe20.jpg"
var image3=new Image()
image3.src="http://msnbcmedia.msn.com/j/apmegasports/200708232319839728462-pf.widec.jpg"
var image4=new Image()
image4.src="http://z.about.com/d/gymnastics/1/7/n/-/-/-/ShawnJohnsonGETTYJedJacobsohn.jpg"
var image5=new Image()
image5.src="http://www.nbcolympics.com/mm/photo/olympiczone/general/21/16/58/211658_m03.jpg"
var image6=new Image()
image6.src="http://i14.piczo.com/view/3/k/q/1/l/j/v/u/w/8/2/x/img/i274095936_21936.jpg"
//-->
</script>
<img src="http://z.about.com/d/gymnastics/1/7/c/0/-/-/ShawnJohnsonAmCupChrisTrotmanGETTY80077438.jpg" name="slide" />
<script>
<!--
var step=1
function slideit(){
if (!document.images)
return
document.images.slide.src=eval("image"+step+".src")
if (step<6)
step++
else
step=1
ID = setTimeout("slideit()",1000)
}
function start() {
ID = setTimeout("slideit()",1000)
}
slideit()
//-->
</script>
Is there a way to allow the visitor to rewind and fast-foward through images?:confused:

marilynn.fowler
08-15-2008, 08:11 PM
This might help:

http://www.javascriptworld.com/chap4-9.html

With any luck you'll be able to extract the information that you need.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum