Posted By

mayes on 04/02/08


Tagged


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

paullorentzen


Sildeshow Pro HTML / JAVASCRIPT


 / Published in: HTML
 

  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. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  4. <title>Untitled Document</title>
  5. <script type="text/javascript" src="js/swfobject.js"></script>
  6. <script type="text/javascript">
  7.  
  8. function sspToggleDisplayMode() {
  9. thisMovie("ssp").sspToggleDisplayMode();
  10. }
  11.  
  12. /*
  13. Passes the ID of the album from the XML file
  14. we want SlideShowPro inside the SWF to load
  15. */
  16. function sspLoadAlbum(album) {
  17. thisMovie("ssp").sspLoadAlbum(album);
  18. }
  19.  
  20. function thisMovie(movieName) {
  21. if (navigator.appName.indexOf("Microsoft") != -1) {
  22. return window[movieName]
  23. } else {
  24. return document[movieName]
  25. }
  26. }
  27.  
  28. </script>
  29. </head>
  30. <div id="flashcontent"> You need to update your version of the Flash Player to view this movie. </div>
  31. <script type="text/javascript">
  32. var so = new SWFObject("my_ssp.swf", "ssp", "550", "400", "8", "#000000");
  33. so.addParam("allowScriptAccess", "always");
  34. so.write("flashcontent");
  35. </script>
  36. <p><a href="#" onclick="sspLoadAlbum('album-14');">Logos</a> | <a href="#" onclick="sspLoadAlbum('album-15');">Illustration</a> | <a href="#" onclick="sspLoadAlbum('album-16');">Print</a> | <a href="#" onclick="sspLoadAlbum('album-17');">Products</a> | <a href="#" onclick="sspLoadAlbum('album-18');">Websites</a> | <a href="#" onclick="sspLoadAlbum('album-19');">Photography</a> </p>
  37. </body>
  38. </html>

Report this snippet  

You need to login to post a comment.