Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

133 lines
3.0 KiB

  1. <html>
  2. <head>
  3. <script>
  4. var vImage = new Array(
  5. %s)
  6. var cImage = %d
  7. var runSlidesFlag = 0
  8. var iImage = 0
  9. var Mode = "Slideshow"
  10. function loadedDoc()
  11. {
  12. if (navigator.appName != "Netscape" || navigator.appName.indexOf("Microsoft") != -1)
  13. {
  14. top.location.href = "viewer.htm"
  15. }
  16. var preload = new Image()
  17. preload.src = vImage[0]
  18. Slideshow();
  19. Ticker();
  20. }
  21. function Ticker()
  22. {
  23. setTimeout("Ticker()", 1000)
  24. if (runSlidesFlag == 1) {
  25. if (Mode == "Slideshow") {
  26. nextImage()
  27. }
  28. }
  29. }
  30. function Film()
  31. {
  32. Mode = "Film"
  33. document.layers.netFilmLayer.visibility = "show"
  34. document.layers.netSlideLayer.visibility = "hide"
  35. document.layers.netContactLayer.visibility = "hide"
  36. filmSelect(iImage)
  37. }
  38. function Slideshow()
  39. {
  40. Mode = "Slideshow"
  41. document.layers.netFilmLayer.visibility = "hide"
  42. document.layers.netSlideLayer.visibility = "show"
  43. document.layers.netContactLayer.visibility = "hide"
  44. document.layers.netSlideLayer.document.images[0].src = vImage[iImage]
  45. }
  46. function Contact()
  47. {
  48. Mode = "Contact"
  49. document.layers.netFilmLayer.visibility = "hide"
  50. document.layers.netSlideLayer.visibility = "hide"
  51. document.layers.netContactLayer.visibility = "show"
  52. }
  53. function nextImage()
  54. {
  55. iImage = (iImage + vImage.length + 1) % vImage.length
  56. document.layers.netSlideLayer.document.images[0].src = vImage[iImage]
  57. }
  58. function prevImage()
  59. {
  60. iImage = (iImage + vImage.length - 1) % vImage.length
  61. document.layers.netSlideLayer.document.images[0].src = vImage[iImage]
  62. }
  63. function runSlides()
  64. {
  65. runSlidesFlag = (runSlidesFlag + 1) % 2
  66. }
  67. function filmSelect(i)
  68. {
  69. iImage = i;
  70. document.layers.netFilmLayer.document.images[0].src = vImage[i]
  71. }
  72. function nextFilmImage()
  73. {
  74. filmSelect((iImage + vImage.length + 1) % vImage.length)
  75. }
  76. function contactSelect(i)
  77. {
  78. Film()
  79. filmSelect(i)
  80. }
  81. </script>
  82. <style>
  83. TD { valign: center }
  84. TR { align: center }
  85. IMG.THUMB { padding: 20px; cursor: hand;}
  86. BODY { margin: 0; }
  87. </style>
  88. <body onLoad="loadedDoc()" link="#03a0fc" vlink="#03a0fc">
  89. <div style="font-size: 12pt; font-family: Trebuchet MS, Arial, sans-serif"><a href="#" onclick="Film()">Film Strip</a></div>
  90. <div style="font-size: 12pt; font-family: Trebuchet MS, Arial, sans-serif"><a href="#" onclick="Slideshow()">Slideshow</a></div>
  91. <div style="font-size: 12pt; font-family: Trebuchet MS, Arial, sans-serif"><a href="#" onclick="Contact()">Contact Sheet</a></div>
  92. <layer name="netFilmLayer" id=netscapeLayerFilm visibility=hide>
  93. %s
  94. <table>
  95. <tr>
  96. %s</tr></table>
  97. </layer>
  98. <layer name="netSlideLayer" id=netscapeLayerSlide>
  99. %s
  100. <form>
  101. <input class=SLIDECONTROLS type=button value="Back" onclick="prevImage()">
  102. <input class=SLIDECONTROLS id=runButton type=button value="Play" onclick="runSlides()">
  103. <input class=SLIDECONTROLS type=button value="Forward" onclick="nextImage()">
  104. </form>
  105. </layer>
  106. <layer name="netContactLayer" id=netscapeLayerContact visibility=hide>
  107. <table>
  108. <tr>
  109. %s</tr></table>
  110. </layer>
  111. </body>
  112. </html>