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

  1. <html>
  2. <head>
  3. <title>General02</title>
  4. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  5. <style type="text/css">
  6. <!--
  7. .AlbumTitleStyle {  font-family: "Times New Roman", "Times", "serif"; font-size: 32pt; font-style: italic; color: #FFFFFF}
  8. .Fixed02 {  font-family: "Arial", "Helvetica", "sans-serif"; font-size: 7pt; font-style: italic; color: #FFFF99}
  9. .ThumbTitleStyle {  font-family: "Times New Roman", "Times", "serif"; font-size: 12pt; color: #FFFF66}
  10. .SignStyle {  font-family: "Times New Roman", "Times", "serif"; font-size: 10pt; font-style: italic; font-weight: bold; color: #FFFF99}
  11. -->
  12. </style>
  13. <script language="JavaScript">
  14. <!--
  15. function MM_preloadImages() { 
  16.   var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
  17.     var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
  18.     if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
  19. }
  20.  
  21. function MM_swapImgRestore() { 
  22.   var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
  23. }
  24.  
  25. function MM_findObj(n, d) { 
  26.   var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
  27.     d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  28.   if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  29.   for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); return x;
  30. }
  31.  
  32. function MM_swapImage() { 
  33.   var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
  34.    if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
  35. }
  36.  
  37. function MM_timelinePlay(tmLnName, myID) { 
  38.   //Copyright 1997 Macromedia, Inc. All rights reserved.
  39.   var i,j,tmLn,props,keyFrm,sprite,numKeyFr,firstKeyFr,propNum,theObj,firstTime=false;
  40.   if (document.MM_Time == null) MM_initTimelines(); //if *very* 1st time
  41.   tmLn = document.MM_Time[tmLnName];
  42.   if (myID == null) { myID = ++tmLn.ID; firstTime=true;}//if new call, incr ID
  43.   if (myID == tmLn.ID) { //if Im newest
  44.     setTimeout('MM_timelinePlay("'+tmLnName+'",'+myID+')',tmLn.delay);
  45.     fNew = ++tmLn.curFrame;
  46.     for (i=0; i<tmLn.length; i++) {
  47.       sprite = tmLn[i];
  48.       if (sprite.charAt(0) == 's') {
  49.         if (sprite.obj) {
  50.           numKeyFr = sprite.keyFrames.length; firstKeyFr = sprite.keyFrames[0];
  51.           if (fNew >= firstKeyFr && fNew <= sprite.keyFrames[numKeyFr-1]) {//in range
  52.             keyFrm=1;
  53.             for (j=0; j<sprite.values.length; j++) {
  54.               props = sprite.values[j]; 
  55.               if (numKeyFr != props.length) {
  56.                 if (props.prop2 == null) sprite.obj[props.prop] = props[fNew-firstKeyFr];
  57.                 else        sprite.obj[props.prop2][props.prop] = props[fNew-firstKeyFr];
  58.               } else {
  59.                 while (keyFrm<numKeyFr && fNew>=sprite.keyFrames[keyFrm]) keyFrm++;
  60.                 if (firstTime || fNew==sprite.keyFrames[keyFrm-1]) {
  61.                   if (props.prop2 == null) sprite.obj[props.prop] = props[keyFrm-1];
  62.                   else        sprite.obj[props.prop2][props.prop] = props[keyFrm-1];
  63.         } } } } }
  64.       } else if (sprite.charAt(0)=='b' && fNew == sprite.frame) eval(sprite.value);
  65.       if (fNew > tmLn.lastFrame) tmLn.ID = 0;
  66.   } }
  67. }
  68.  
  69. function MM_timelineGoto(tmLnName, fNew, numGotos) { 
  70.   //Copyright 1997 Macromedia, Inc. All rights reserved.
  71.   var i,j,tmLn,props,keyFrm,sprite,numKeyFr,firstKeyFr,lastKeyFr,propNum,theObj;
  72.   if (document.MM_Time == null) MM_initTimelines(); //if *very* 1st time
  73.   tmLn = document.MM_Time[tmLnName];
  74.   if (numGotos != null)
  75.     if (tmLn.gotoCount == null) tmLn.gotoCount = 1;
  76.     else if (tmLn.gotoCount++ >= numGotos) {tmLn.gotoCount=0; return}
  77.   jmpFwd = (fNew > tmLn.curFrame);
  78.   for (i = 0; i < tmLn.length; i++) {
  79.     sprite = (jmpFwd)? tmLn[i] : tmLn[(tmLn.length-1)-i]; //count bkwds if jumping back
  80.     if (sprite.charAt(0) == "s") {
  81.       numKeyFr = sprite.keyFrames.length;
  82.       firstKeyFr = sprite.keyFrames[0];
  83.       lastKeyFr = sprite.keyFrames[numKeyFr - 1];
  84.       if ((jmpFwd && fNew<firstKeyFr) || (!jmpFwd && lastKeyFr<fNew)) continue; //skip if untouchd
  85.       for (keyFrm=1; keyFrm<numKeyFr && fNew>=sprite.keyFrames[keyFrm]; keyFrm++);
  86.       for (j=0; j<sprite.values.length; j++) {
  87.         props = sprite.values[j];
  88.         if (numKeyFr == props.length) propNum = keyFrm-1 //keyframes only
  89.         else propNum = Math.min(Math.max(0,fNew-firstKeyFr),props.length-1); //or keep in legal range
  90.         if (sprite.obj != null) {
  91.           if (props.prop2 == null) sprite.obj[props.prop] = props[propNum];
  92.           else        sprite.obj[props.prop2][props.prop] = props[propNum];
  93.       } }
  94.     } else if (sprite.charAt(0)=='b' && fNew == sprite.frame) eval(sprite.value);
  95.   }
  96.   tmLn.curFrame = fNew;
  97.   if (tmLn.ID == 0) eval('MM_timelinePlay(tmLnName)');
  98. }
  99.  
  100. function MM_initTimelines() {
  101.     //MM_initTimelines() Copyright 1997 Macromedia, Inc. All rights reserved.
  102.     var ns = navigator.appName == "Netscape";
  103.     document.MM_Time = new Array(2);
  104.     document.MM_Time[0] = new Array(1);
  105.     document.MM_Time["Timeline1"] = document.MM_Time[0];
  106.     document.MM_Time[0].MM_Name = "Timeline1";
  107.     document.MM_Time[0].fps = 15;
  108.     document.MM_Time[0][0] = new String("behavior");
  109.     document.MM_Time[0][0].frame = 50;
  110.     document.MM_Time[0][0].value = "MM_timelineGoto('Timeline1','1')";
  111.     document.MM_Time[0].lastFrame = 50;
  112.     document.MM_Time[1] = new Array(1);
  113.     document.MM_Time["Timeline2"] = document.MM_Time[1];
  114.     document.MM_Time[1].MM_Name = "Timeline2";
  115.     document.MM_Time[1].fps = 15;
  116.     document.MM_Time[1][0] = new String("behavior");
  117.     document.MM_Time[1][0].frame = 26;
  118.     document.MM_Time[1][0].value = "MM_timelineGoto('Timeline2','1')";
  119.     document.MM_Time[1].lastFrame = 26;
  120.     for (i=0; i<document.MM_Time.length; i++) {
  121.         document.MM_Time[i].ID = null;
  122.         document.MM_Time[i].curFrame = 0;
  123.         document.MM_Time[i].delay = 1000/document.MM_Time[i].fps;
  124.     }
  125. }
  126. //-->
  127. </script>
  128. <script language="JavaScript">
  129. <!--
  130. function MM_changeProp(objStrNS,objStrIE,theProp,theValue) { 
  131.   var NS = (navigator.appName == 'Netscape');
  132.   var objStr = (NS)?objStrNS:objStrIE;
  133.   if (( NS && (objStr.indexOf('document.layers[')!=0 || document.layers!=null)) ||
  134.       (!NS && (objStr.indexOf('document.all[')   !=0 || document.all   !=null))) {
  135.     var obj = eval(objStr);
  136.     if ((obj != null) && (theProp.indexOf("style.") != 0 || obj.style != null)) {
  137.       eval(objStr+'.'+theProp + '="'+theValue+'"');
  138.   } }
  139. }
  140. var nCurImg = 0;
  141. var nTimeSlice = 1000;
  142. var nImgCount = 1;
  143. var ImgFileNameArray;
  144. var bPlay = false;
  145. var nTimeoutID = 0;
  146.  
  147. function CreateImageArray()
  148. {
  149.     ImgFileNameArray = new Array(nImgCount);
  150.     ImgFileNameArray[0] = "../image/gen02-photo.jpg";
  151. }
  152.  
  153. function SetHolderImage(nIndex)
  154. {    
  155.     if (nIndex < nImgCount) {
  156.         var ImgSrc = ImgFileNameArray[nIndex];
  157.         MM_changeProp("document.layers[\"Layer21\"].document.ImgHolder", "document.ImgHolder", "src", ImgSrc, "IMG");
  158.     }
  159.     else
  160.         window.alert("Array index out of bound");
  161. }
  162.  
  163. function OnLoadDocument()
  164. {
  165.     CreateImageArray();
  166.     SetHolderImage(0);
  167.     Play();
  168. }
  169.  
  170. function TimeoutProc()
  171. {
  172.     if (bPlay) {
  173.         Next();
  174.         nTimeroutID = window.setTimeout("TimeoutProc()", nTimeSlice);    
  175.     }
  176. }
  177.  
  178. function Play()
  179. {
  180.     if (!bPlay) {
  181.         bPlay = true;
  182.         nTimeroutID = window.setTimeout("TimeoutProc()", nTimeSlice);
  183.     }
  184. }
  185.  
  186. function Stop()
  187. {
  188.     if (bPlay) {
  189.         bPlay = false;
  190.         if (nTimeoutID != 0)
  191.             window.clearTimeout(nTimeoutID);
  192.     }
  193. }
  194.  
  195. function Next()
  196. {
  197.     nCurImg = (nCurImg + 1) % nImgCount;
  198.     SetHolderImage(nCurImg);
  199. }
  200.  
  201. function Previous()
  202. {
  203.     nCurImg = (nCurImg - 1) % nImgCount;
  204.     if (nCurImg < 0)
  205.         nCurImg += nImgCount;
  206.         
  207.     SetHolderImage(nCurImg);
  208. }
  209.  
  210. //-->
  211. </script>
  212. </head>
  213. <bgsound id="BackgroundSound" type="audio/midi" src="../audio/Just Hopping Around.mid" repeat="1" loop="-1">
  214. <body bgcolor="#0099FF" onLoad="MM_preloadImages('../Image/v-02-back-on.gif');MM_preloadImages('../Image/v-02-home-on.gif');MM_preloadImages('../Image/v-02-next-on.gif');MM_timelinePlay('Timeline1');MM_timelinePlay('Timeline2')">
  215. <div id="Layer1" style="position:absolute; left:0px; top:0px; width:16px; height:13px; z-index:1"><img src="../Image/v-02-bg.gif" width="760" height="420"></div>
  216. <div id="Layer2" style="position:absolute; left:6px; top:-3px; width:747px; height:52px; z-index:14"> 
  217.   <p id="uAlbumTitle" class="AlbumTitleStyle" align="left">Fresh Breezes and Beautiful Sunshine</p>
  218. </div>
  219. <div id="Layer9" style="position:absolute; left:408px; top:2px; width:25px; height:27px; z-index:3"><img src="../Image/v-02-photo-bg.gif" width="347" height="296"></div>
  220. <div id="Layer3" style="position:absolute; left:400px; top:346px; width:81px; height:47px; z-index:4"><a href="#" onClick="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('uPreviousButton','','../Image/v-02-back-on.gif',1)"><img src="../Image/v-02-back.gif" width="90" height="73" name="uPreviousButton" alt="Back" border="0"></a></div>
  221. <div style="position:absolute; left:655px; top:338px; width:86px; height:63px; z-index:5" id="Layer8"><a href="#" onClick="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('uNextButton','','../Image/v-02-next-on.gif',1)"><img src="../Image/v-02-next.gif" width="91" height="81" alt="Next" border="0" name="uNextButton"></a></div>
  222. <div id="Layer5" style="position:absolute; left:515px; top:324px; width:113px; height:74px; z-index:6"><a href="#" onClick="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('uHomeButton','','../Image/v-02-home-on.gif',1)"><img src="../Image/v-02-home.gif" width="118" height="96" alt="Home" border="0" name="uHomeButton"></a></div>
  223. <div id="Layer4" style="position:absolute; left:58px; top:383px; width:227px; height:35px; z-index:12"> 
  224.   <p align="center"><a href="http://www.novadevelopment.com" class="Fixed02"> 
  225.      </a></p>
  226. </div>
  227. <div id="Layer7" style="position:absolute; left:418px; top:282px; width:323px; height:38px; z-index:13"> 
  228.   <p id="uThumbTitle001" align="center"class="ThumbTitleStyle">Your photo caption goes here!</p>
  229. </div>
  230. <div id="Layer10" style="position:absolute; left:0; top:430; width:760; height:50; z-index:11; visibility: hidden"> 
  231.   <p id="uSignature" align="left" class="SignStyle">Input signature here!</p>
  232. </div>
  233. <div id="Layer6" style="position:absolute; left:434; top:66; width:25px; height:35px; z-index:8"><img src="../Image/gen02-photo.jpg" width="291" height="189" name="uImage001"></div>
  234. </body>
  235. </html>
  236.