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

  1. <html>
  2.     <head>
  3.         <meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
  4.         <title>Idle Action</title>
  5.         <meta name="generator" content="Adobe GoLive 5">
  6.     </head>
  7.     <body bgcolor="white">
  8.         <center> <font size="6">Idle Action</font>
  9.             <hr>
  10.         </center>
  11.         <csactionclass name="Idle" function="CSIdleAction" nsversion="4" ieversion="4" actiontype="2">
  12.         <csactionparam name="idle" type="GLActionBoolParam"></csactionparam>
  13.         <csactionparam name="condition" type="GLActionConditionParam"></csactionparam>
  14.         </csactionclass>
  15.         <p>IE Functions Script
  16.         <script language="JavaScript1.2" src="../../GlobalScripts/IE.scpt" cyberversion="N1.2"></script>
  17.         </p>
  18.         <p>StylePos Functions Script
  19.         <script language="JavaScript1.2" src="../../GlobalScripts/StylePos.scpt"></script>
  20.         </p>
  21.         <p>Loop Functions Script
  22.         <script language="JavaScript1.2" src="../../GlobalScripts/MainLoop.scpt" cyberversion="N1.2"></script>
  23.         </p>
  24.         <p>Slide Functions Script
  25.         <script language="JavaScript1.2" src="../../GlobalScripts/SlideLayer.scpt"></script>
  26.         </p>
  27.         <p>Idle Action Main Script
  28.         
  29. <script language="JavaScript1.2" cyberversion="N1.2"><!--
  30. function CSIdleObject (action) {
  31.     this.conditionAction = action[2];
  32.     this.trueAction = action[3];
  33.     this.falseAction = action[4];
  34.     this.exitIdleIfTrue = action[1];
  35.     this.lastState = false;
  36. }
  37. function CSIdleAction(action) {
  38.     idleObj = new CSIdleObject (action);
  39.     CSStartFunction (CSDoIdle,idleObj);
  40. }
  41. function CSDoIdle (param) {
  42.     idleObject=param.data;
  43.     if (idleObject.conditionAction) {
  44.         gCurrentIdleObject = idleObject;
  45.         var result = CSAction(new Array(idleObject.conditionAction));
  46.         if (result == true && idleObject.lastState==false) {
  47.             idleObject.lastState = result;
  48.             if (idleObject.trueAction) {
  49.                 CSAction(new Array(idleObject.trueAction));
  50.                 if (idleObject.exitIdleIfTrue == true) return false;
  51.             }
  52.         } else if (result == false && idleObject.lastState == true) {
  53.             idleObject.lastState = false;
  54.             if (idleObject.falseAction) {
  55.                 CSAction(new Array(idleObject.falseAction));
  56.             }
  57.         }
  58.     }
  59.     return true;
  60. }
  61. // -->
  62.         </script>
  63.         </p>
  64.         <table cool width="221" height="153" border="0" cellpadding="0" cellspacing="0" gridx="16" showgridx gridy="16" showgridy bgcolor="#eeeeee">
  65.             <tr height="1" cntrlrow>
  66.                 <td width="1" height="1"><spacer type="block" width="1" height="1"></td>
  67.                 <td width="4" height="1"><spacer type="block" width="4" height="1"></td>
  68.                 <td width="20" height="1"><spacer type="block" width="20" height="1"></td>
  69.                 <td width="196" height="1"><spacer type="block" width="196" height="1"></td>
  70.             </tr>
  71.             <tr height="6">
  72.                 <td width="1" height="6"><spacer type="block" width="1" height="6"></td>
  73.                 <td width="4" height="6"><spacer type="block" width="4" height="6"></td>
  74.                 <td width="20" height="6"><spacer type="block" width="20" height="6"></td>
  75.                 <td width="196" height="6"><spacer type="block" width="196" height="6"></td>
  76.             </tr>
  77.             <tr height="3">
  78.                 <td width="1" height="3"><spacer type="block" width="1" height="3"></td>
  79.                 <td width="4" height="3"><spacer type="block" width="4" height="3"></td>
  80.                 <td width="20" height="21" colspan="1" rowspan="2" valign="top" align="left" xpos="4">
  81.                     <csactioncntrl name="idle" x="4" y="6" width="16" height="16" alignx="left" aligny="top">
  82.                 </td>
  83.                 <td width="196" height="3"><spacer type="block" width="196" height="3"></td>
  84.             </tr>
  85.             <tr height="18">
  86.                 <td width="1" height="18"><spacer type="block" width="1" height="18"></td>
  87.                 <td width="4" height="18"><spacer type="block" width="4" height="18"></td>
  88.                 <td width="196" height="18" colspan="1" rowspan="1" valign="top" align="left" xpos="24">
  89.                     <csactioncntrl type="InfoText" value="Warten beenden, wenn 'Wahr'" x="24" y="9" width="189" height="16" alignx="left" aligny="top">
  90.                 </td>
  91.             </tr>
  92.             <tr height="125">
  93.                 <td width="1" height="125"><spacer type="block" width="1" height="125"></td>
  94.                 <td width="4" height="125"><spacer type="block" width="4" height="125"></td>
  95.                 <td width="216" height="125" colspan="2" rowspan="1" valign="top" align="left" xpos="4">
  96.                     <csactioncntrl name="condition" x="4" y="27" width="212" height="116" alignx="scale" aligny="scale">
  97.                 </td>
  98.             </tr>
  99.         </table>
  100.     </body>
  101. </html>