home *** CD-ROM | disk | FTP | other *** search
/ Photo Explosion 2.5 (Special Edition) / NovaDevelopment-PhotoExplosionSE-v2.5-Windows.iso / Data / Data1.cab / _5AB9B3D4107E40CBBE30E4E8958CF603 < prev    next >
Encoding:
Text File  |  2005-12-12  |  7.3 KB  |  134 lines

  1. <html>
  2. <head>
  3. <title>Beach Ball Fun</title>
  4. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  5. <script language="JavaScript">
  6. <!--
  7. function MM_timelinePlay(tmLnName, myID) { //v1.2
  8.   //Copyright 1997 Macromedia, Inc. All rights reserved.
  9.   var i,j,tmLn,props,keyFrm,sprite,numKeyFr,firstKeyFr,propNum,theObj,firstTime=false;
  10.   if (document.MM_Time == null) MM_initTimelines(); //if *very* 1st time
  11.   tmLn = document.MM_Time[tmLnName];
  12.   if (myID == null) { myID = ++tmLn.ID; firstTime=true;}//if new call, incr ID
  13.   if (myID == tmLn.ID) { //if Im newest
  14.     setTimeout('MM_timelinePlay("'+tmLnName+'",'+myID+')',tmLn.delay);
  15.     fNew = ++tmLn.curFrame;
  16.     for (i=0; i<tmLn.length; i++) {
  17.       sprite = tmLn[i];
  18.       if (sprite.charAt(0) == 's') {
  19.         if (sprite.obj) {
  20.           numKeyFr = sprite.keyFrames.length; firstKeyFr = sprite.keyFrames[0];
  21.           if (fNew >= firstKeyFr && fNew <= sprite.keyFrames[numKeyFr-1]) {//in range
  22.             keyFrm=1;
  23.             for (j=0; j<sprite.values.length; j++) {
  24.               props = sprite.values[j]; 
  25.               if (numKeyFr != props.length) {
  26.                 if (props.prop2 == null) sprite.obj[props.prop] = props[fNew-firstKeyFr];
  27.                 else        sprite.obj[props.prop2][props.prop] = props[fNew-firstKeyFr];
  28.               } else {
  29.                 while (keyFrm<numKeyFr && fNew>=sprite.keyFrames[keyFrm]) keyFrm++;
  30.                 if (firstTime || fNew==sprite.keyFrames[keyFrm-1]) {
  31.                   if (props.prop2 == null) sprite.obj[props.prop] = props[keyFrm-1];
  32.                   else        sprite.obj[props.prop2][props.prop] = props[keyFrm-1];
  33.         } } } } }
  34.       } else if (sprite.charAt(0)=='b' && fNew == sprite.frame) eval(sprite.value);
  35.       if (fNew > tmLn.lastFrame) tmLn.ID = 0;
  36.   } }
  37. }
  38.  
  39. function MM_timelineGoto(tmLnName, fNew, numGotos) { //v2.0
  40.   //Copyright 1997 Macromedia, Inc. All rights reserved.
  41.   var i,j,tmLn,props,keyFrm,sprite,numKeyFr,firstKeyFr,lastKeyFr,propNum,theObj;
  42.   if (document.MM_Time == null) MM_initTimelines(); //if *very* 1st time
  43.   tmLn = document.MM_Time[tmLnName];
  44.   if (numGotos != null)
  45.     if (tmLn.gotoCount == null) tmLn.gotoCount = 1;
  46.     else if (tmLn.gotoCount++ >= numGotos) {tmLn.gotoCount=0; return}
  47.   jmpFwd = (fNew > tmLn.curFrame);
  48.   for (i = 0; i < tmLn.length; i++) {
  49.     sprite = (jmpFwd)? tmLn[i] : tmLn[(tmLn.length-1)-i]; //count bkwds if jumping back
  50.     if (sprite.charAt(0) == "s") {
  51.       numKeyFr = sprite.keyFrames.length;
  52.       firstKeyFr = sprite.keyFrames[0];
  53.       lastKeyFr = sprite.keyFrames[numKeyFr - 1];
  54.       if ((jmpFwd && fNew<firstKeyFr) || (!jmpFwd && lastKeyFr<fNew)) continue; //skip if untouchd
  55.       for (keyFrm=1; keyFrm<numKeyFr && fNew>=sprite.keyFrames[keyFrm]; keyFrm++);
  56.       for (j=0; j<sprite.values.length; j++) {
  57.         props = sprite.values[j];
  58.         if (numKeyFr == props.length) propNum = keyFrm-1 //keyframes only
  59.         else propNum = Math.min(Math.max(0,fNew-firstKeyFr),props.length-1); //or keep in legal range
  60.         if (sprite.obj != null) {
  61.           if (props.prop2 == null) sprite.obj[props.prop] = props[propNum];
  62.           else        sprite.obj[props.prop2][props.prop] = props[propNum];
  63.       } }
  64.     } else if (sprite.charAt(0)=='b' && fNew == sprite.frame) eval(sprite.value);
  65.   }
  66.   tmLn.curFrame = fNew;
  67.   if (tmLn.ID == 0) eval('MM_timelinePlay(tmLnName)');
  68. }
  69.  
  70. function MM_initTimelines() {
  71.     //MM_initTimelines() Copyright 1997 Macromedia, Inc. All rights reserved.
  72.     var ns = navigator.appName == "Netscape";
  73.     document.MM_Time = new Array(1);
  74.     document.MM_Time[0] = new Array(2);
  75.     document.MM_Time["Timeline1"] = document.MM_Time[0];
  76.     document.MM_Time[0].MM_Name = "Timeline1";
  77.     document.MM_Time[0].fps = 15;
  78.     document.MM_Time[0][0] = new String("behavior");
  79.     document.MM_Time[0][0].frame = 41;
  80.     document.MM_Time[0][0].value = "MM_timelineGoto('Timeline1','1')";
  81.     document.MM_Time[0][1] = new String("sprite");
  82.     document.MM_Time[0][1].slot = 13;
  83.     if (ns)
  84.         document.MM_Time[0][1].obj = document["Layer3"];
  85.     else
  86.         document.MM_Time[0][1].obj = document.all ? document.all["Layer3"] : null;
  87.     document.MM_Time[0][1].keyFrames = new Array(1, 2, 5, 9, 10, 11, 15, 19, 20, 21, 25, 29, 30, 31, 35, 39, 40);
  88.     document.MM_Time[0][1].values = new Array(2);
  89.     document.MM_Time[0][1].values[0] = new Array(688,673,660,644,628,616,605,596,588,578,570,562,553,542,530,519,508,498,490,470,485,495,506,519,531,542,551,559,566,579,588,595,603,613,624,636,650,662,672,687);
  90.     document.MM_Time[0][1].values[0].prop = "left";
  91.     document.MM_Time[0][1].values[1] = new Array(254,252,259,270,284,297,311,324,334,347,337,327,313,299,287,281,279,278,277,279,273,274,276,279,285,294,304,314,323,345,327,319,309,299,289,279,269,260,254,254);
  92.     document.MM_Time[0][1].values[1].prop = "top";
  93.     if (!ns) {
  94.         document.MM_Time[0][1].values[0].prop2 = "style";
  95.         document.MM_Time[0][1].values[1].prop2 = "style";
  96.     }
  97.     document.MM_Time[0].lastFrame = 41;
  98.     for (i=0; i<document.MM_Time.length; i++) {
  99.         document.MM_Time[i].ID = null;
  100.         document.MM_Time[i].curFrame = 0;
  101.         document.MM_Time[i].delay = 1000/document.MM_Time[i].fps;
  102.     }
  103. }
  104. //-->
  105. </script>
  106. <style type="text/css">
  107. <!--
  108. .PhotoTitleStyle {  font-family: "Arial", "Helvetica", "sans-serif"; font-size: 9pt; font-style: normal; color: #FF6600}
  109. .WebPageTitle {  font-family: "Times New Roman", "Times", "serif"; font-size: 36pt; font-style: italic; color: #009966; font-weight: normal}
  110. .Fixed01 {  font-family: "Arial", "Helvetica", "sans-serif"; font-size: 7pt; font-style: italic; color: #003399}
  111. .SignStyle {  font-family: "Arial", "Helvetica", "sans-serif"; font-size: 10pt; color: #66CC00; font-style: italic; font-weight: bold}
  112. -->
  113. </style></head><bgsound id="BackgroundSound" type="audio/midi" src="../audio/The Happy Typist.mid" repeat="1" loop="-1">
  114.  
  115. <body bgcolor="#FFFFFF" background="../image/bg08.jpg" onLoad="MM_timelinePlay('Timeline1')">
  116. <div id="Layer1" style="position:absolute; left:61px; top:98px; width:147px; height:119px; z-index:2"><img src="../image/page08-p1.gif" width="401" height="280"></div>
  117. <div id="Layer2" style="position:absolute; left:87px; top:122px; width:120px; height:69px; z-index:4"><img src="../image/ph08.jpg" width="347" height="231" name="uThumb001"></div>
  118. <div id="Layer3" style="position:absolute; left:688px; top:254px; width:48px; height:41px; z-index:1"><img src="../image/ball-g1.gif" width="69" height="70"></div>
  119. <div id="Layer4" style="position:absolute; left:472px; top:104px; width:276px; height:149px; z-index:10"> 
  120.   <p id="uThumbTitle001" class="PhotoTitleStyle" align="left">Your photo caption goes here!</p>
  121. </div>
  122. <div id="Layer5" style="position:absolute; left:2px; top:25px; width:747; height:52; z-index:11" class="WebPageTitle"> 
  123.   <p id="uAlbumTitle" class="WebPageTitle" align="center">Beach Ball Fun</p>
  124. </div>
  125. <div id="Layer6" style="position:absolute; left:13px; top:383px; width:451px; height:38px; z-index:9"> 
  126.   <p class="Fixed01" align="left"><a href="http://www.novadevelopment.com" class="Fixed01"> 
  127.      </a></p>
  128. </div>
  129. <div id="Layer7" style="position:absolute; left:0; top:435; width:760; height:100; z-index:8; visibility: hidden"> 
  130.   <p id="uSignature" class="SignStyle" align="left">Input signature here!</p>
  131. </div>
  132. </body>
  133. </html>
  134.