home *** CD-ROM | disk | FTP | other *** search
/ PC World 2002 June / PCWorld_2002-06_cd.bin / Software / TemaCD / thumbnail / _SETUP.1 / P1.dat < prev    next >
Text File  |  2002-01-08  |  4KB  |  192 lines

  1. <HTML>
  2. <HEAD>
  3. /* version 1.4.1 */
  4. <SCRIPT LANGUAGE="JAVASCRIPT">
  5. <!-- Hide script from incompatible browsers! -->
  6. var slidecount=0;
  7.     firsttime=0;
  8.     mywindow=window;
  9.     playtime=10000;
  10.     clockID=0;
  11. ">>>>1","imgCnt=?;"," /* PP entry */"
  12. ">>>>2","HeadTitle=?;","  /* PP entry */"
  13.  
  14.  
  15.     glist=new Array(imgCnt);
  16.     annolist=new Array(imgCnt);
  17.  
  18. function setup()
  19. {
  20. ">>>>3","glist[?]=?";,"/* image list*/"
  21. ">>>>5","annolist[?]=?";,"/* annotation list*/"
  22. }
  23.  
  24.  
  25. function makeSTR(imagename)
  26. {
  27. str = str = "<HTML>"+
  28.       "<HEAD>" +
  29.       '<SCRIPT LANGUAGE="JavaScript">'+
  30.       "<!-- Hide script from incompatible browsers! -->"+
  31.       'var h=0;'+
  32.       "paused()"+
  33.       "{"+
  34.       ""+
  35.       "}"+
  36.       "// End of block: hide script from incompatible browsers! -->"+
  37.       "<"+
  38.       "/SCRIPT>"+
  39.       "<TITLE>"+
  40.       HeadTitle+
  41.       "</TITLE>" +
  42.       "<FORM >"+
  43.       "</HEAD>" +
  44.       "<BODY BGCOLOR=#C8B9BA>" +
  45.       "<CENTER>" +
  46.       "File name:  "+
  47.       imagename+
  48.       "<br>"+
  49.       annolist[slidecount]+
  50.       "<br><br>"+
  51.  
  52.       "<table>"+
  53.       "<tr><td>"+
  54.     '<INPUT TYPE=BUTTON NAME="SLIDESHOW"  VALUE="Next" '+
  55.      'onclick="opener.ForwardSlide()">'+
  56.     "</td></td>"+
  57.     "<td>"+
  58.     '<INPUT TYPE=BUTTON NAME="backup"  VALUE="Previous"'+
  59.      'onclick="opener.backup()">'+
  60.     "</td>"+
  61.     "<td>"+
  62.     '<INPUT TYPE=BUTTON NAME="pause"  VALUE="Pause"'+
  63.      'onclick="opener.pauseplay()">'+
  64.     "</td>"+
  65.     "<td>"+
  66.     '<INPUT TYPE=BUTTON NAME="resume"  VALUE="Resume"'+
  67.      'onclick="opener.resumeplay()">'+
  68.     "</td>"+
  69.     "<td>"+
  70.     '<INPUT TYPE=BUTTON NAME="killit" VALUE="Exit"'+
  71.      'onclick="opener.cleanUp()">'+
  72.     "</td></tr>"+
  73.     "</table>"+
  74.     "<br>"+
  75.  
  76.       "<table border=3 color=#C8B9BA>"+
  77.       "<tr><td>"+
  78.       '<IMG SRC='+imagename+'>'+
  79.       "</td></tr>"+
  80.       "</table>"+
  81.       "</FORM>"+
  82.       "</BODY>" +
  83.       "</HTML>";
  84. return str;
  85. }
  86.  
  87. function st(intime)
  88. {
  89. playtime=intime;
  90. }
  91. function backup()
  92. {
  93. --slidecount;
  94. --slidecount;
  95. if (slidecount<0) slidecount=imgCnt-1;
  96. ForwardSlide();
  97. }
  98.  
  99. function resumeplay()
  100. {
  101. ForwardSlide();
  102. }
  103.  
  104. function pauseplay()
  105. {
  106. window.clearTimeout(clockID);
  107. }
  108.  
  109. function cleanUp()
  110. {
  111.  if (firsttime!=0)
  112.  {
  113.  window.clearTimeout(clockID)
  114.  firsttime=0;
  115.  clockid=0;
  116.  mywindow.window.close();
  117.  }
  118. }
  119.  
  120. function ForwardSlide()
  121. {
  122.  if (++slidecount>imgCnt) slidecount=1;
  123.  tmpstr="A"+slidecount;
  124.  
  125.  if (firsttime==0)
  126.   { mywindow=window.open(glist[slidecount],"awindow",
  127.     "toolbar=no,location=no,directories=no,status=no," +
  128.    "menubar=no,scrollbars=yes,resizable=yes," +
  129.    "width=640,height=480, dependent=yes"+
  130.    "screenx=1, screeny=1");
  131.   }
  132.  mywindow.document.open();
  133.  mywindow.document.writeln(makeSTR(glist[slidecount]));
  134.  mywindow.document.close();
  135.  ++firsttime;
  136.  window.clearTimeout(clockID);
  137.  clockID=window.setTimeout('ForwardSlide();',playtime);
  138. }
  139.  
  140.  
  141. // End of block: hide script from incompatible browsers! -->
  142. </SCRIPT>
  143. </HEAD>
  144. <form>
  145.  
  146. ">>>>6","<BODY BGCOLOR=?>"  /* BODY BACKGROUND COLOR FOR TABLE PAGE */
  147. ">>>>7","<BaseFont SIZE=6 color=?>');"
  148. <SCRIPT LANGUAGE="JavaScript">
  149. <!-- Hide script from incompatible browsers! -->
  150. setup();
  151. // End of block: hide script from incompatible browsers! -->
  152. </SCRIPT>
  153.  
  154. <Font SIZE=6>
  155. <P Align=Center> PhotoPac Plugin Java Script Presentation
  156. </P>
  157.  
  158. <br>
  159. <Font SIZE=3>
  160. <P Align=center>
  161. To view slideshow click Play, to stop slideshow click Stop button below slideshow image. Click Stop if Play doesn't work.  To view individual picture click on the image label below the appropriate thumbnail.
  162. </P>
  163.  
  164. <br>
  165.  
  166. <Center>
  167. Image Play Time in Seconds
  168. <br>
  169. <INPUT TYPE="RADIO" NAME="rb1" onclick="st(3000)" >3
  170. <INPUT TYPE="RADIO" NAME="rb1" onclick="st(10000)" CHECKED>10
  171. <INPUT TYPE="RADIO" NAME="rb1" onclick="st(30000)">30
  172. <br><br>
  173.  
  174. <table>
  175. <tr><td>
  176. <INPUT TYPE=BUTTON NAME="SLIDESHOW"  VALUE="Play"
  177.  onclick="ForwardSlide()">
  178. </td></td>
  179. <td>
  180. <INPUT TYPE=BUTTON NAME="killit"  VALUE="Stop"
  181.  onclick="cleanUp()">
  182. </td></tr>
  183. </table>
  184.  
  185.  
  186.  
  187. <br><br><br>
  188. ">>>>4","?"
  189. </Center>
  190. </form>
  191. </BODY>
  192. </HTML>