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

  1. <html>
  2. <head>
  3. <title>My Summer Vacation</title>
  4. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  5. <script language="JavaScript">
  6. <!--
  7. function MM_swapImgRestore() { 
  8.   if (document.MM_swapImgData != null)
  9.     for (var i=0; i<(document.MM_swapImgData.length-1); i+=2)
  10.       document.MM_swapImgData[i].src = document.MM_swapImgData[i+1];
  11. }
  12.  
  13. function MM_preloadImages() { 
  14.   if (document.images) {
  15.     var imgFiles = MM_preloadImages.arguments;
  16.     if (document.preloadArray==null) document.preloadArray = new Array();
  17.     var i = document.preloadArray.length;
  18.     with (document) for (var j=0; j<imgFiles.length; j++) if (imgFiles[j].charAt(0)!="#"){
  19.       preloadArray[i] = new Image;
  20.       preloadArray[i++].src = imgFiles[j];
  21.   } }
  22. }
  23.  
  24. function MM_swapImage() { 
  25.   var i,j=0,objStr,obj,swapArray=new Array,oldArray=document.MM_swapImgData;
  26.   for (i=0; i < (MM_swapImage.arguments.length-2); i+=3) {
  27.     objStr = MM_swapImage.arguments[(navigator.appName == 'Netscape')?i:i+1];
  28.     if ((objStr.indexOf('document.layers[')==0 && document.layers==null) ||
  29.         (objStr.indexOf('document.all[')   ==0 && document.all   ==null))
  30.       objStr = 'document'+objStr.substring(objStr.lastIndexOf('.'),objStr.length);
  31.     obj = eval(objStr);
  32.     if (obj != null) {
  33.       swapArray[j++] = obj;
  34.       swapArray[j++] = (oldArray==null || oldArray[j-1]!=obj)?obj.src:oldArray[j];
  35.       obj.src = MM_swapImage.arguments[i+2];
  36.   } }
  37.   document.MM_swapImgData = swapArray; //used for restore
  38. }
  39.  
  40. function MM_timelinePlay(tmLnName, myID) { 
  41.   //Copyright 1997 Macromedia, Inc. All rights reserved.
  42.   var i,j,tmLn,props,keyFrm,sprite,numKeyFr,firstKeyFr,propNum,theObj,firstTime=false;
  43.   if (document.MM_Time == null) MM_initTimelines(); //if *very* 1st time
  44.   tmLn = document.MM_Time[tmLnName];
  45.   if (myID == null) { myID = ++tmLn.ID; firstTime=true;}//if new call, incr ID
  46.   if (myID == tmLn.ID) { //if Im newest
  47.     setTimeout('MM_timelinePlay("'+tmLnName+'",'+myID+')',tmLn.delay);
  48.     fNew = ++tmLn.curFrame;
  49.     for (i=0; i<tmLn.length; i++) {
  50.       sprite = tmLn[i];
  51.       if (sprite.charAt(0) == 's') {
  52.         if (sprite.obj) {
  53.           numKeyFr = sprite.keyFrames.length; firstKeyFr = sprite.keyFrames[0];
  54.           if (fNew >= firstKeyFr && fNew <= sprite.keyFrames[numKeyFr-1]) {//in range
  55.             keyFrm=1;
  56.             for (j=0; j<sprite.values.length; j++) {
  57.               props = sprite.values[j]; 
  58.               if (numKeyFr != props.length) {
  59.                 if (props.prop2 == null) sprite.obj[props.prop] = props[fNew-firstKeyFr];
  60.                 else        sprite.obj[props.prop2][props.prop] = props[fNew-firstKeyFr];
  61.               } else {
  62.                 while (keyFrm<numKeyFr && fNew>=sprite.keyFrames[keyFrm]) keyFrm++;
  63.                 if (firstTime || fNew==sprite.keyFrames[keyFrm-1]) {
  64.                   if (props.prop2 == null) sprite.obj[props.prop] = props[keyFrm-1];
  65.                   else        sprite.obj[props.prop2][props.prop] = props[keyFrm-1];
  66.         } } } } }
  67.       } else if (sprite.charAt(0)=='b' && fNew == sprite.frame) eval(sprite.value);
  68.       if (fNew > tmLn.lastFrame) tmLn.ID = 0;
  69.   } }
  70. }
  71.  
  72. function MM_timelineGoto(tmLnName, fNew, numGotos) { 
  73.   //Copyright 1997 Macromedia, Inc. All rights reserved.
  74.   var i,j,tmLn,props,keyFrm,sprite,numKeyFr,firstKeyFr,lastKeyFr,propNum,theObj;
  75.   if (document.MM_Time == null) MM_initTimelines(); //if *very* 1st time
  76.   tmLn = document.MM_Time[tmLnName];
  77.   if (numGotos != null)
  78.     if (tmLn.gotoCount == null) tmLn.gotoCount = 1;
  79.     else if (tmLn.gotoCount++ >= numGotos) {tmLn.gotoCount=0; return}
  80.   jmpFwd = (fNew > tmLn.curFrame);
  81.   for (i = 0; i < tmLn.length; i++) {
  82.     sprite = (jmpFwd)? tmLn[i] : tmLn[(tmLn.length-1)-i]; //count bkwds if jumping back
  83.     if (sprite.charAt(0) == "s") {
  84.       numKeyFr = sprite.keyFrames.length;
  85.       firstKeyFr = sprite.keyFrames[0];
  86.       lastKeyFr = sprite.keyFrames[numKeyFr - 1];
  87.       if ((jmpFwd && fNew<firstKeyFr) || (!jmpFwd && lastKeyFr<fNew)) continue; //skip if untouchd
  88.       for (keyFrm=1; keyFrm<numKeyFr && fNew>=sprite.keyFrames[keyFrm]; keyFrm++);
  89.       for (j=0; j<sprite.values.length; j++) {
  90.         props = sprite.values[j];
  91.         if (numKeyFr == props.length) propNum = keyFrm-1 //keyframes only
  92.         else propNum = Math.min(Math.max(0,fNew-firstKeyFr),props.length-1); //or keep in legal range
  93.         if (sprite.obj != null) {
  94.           if (props.prop2 == null) sprite.obj[props.prop] = props[propNum];
  95.           else        sprite.obj[props.prop2][props.prop] = props[propNum];
  96.       } }
  97.     } else if (sprite.charAt(0)=='b' && fNew == sprite.frame) eval(sprite.value);
  98.   }
  99.   tmLn.curFrame = fNew;
  100.   if (tmLn.ID == 0) eval('MM_timelinePlay(tmLnName)');
  101. }
  102.  
  103. function MM_initTimelines() {
  104.     //MM_initTimelines() Copyright 1997 Macromedia, Inc. All rights reserved.
  105.     var ns = navigator.appName == "Netscape";
  106.     document.MM_Time = new Array(1);
  107.     document.MM_Time[0] = new Array(2);
  108.     document.MM_Time["Timeline1"] = document.MM_Time[0];
  109.     document.MM_Time[0].MM_Name = "Timeline1";
  110.     document.MM_Time[0].fps = 15;
  111.     document.MM_Time[0][0] = new String("sprite");
  112.     document.MM_Time[0][0].slot = 1;
  113.     if (ns)
  114.         document.MM_Time[0][0].obj = document["Layer12"];
  115.     else
  116.         document.MM_Time[0][0].obj = document.all ? document.all["Layer12"] : null;
  117.     document.MM_Time[0][0].keyFrames = new Array(1, 13, 18, 21, 22, 24, 35, 38, 41, 46, 55);
  118.     document.MM_Time[0][0].values = new Array(2);
  119.     document.MM_Time[0][0].values[0] = new Array(153,149,145,140,136,132,128,124,120,116,113,110,107,102,100,99,98,96,92,89,87,85,82,83,85,88,91,94,98,102,105,109,112,115,117,119,118,117,118,120,120,118,114,111,107,103,100,97,94,91,88,84,81,77,74);
  120.     document.MM_Time[0][0].values[0].prop = "left";
  121.     document.MM_Time[0][0].values[1] = new Array(263,261,259,258,256,254,252,250,249,247,245,243,241,236,231,226,222,218,215,214,214,215,212,205,202,199,196,193,189,185,181,178,174,171,168,161,156,152,148,145,140,138,136,135,131,126,121,115,109,103,95,88,80,73,65);
  122.     document.MM_Time[0][0].values[1].prop = "top";
  123.     if (!ns) {
  124.         document.MM_Time[0][0].values[0].prop2 = "style";
  125.         document.MM_Time[0][0].values[1].prop2 = "style";
  126.     }
  127.     document.MM_Time[0][1] = new String("behavior");
  128.     document.MM_Time[0][1].frame = 56;
  129.     document.MM_Time[0][1].value = "MM_timelineGoto('Timeline1','1')";
  130.     document.MM_Time[0].lastFrame = 56;
  131.     for (i=0; i<document.MM_Time.length; i++) {
  132.         document.MM_Time[i].ID = null;
  133.         document.MM_Time[i].curFrame = 0;
  134.         document.MM_Time[i].delay = 1000/document.MM_Time[i].fps;
  135.     }
  136. }
  137. //-->
  138. </script>
  139. <style type="text/css">
  140. <!--
  141. .AlbumTitleStyle {  font-family: "Arial", "Helvetica", "sans-serif"; font-size: 24pt; color: #FFFF99}
  142. .ThumbTitleStyle {  font-family: "Arial", "Helvetica", "sans-serif"; font-size: 9pt; color: #CCFFFF}
  143. .Fixed02 {  font-family: "Arial", "Helvetica", "sans-serif"; font-size: 7pt; font-style: italic; color: #FFFFCC}
  144. -->
  145. </style>
  146.  
  147. <style>
  148. IMG {
  149. position:relative;
  150. cursor:hand;
  151. }
  152. .SignStyle {  font-family: "Times New Roman", "Times", "serif"; font-size: 10pt; font-style: italic; font-weight: bold; color: #CCFFFF}
  153. </style>
  154. <script language="JavaScript">
  155. <!--
  156. function MM_changeProp(objStrNS,objStrIE,theProp,theValue) { 
  157.   var NS = (navigator.appName == 'Netscape');
  158.   var objStr = (NS)?objStrNS:objStrIE;
  159.   if (( NS && (objStr.indexOf('document.layers[')!=0 || document.layers!=null)) ||
  160.       (!NS && (objStr.indexOf('document.all[')   !=0 || document.all   !=null))) {
  161.     var obj = eval(objStr);
  162.     if ((obj != null) && (theProp.indexOf("style.") != 0 || obj.style != null)) {
  163.       eval(objStr+'.'+theProp + '="'+theValue+'"');
  164.   } }
  165. }
  166.  
  167.  
  168. var nCurImg = 0;
  169. var nTimeSlice = 1000;
  170. var nImgCount = 1;
  171. var ImgFileNameArray;
  172. var bPlay = false;
  173. var nTimeoutID = 0;
  174.  
  175.  
  176. function CreateImageArray()
  177. {
  178.     ImgFileNameArray = new Array(nImgCount);
  179.     ImgFileNameArray[0] = "../image/summer-photo.jpg";
  180. }
  181.  
  182.  
  183. function SetHolderImage(nIndex)
  184. {    
  185.     if (nIndex < nImgCount) {
  186.         var ImgSrc = ImgFileNameArray[nIndex];
  187.         MM_changeProp("document.layers[\"Layer21\"].document.ImgHolder", "document.ImgHolder", "src", ImgSrc, "IMG");
  188.     }
  189.     else
  190.         window.alert("Array index out of bound");
  191. }
  192.  
  193.  
  194. function OnLoadDocument()
  195. {
  196.     CreateImageArray();
  197.  
  198.     SetHolderImage(0);
  199.     
  200.     Play();
  201. }
  202.  
  203.  
  204. function TimeoutProc()
  205. {
  206.     if (bPlay) {
  207.         Next();
  208.         nTimeroutID = window.setTimeout("TimeoutProc()", nTimeSlice);    
  209.     }
  210. }
  211.  
  212. function Play()
  213. {
  214.     if (!bPlay) {
  215.         bPlay = true;
  216.         nTimeroutID = window.setTimeout("TimeoutProc()", nTimeSlice);
  217.     }
  218. }
  219.  
  220. function Stop()
  221. {
  222.     if (bPlay) {
  223.         bPlay = false;
  224.         if (nTimeoutID != 0)
  225.             window.clearTimeout(nTimeoutID);
  226.     }
  227. }
  228.  
  229. function Next()
  230. {
  231.     nCurImg = (nCurImg + 1) % nImgCount;
  232.     SetHolderImage(nCurImg);
  233. }
  234.  
  235. function Previous()
  236. {
  237.     nCurImg = (nCurImg - 1) % nImgCount;
  238.     if (nCurImg < 0)
  239.         nCurImg += nImgCount;
  240.         
  241.     SetHolderImage(nCurImg);
  242. }
  243.  
  244. //-->
  245. </script>
  246. </head>
  247. <bgsound id="BackgroundSound" type="audio/midi" src="../audio/Good Friends, Good Times.mid" repeat="1" loop="-1">
  248. <body bgcolor="#065A1E" onLoad="MM_preloadImages('../image/W2.gif','#923372149110');MM_preloadImages('../image/W4.gif','#923372168550');MM_preloadImages('../image/W6.gif','#923372246980');MM_timelinePlay('Timeline1')" link="#FFFF99" vlink="#FFFF99" alink="#FFFF99">
  249. <div id="Layer2" style="position:absolute; left:649px; top:158px; width:27px; height:24px; z-index:2"> 
  250.   <div align="left"><a href="#" onClick="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('document.layers[\'Layer2\'].document.uPreviousButton','document.uPreviousButton','../image/W2.gif','#923372149110')"><img name="uPreviousButton" border="0" src="../image/W1.gif" width="44" height="46" alt="Back"></a></div>
  251. </div>
  252. <div id="Layer3" style="position:absolute; left:650px; top:224px; width:25px; height:23px; z-index:3"> 
  253.   <div align="left"><a href="#" onClick="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('document.layers[\'Layer3\'].document.uHomeButton','document.uHomeButton','../image/W4.gif','#923372168550')"><img name="uHomeButton" border="0" src="../image/W3.gif" width="46" height="53" alt="Home"></a></div>
  254. </div>
  255. <div id="Layer6" style="position:absolute; left:282px; top:119px; width:88px; height:86px; z-index:6"><img name="uImage001" src="../image/summer-photo.jpg" width="303" height="200"></div>
  256. <div id="Layer13" style="position:absolute; left:3px; top:-1px; width:734px; height:410px; z-index:1"><img src="../image/back-final.jpg" width="729" height="406"></div>
  257. <div id="Layer8" style="position:absolute; left:651px; top:299px; width:11px; height:14px; z-index:7"><a href="#" onClick="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('document.layers[\'Layer8\'].document.uNextButton','document.uNextButton','../image/W6.gif','#923372246980')"><img name="uNextButton" border="0" src="../image/W5.gif" width="44" height="46" alt="Next"></a></div>
  258. <div id="Layer12" style="position:absolute; left:153px; top:263px; width:30px; height:33px; z-index:8"><img src="../image/ZS1.gif" width="67" height="77"></div>
  259. <div id="Layer11" style="position:absolute; width:727px; height:39px; z-index:17; left: 27px; top: 3px"> 
  260.   <p id="uAlbumTitle" align="center" class="AlbumTitleStyle">My Summer Vacation</p>
  261. </div>
  262. <div id="Layer10" style="position:absolute; left:794px; top:32px; width:0px; height:1px; z-index:9"></div>
  263.  
  264. <div id="Layer5" style="position:absolute; width:268px; height:28px; z-index:15; left: 7px; top: 380px"> 
  265.   <p class="Fixed02" align="left"><a href="http://www.novadevelopment.com" class="Fixed02"> 
  266.      </a></p>
  267.   </div>
  268. <div id="Layer7" style="position:absolute; left:0; top:430; width:760; height:50px; z-index:14; visibility: hidden"> 
  269.   <p id="uSignature" align="left" class="SignStyle">Input signature here!</p>
  270. </div>
  271.  
  272. <div id="Layer4" style="position:absolute; width:387px; height:38px; z-index:16; left: 246px; top: 356px"> 
  273.   <p id="uThumbTitle001" class="ThumbTitleStyle" align="center">Your photo caption goes here!</p>
  274.   </div>
  275.  
  276. </body>
  277. </html>
  278.