JavaScript CODE for creating slide show wizard

Asked By 0 points N/A Posted on -
qa-featured

Hello,

JavaScript experts! I am interested to create slide show wizard through JavaScript.

I am a novice in JavaScript applications.

Can anyone help by providing JavaScript CODE for creating slide show wizard.

SHARE
Answered By 60 points N/A #182126

JavaScript CODE for creating slide show wizard

qa-featured

Hello Rosemary,

I will try to guide you with JavaScript slide maker. Please follow the instructions below:

1. At first get some images.

2. Load the images with JavaScript:

<Head>
<Script type="text/javascript">
<!--
var image1=new Image()
image1.src="firstcar.gif"
var image2=new Image()
image2.src="secondcar"
var image3=new Image()
image3.src="thirdcar.gif"
//-->
</Script>
</Head>

3.

<Body>
<img src="firstcar.gif" name="slide" width=100 height=56>
</Body>

4. Now everything in place so we need some script to play the slides.

<Script type="text/javascript">
<!--
//A 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>

Hope this will help You.

Thank you.

Related Questions