home *** CD-ROM | disk | FTP | other *** search
/ com!online 2002 June / comonline0602.iso / software / golive5 / GoLive5_Tryout.exe / MM7.Cab / F5001_Zeitlimit.action.A1180258_69AD_4130_944D_0B6274131723 < prev    next >
Encoding:
Text File  |  2000-08-17  |  3.4 KB  |  77 lines

  1. <html>
  2.     <head>
  3.         <meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
  4.         <title>Timeout Action</title>
  5.         <meta name="generator" content="Adobe GoLive 5">
  6.     </head>
  7.     <body bgcolor="white">
  8.         <center> <font size="6">Timeout Action</font>
  9.             <hr>
  10.         </center>
  11.         <csactionclass name="Timeout" function="CSTimeout" nsversion="4" ieversion="4" actiontype="3">
  12.         <csactionparam name="timeout" type="GLActionFloatParam"></csactionparam>
  13.         </csactionclass>
  14.         <p>Timeout Action Main Script
  15.         
  16. <script language="JavaScript1.2" cyberversion="N1.2"><!--
  17. function CSTimeout (condition) {
  18.     var result = false;
  19.     if (typeof (gCurrentIdleObject) == "undefined")    return result;
  20.     if (gCurrentIdleObject.lastTime) {
  21.         var t=new Date();
  22.         if (t.getTime() >= gCurrentIdleObject.lastTime) {
  23.             if (t.getTime() >= gCurrentIdleObject.nextTime) {
  24.                 gCurrentIdleObject.lastTime = t.getTime() + condition[1]*1000;
  25.                 gCurrentIdleObject.nextTime = gCurrentIdleObject.lastTime + condition[1]*1000;
  26.                 return false;
  27.             }
  28.             return true;
  29.         }
  30.     } else {
  31.         var t=new Date();
  32.         gCurrentIdleObject.lastTime = t.getTime() + condition[1]*1000;
  33.         gCurrentIdleObject.nextTime = gCurrentIdleObject.lastTime + condition[1]*1000;
  34.     }
  35.     return result;
  36. }
  37. // -->
  38.         </script>
  39.         </p>
  40.         <table cool width="221" height="153" border="0" cellpadding="0" cellspacing="0" gridx="16" showgridx gridy="16" showgridy bgcolor="#eeeeee">
  41.             <tr height="1" cntrlrow>
  42.                 <td width="1" height="1"><spacer type="block" width="1" height="1"></td>
  43.                 <td width="4" height="1"><spacer type="block" width="4" height="1"></td>
  44.                 <td width="76" height="1"><spacer type="block" width="76" height="1"></td>
  45.                 <td width="63" height="1"><spacer type="block" width="63" height="1"></td>
  46.                 <td width="77" height="1"><spacer type="block" width="77" height="1"></td>
  47.             </tr>
  48.             <tr height="6">
  49.                 <td width="1" height="6"><spacer type="block" width="1" height="6"></td>
  50.                 <td width="4" height="6"><spacer type="block" width="4" height="6"></td>
  51.                 <td width="76" height="6"><spacer type="block" width="76" height="6"></td>
  52.                 <td width="63" height="6"><spacer type="block" width="63" height="6"></td>
  53.                 <td width="77" height="6"><spacer type="block" width="77" height="6"></td>
  54.             </tr>
  55.             <tr height="3">
  56.                 <td width="1" height="3"><spacer type="block" width="1" height="3"></td>
  57.                 <td width="4" height="3"><spacer type="block" width="4" height="3"></td>
  58.                 <td width="76" height="3"><spacer type="block" width="76" height="3"></td>
  59.                 <td width="63" height="146" colspan="1" rowspan="2" valign="top" align="left" xpos="80">
  60.                     <csactioncntrl name="timeout" x="80" y="6" width="60" height="17" alignx="left" aligny="top">
  61.                 </td>
  62.                 <td width="77" height="3"><spacer type="block" width="77" height="3"></td>
  63.             </tr>
  64.             <tr height="143">
  65.                 <td width="1" height="143"><spacer type="block" width="1" height="143"></td>
  66.                 <td width="4" height="143"><spacer type="block" width="4" height="143"></td>
  67.                 <td width="76" height="143" colspan="1" rowspan="1" valign="top" align="left" xpos="4">
  68.                     <csactioncntrl type="InfoText" value="Zeitlimit:" x="4" y="9" width="75" height="17" alignx="left" aligny="top">
  69.                 </td>
  70.                 <td width="77" height="143" colspan="1" rowspan="1" valign="top" align="left" xpos="143">
  71.                     <csactioncntrl type="InfoText" value="Sek." x="143" y="9" width="44" height="17" alignx="left" aligny="top">
  72.                 </td>
  73.             </tr>
  74.         </table>
  75.     </body>
  76. </html>
  77.