Advertisement
thuechen

slideshow website

Jun 4th, 2015
470
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.02 KB | None | 0 0
  1. <!-- this script got from www.facebook.com/thuechen-Coded by: RICHARD ENAGE -->
  2. <html>
  3. <head>
  4. </head>
  5. <body>
  6.  
  7. <script language="javascript" type="text/javascript">
  8. <!-- Begin
  9. // Set slideShowSpeed (milliseconds)
  10. var slideShowSpeed = 2000;
  11. // Duration of crossfade (seconds)
  12. var crossFadeDuration = 3;
  13. // Specify the image files
  14. var Pic = new Array();
  15. // to add more images, just continue
  16. // the pattern, adding to the array below
  17.  
  18. Pic[0] = 'http://www.htmlbestcodes.com/images/toad.jpg'
  19. Pic[1] = 'http://www.htmlbestcodes.com/images/lizard.jpg'
  20. Pic[2] = 'http://www.htmlbestcodes.com/images/chameleon.jpg'
  21. Pic[3] = 'http://www.htmlbestcodes.com/images/gecko.jpg'
  22. Pic[4] = 'http://www.htmlbestcodes.com/images/gecko.jpg'
  23. Pic[5] = 'http://www.htmlbestcodes.com/images/gecko.jpg'
  24. Pic[6] = 'http://www.htmlbestcodes.com/images/gecko.jpg'
  25. Pic[7] = 'http://www.htmlbestcodes.com/images/gecko.jpg'
  26.  
  27. // do not edit anything below this line
  28. var t;
  29. var j = 0;
  30. var p = Pic.length;
  31. var preLoad = new Array();
  32. for (i = 0; i < p; i++) {
  33. preLoad[i] = new Image();
  34. preLoad[i].src = Pic[i];
  35. }
  36. function runSlideShow() {
  37. if (document.all) {
  38. document.images.SlideShow.style.filter="blendTrans(duration=2)";
  39. document.images.SlideShow.style.filter="blendTrans(duration=crossFadeDuration)";
  40. document.images.SlideShow.filters.blendTrans.Apply();
  41. }
  42. document.images.SlideShow.src = preLoad[j].src;
  43. if (document.all) {
  44. document.images.SlideShow.filters.blendTrans.Play();
  45. }
  46. j = j + 1;
  47. if (j > (p - 1)) j = 0;
  48. t = setTimeout('runSlideShow()', slideShowSpeed);
  49. }
  50. window.onload=runSlideShow;
  51. // End -->
  52. </script>
  53. <center>
  54. <table border="0" cellpadding="0" cellspacing="0">
  55. <tr>
  56. <td id="VU" height=190 width=330>
  57. <img src="http://www.htmlbestcodes.com/images/toad.jpg" name='SlideShow' width=330 height=190>
  58. </td>
  59. </tr>
  60. </table>
  61. </center>
  62.  
  63. <br/><div style="clear:both"></div><div><a target="_blank" href="http://www.facebook.com/thuechen"><span style="font-size: 8pt; text-decoration: none">FACEBOOK </span></a></div>
  64. </body>
  65. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement