Posted By

aurele on 08/28/06


Tagged


Versions (?)

rotarlogo.js


 / Published in: JavaScript
 

rotar logo elyon

  1. var slidespeed=2000
  2. var slideimages=new Array("logoEPM.jpg","img1--0.jpg","img1--1.jpg","img1--1.jpg","img1--2.jpg","img1--3.jpg","img1--4.jpg","img1--5.jpg","img1--6.jpg","img1--7.jpg")
  3. var slidelinks=new Array("http://www.elyonpatermusic.com","http://www.elyonpatermusic.com","http://www.elyonpatermusic.com","http://www.elyonpatermusic.com","http://www.elyonpatermusic.com","http://www.elyonpatermusic.com","http://www.elyonpatermusic.com","http://www.elyonpatermusic.com")
  4.  
  5. var whichlink=0
  6. var whichimage=0
  7. var imgobj, filtersupport, blenddelay
  8. var imageholder=new Array()
  9. for (i=0;i<slideimages.length;i++){ //preload images
  10. imageholder[i]=new Image()
  11. imageholder[i].src=slideimages[i]
  12. }
  13.  
  14. function gotoshow(){
  15. window.location=slidelinks[whichlink]
  16. }
  17.  
  18. function slideit(){
  19. if (filtersupport)
  20. imgobj.filters[0].apply()
  21. imgobj.src=imageholder[whichimage].src
  22. if (filtersupport)
  23. imgobj.filters[0].play()
  24. whichlink=whichimage
  25. whichimage=(whichimage<slideimages.length-1)? whichimage+1 : 0
  26. setTimeout("slideit()", slidespeed+blenddelay)
  27. }
  28. window.onload=function(){
  29. imgobj=document.getElementById("slideshow") //access img obj
  30. filtersupport=imgobj.filters //check for support for filters
  31. blenddelay=(filtersupport)? imgobj.filters[0].duration*1000 : 0
  32. slideit()
  33. }

Report this snippet  

You need to login to post a comment.