JavaScript Slideshow<script language="JavaScript1.1"><!--/*JavaScript Image slideshow:By JavaScript Kit (www.javascriptkit...
function slideshowlinks(){for (i=0;i<slideshowlinks.arguments.length;i++)slidelinks[i]=slideshowlinks.arguments[i]}functio...
//configure the paths of the images, plus corresponding target linksslideshowimages("food1.jpg","food2.jpg","food3.jpg","f...
setTimeout("slideit()",slideshowspeed)}slideit()//--></script><p align="center"><font face="arial" size="-2">This free scr...
Upcoming SlideShare
Loading in...5
×

Java script slideshow by karan chanana

412

Published on

Published in: Education
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
412
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
1
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Java script slideshow by karan chanana

  1. 1. JavaScript Slideshow<script language="JavaScript1.1"><!--/*JavaScript Image slideshow:By JavaScript Kit (www.javascriptkit.com)Over 200+ free JavaScript here!*/var slideimages=new Array()var slidelinks=new Array()function slideshowimages(){for (i=0;i<slideshowimages.arguments.length;i++){slideimages[i]=new Image()slideimages[i].src=slideshowimages.arguments[i]}}
  2. 2. function slideshowlinks(){for (i=0;i<slideshowlinks.arguments.length;i++)slidelinks[i]=slideshowlinks.arguments[i]}function gotoshow(){if (!window.winslide||winslide.closed)winslide=window.open(slidelinks[whichlink])elsewinslide.location=slidelinks[whichlink]winslide.focus()}//--></script><a href="javascript:gotoshow()"><img src="food1.jpg" name="slide"border=0 width=300 height=375></a><script><!--
  3. 3. //configure the paths of the images, plus corresponding target linksslideshowimages("food1.jpg","food2.jpg","food3.jpg","food4.jpg","food5.jpg")slideshowlinks("http://food.epicurious.com/run/recipe/view?id=13285","http://food.epicurious.com/run/recipe/view?id=10092","http://food.epicurious.com/run/recipe/view?id=100975","http://food.epicurious.com/run/recipe/view?id=2876","http://food.epicurious.com/run/recipe/view?id=20010")//configure the speed of the slideshow, in milisecondsvar slideshowspeed=2000var whichlink=0var whichimage=0function slideit(){if (!document.images)returndocument.images.slide.src=slideimages[whichimage].srcwhichlink=whichimageif (whichimage<slideimages.length-1)whichimage++elsewhichimage=0
  4. 4. setTimeout("slideit()",slideshowspeed)}slideit()//--></script><p align="center"><font face="arial" size="-2">This free script provided by</font><br><font face="arial, helvetica" size="-2"><a href="http://javascriptkit.com">JavaScriptKit</a></font></p>

×