1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
  5. <title>随机变换的幻灯片效果</title>
  6. <style type="text/css">
  7. .flashclass{ /*sample CSS class added to image slideshow container*/
  8. width: 200px; /*a width should be defined for transition to work*/
  9. border: 5px solid orange;
  10. padding: 5px;
  11. }
  12. .flashclass img{
  13. border-width: 0;
  14. }
  15. </style>
  16. <script type="text/javascript" src="transitionshow.js">
  17. </script>
  18. </head>
  19. <body>
  20. <script type="text/javascript">
  21. var flashyshow=new flashyslideshow({ //create instance of slideshow
  22. wrapperid: "myslideshow", //unique ID for this slideshow
  23. wrapperclass: "flashclass", //desired CSS class for this slideshow
  24. imagearray: [
  25. ["summer.jpg", "http://www.sharejs.com", "_new", "Such a nice Summer getaway."],
  26. ["winter.jpg", "http://en.wikipedia.org/wiki/Winter", "", "Winter is nice, as long as there's snow right?"],
  27. ["spring.jpg", "", "", "Flowers spring back to life in Spring."],
  28. ["autumn.jpg", "", "", "Ah the cool breeze of autumn."]
  29. ],
  30. pause: 2000, //pause between content change (millisec)
  31. transduration: 1000 //duration of transition (affects only IE users)
  32. })
  33. </script>
  34. </body>
  35. </html>

幻灯片切换轮播效果,文件下载:http://pan.baidu.com/s/1sjGzJHV