Leaked source code of windows server 2003
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.

110 lines
2.5 KiB

  1. <HTML>
  2. <P ID="ridTitle1" ALIGN=center>
  3. <FONT SIZE=4>
  4. Outlook Express&trade; Picture Slide-Show:
  5. </FONT>
  6. </P>
  7. <HR>
  8. <DIV id=divAthSlideShow STYLE="visibility: hidden">
  9. <P ID="ridButtons" ALIGN=center>
  10. <INPUT TYPE="BUTTON" NAME="btnPrev" VALUE="Previous" onClick="Prev();" ID="ridPrevButton">
  11. <INPUT TYPE="BUTTON" NAME="btnPlay" VALUE="Play" onClick="Play();" ID="ridPlayButton">
  12. <INPUT TYPE="BUTTON" NAME="btnNext" VALUE="Next" onClick="Next();" ID="ridNextButton">
  13. </P>
  14. <P ID="ridImage1" ALIGN=center>
  15. <IMG name="_Ath_Slide" onLoad="OnImgLoad()">
  16. </P>
  17. <P ID="ridRotateImage" ALIGN=center>
  18. <B>File: </B><SPAN id="_Ath_FileName">&lt;loading...&gt;</SPAN>
  19. <BR>
  20. <B>Picture: </B><SPAN id="_Ath_Img_X">x</SPAN> of <SPAN id="_Ath_Img_N">n</SPAN>
  21. </P>
  22. </DIV>
  23. <DIV id=divAthSlideShowNoScript ALIGN=center>
  24. The Outlook Express&trade; Slide-Show cannot be displayed unless scripting is enabled. You need to turn on scripting in
  25. the security settings for the Zone you read mail in. Look under Tools|Options|Security to set security settings for a particular Zone.
  26. </DIV>
  27. <SCRIPT Language="JavaScript" FOR="window" EVENT="onload">
  28. main();
  29. </SCRIPT>
  30. <SCRIPT Language="JavaScript">
  31. g_fPlayMode = 0;
  32. g_iimg = 0;
  33. g_imax = 0;
  34. g_ImageTable = new Array();
  35. L_PlayButton_Text = "Play";
  36. L_StopButton_Text = "Stop";
  37. function ChangeImage(fFwd)
  38. {
  39. if (fFwd)
  40. {
  41. if (++g_iimg==g_imax)
  42. g_iimg=0;
  43. }
  44. else
  45. {
  46. if (g_iimg==0)
  47. g_iimg=g_imax;
  48. g_iimg--;
  49. }
  50. Update();
  51. }
  52. function Update()
  53. {
  54. document.all._Ath_Slide.src = g_ImageTable[g_iimg][0];
  55. document.all._Ath_FileName.innerHTML = g_ImageTable[g_iimg][1];
  56. document.all._Ath_Img_X.innerHTML = g_iimg + 1;
  57. document.all._Ath_Img_N.innerHTML = g_imax;
  58. }
  59. function Play()
  60. {
  61. g_fPlayMode = !g_fPlayMode;
  62. if (g_fPlayMode)
  63. {
  64. btnPrev.disabled = btnNext.disabled = true;
  65. btnPlay.value = L_StopButton_Text;
  66. Next();
  67. }
  68. else
  69. {
  70. btnPrev.disabled = btnNext.disabled = false;
  71. btnPlay.value = L_PlayButton_Text;
  72. }
  73. }
  74. function OnImgLoad()
  75. {
  76. if (g_fPlayMode)
  77. window.setTimeout("Tick()", g_dwTimeOutSec*1000);
  78. }
  79. function Tick()
  80. {
  81. if (g_fPlayMode)
  82. Next();
  83. }
  84. function Prev()
  85. {
  86. ChangeImage(false);
  87. }
  88. function Next()
  89. {
  90. ChangeImage(true);
  91. }
  92. function main()
  93. {
  94. divAthSlideShowNoScript.style.visibility = "hidden";
  95. divAthSlideShow.style.visibility = "visible";
  96. Update();
  97. }
  98. </HTML>