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

  1. <html>
  2. <head>
  3. <title>Wedding Memories</title>
  4. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  5. <script language="JavaScript">
  6. <!--
  7. function MM_preloadImages() { 
  8.   if (document.images) {
  9.     var imgFiles = MM_preloadImages.arguments;
  10.     if (document.preloadArray==null) document.preloadArray = new Array();
  11.     var i = document.preloadArray.length;
  12.     with (document) for (var j=0; j<imgFiles.length; j++) if (imgFiles[j].charAt(0)!="#"){
  13.       preloadArray[i] = new Image;
  14.       preloadArray[i++].src = imgFiles[j];
  15.   } }
  16. }
  17.  
  18. function MM_swapImgRestore() { 
  19.   if (document.MM_swapImgData != null)
  20.     for (var i=0; i<(document.MM_swapImgData.length-1); i+=2)
  21.       document.MM_swapImgData[i].src = document.MM_swapImgData[i+1];
  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_showHideLayers() { 
  41.   var i, visStr, args, theObj;
  42.   args = MM_showHideLayers.arguments;
  43.   for (i=0; i<(args.length-2); i+=3) { //with arg triples (objNS,objIE,visStr)
  44.     visStr   = args[i+2];
  45.     if (navigator.appName == 'Netscape' && document.layers != null) {
  46.       theObj = eval(args[i]);
  47.       if (theObj) theObj.visibility = visStr;
  48.     } else if (document.all != null) { //IE
  49.       if (visStr == 'show') visStr = 'visible'; //convert vals
  50.       if (visStr == 'hide') visStr = 'hidden';
  51.       theObj = eval(args[i+1]);
  52.       if (theObj) theObj.style.visibility = visStr;
  53.   } }
  54. }
  55.  
  56. function MM_timelinePlay(tmLnName, myID) { 
  57.   //Copyright 1997 Macromedia, Inc. All rights reserved.
  58.   var i,j,tmLn,props,keyFrm,sprite,numKeyFr,firstKeyFr,propNum,theObj,firstTime=false;
  59.   if (document.MM_Time == null) MM_initTimelines(); //if *very* 1st time
  60.   tmLn = document.MM_Time[tmLnName];
  61.   if (myID == null) { myID = ++tmLn.ID; firstTime=true;}//if new call, incr ID
  62.   if (myID == tmLn.ID) { //if Im newest
  63.     setTimeout('MM_timelinePlay("'+tmLnName+'",'+myID+')',tmLn.delay);
  64.     fNew = ++tmLn.curFrame;
  65.     for (i=0; i<tmLn.length; i++) {
  66.       sprite = tmLn[i];
  67.       if (sprite.charAt(0) == 's') {
  68.         if (sprite.obj) {
  69.           numKeyFr = sprite.keyFrames.length; firstKeyFr = sprite.keyFrames[0];
  70.           if (fNew >= firstKeyFr && fNew <= sprite.keyFrames[numKeyFr-1]) {//in range
  71.             keyFrm=1;
  72.             for (j=0; j<sprite.values.length; j++) {
  73.               props = sprite.values[j]; 
  74.               if (numKeyFr != props.length) {
  75.                 if (props.prop2 == null) sprite.obj[props.prop] = props[fNew-firstKeyFr];
  76.                 else        sprite.obj[props.prop2][props.prop] = props[fNew-firstKeyFr];
  77.               } else {
  78.                 while (keyFrm<numKeyFr && fNew>=sprite.keyFrames[keyFrm]) keyFrm++;
  79.                 if (firstTime || fNew==sprite.keyFrames[keyFrm-1]) {
  80.                   if (props.prop2 == null) sprite.obj[props.prop] = props[keyFrm-1];
  81.                   else        sprite.obj[props.prop2][props.prop] = props[keyFrm-1];
  82.         } } } } }
  83.       } else if (sprite.charAt(0)=='b' && fNew == sprite.frame) eval(sprite.value);
  84.       if (fNew > tmLn.lastFrame) tmLn.ID = 0;
  85.   } }
  86. }
  87.  
  88. function MM_timelineGoto(tmLnName, fNew, numGotos) { 
  89.   //Copyright 1997 Macromedia, Inc. All rights reserved.
  90.   var i,j,tmLn,props,keyFrm,sprite,numKeyFr,firstKeyFr,lastKeyFr,propNum,theObj;
  91.   if (document.MM_Time == null) MM_initTimelines(); //if *very* 1st time
  92.   tmLn = document.MM_Time[tmLnName];
  93.   if (numGotos != null)
  94.     if (tmLn.gotoCount == null) tmLn.gotoCount = 1;
  95.     else if (tmLn.gotoCount++ >= numGotos) {tmLn.gotoCount=0; return}
  96.   jmpFwd = (fNew > tmLn.curFrame);
  97.   for (i = 0; i < tmLn.length; i++) {
  98.     sprite = (jmpFwd)? tmLn[i] : tmLn[(tmLn.length-1)-i]; //count bkwds if jumping back
  99.     if (sprite.charAt(0) == "s") {
  100.       numKeyFr = sprite.keyFrames.length;
  101.       firstKeyFr = sprite.keyFrames[0];
  102.       lastKeyFr = sprite.keyFrames[numKeyFr - 1];
  103.       if ((jmpFwd && fNew<firstKeyFr) || (!jmpFwd && lastKeyFr<fNew)) continue; //skip if untouchd
  104.       for (keyFrm=1; keyFrm<numKeyFr && fNew>=sprite.keyFrames[keyFrm]; keyFrm++);
  105.       for (j=0; j<sprite.values.length; j++) {
  106.         props = sprite.values[j];
  107.         if (numKeyFr == props.length) propNum = keyFrm-1 //keyframes only
  108.         else propNum = Math.min(Math.max(0,fNew-firstKeyFr),props.length-1); //or keep in legal range
  109.         if (sprite.obj != null) {
  110.           if (props.prop2 == null) sprite.obj[props.prop] = props[propNum];
  111.           else        sprite.obj[props.prop2][props.prop] = props[propNum];
  112.       } }
  113.     } else if (sprite.charAt(0)=='b' && fNew == sprite.frame) eval(sprite.value);
  114.   }
  115.   tmLn.curFrame = fNew;
  116.   if (tmLn.ID == 0) eval('MM_timelinePlay(tmLnName)');
  117. }
  118.  
  119. function MM_initTimelines() {
  120.     //MM_initTimelines() Copyright 1997 Macromedia, Inc. All rights reserved.
  121.     var ns = navigator.appName == "Netscape";
  122.     document.MM_Time = new Array(1);
  123.     document.MM_Time[0] = new Array(3);
  124.     document.MM_Time["Timeline1"] = document.MM_Time[0];
  125.     document.MM_Time[0].MM_Name = "Timeline1";
  126.     document.MM_Time[0].fps = 15;
  127.     document.MM_Time[0][0] = new String("behavior");
  128.     document.MM_Time[0][0].frame = 5;
  129.     document.MM_Time[0][0].value = "MM_showHideLayers('document.layers[\\\'Layer7\\\']','document.all[\\\'Layer7\\\']','hide')";
  130.     document.MM_Time[0][1] = new String("behavior");
  131.     document.MM_Time[0][1].frame = 15;
  132.     document.MM_Time[0][1].value = "MM_showHideLayers('document.layers[\\\'Layer7\\\']','document.all[\\\'Layer7\\\']','show')";
  133.     document.MM_Time[0][2] = new String("behavior");
  134.     document.MM_Time[0][2].frame = 20;
  135.     document.MM_Time[0][2].value = "MM_timelineGoto('Timeline1','1')";
  136.     document.MM_Time[0].lastFrame = 20;
  137.     for (i=0; i<document.MM_Time.length; i++) {
  138.         document.MM_Time[i].ID = null;
  139.         document.MM_Time[i].curFrame = 0;
  140.         document.MM_Time[i].delay = 1000/document.MM_Time[i].fps;
  141.     }
  142. }
  143. //-->
  144. </script>
  145. <style type="text/css">
  146. <!--
  147. .Fixed02 {  font-family: "Arial", "Helvetica", "sans-serif"; font-size: 7pt; font-style: italic; color: #FFFF99}
  148. .ThumbTitleStyle {  font-family: "Times New Roman", "Times", "serif"; font-size: 9pt; font-weight: bold; color: #CCCCFF}
  149. .AlbumTitleStyle {  font-family: "Arial", "Helvetica", "sans-serif"; font-size: 32pt; font-style: normal; font-weight: bold; color: #FFFFFF}
  150. .SignStyle {  font-family: "Times New Roman", "Times", "serif"; font-size: 10pt; font-style: italic; font-weight: bold; color: #99CCFF}
  151. -->
  152. </style>
  153. <script language="JavaScript">
  154. <!-
  155. function MM_changeProp(objStrNS,objStrIE,theProp,theValue) { 
  156.   var NS = (navigator.appName == 'Netscape');
  157.   var objStr = (NS)?objStrNS:objStrIE;
  158.   if (( NS && (objStr.indexOf('document.layers[')!=0 || document.layers!=null)) ||
  159.       (!NS && (objStr.indexOf('document.all[')   !=0 || document.all   !=null))) {
  160.     var obj = eval(objStr);
  161.     if ((obj != null) && (theProp.indexOf("style.") != 0 || obj.style != null)) {
  162.       eval(objStr+'.'+theProp + '="'+theValue+'"');
  163.   } }
  164. }
  165.  
  166. var nCurImg = 0;
  167. var nTimeSlice = 1000;
  168. var nImgCount = 1;
  169. var ImgFileNameArray;
  170. var bPlay = false;
  171. var nTimeoutID = 0;
  172.  
  173. function CreateImageArray()
  174. {
  175.     ImgFileNameArray = new Array(nImgCount);
  176.     ImgFileNameArray[0] = "../image/wedd-photo.jpg";
  177. }
  178.  
  179. function SetHolderImage(nIndex)
  180. {    
  181.     if (nIndex < nImgCount) {
  182.         var ImgSrc = ImgFileNameArray[nIndex];
  183.         MM_changeProp("document.layers[\"Layer21\"].document.ImgHolder", "document.ImgHolder", "src", ImgSrc, "IMG");
  184.     }
  185.     else
  186.         window.alert("Array index out of bound");
  187. }
  188.  
  189. function OnLoadDocument()
  190. {
  191.     CreateImageArray();
  192.     SetHolderImage(0);
  193.     Play();
  194. }
  195.  
  196. function TimeoutProc()
  197. {
  198.     if (bPlay) {
  199.         Next();
  200.         nTimeroutID = window.setTimeout("TimeoutProc()", nTimeSlice);    
  201.     }
  202. }
  203.  
  204. function Play()
  205. {
  206.     if (!bPlay) {
  207.         bPlay = true;
  208.         nTimeroutID = window.setTimeout("TimeoutProc()", nTimeSlice);
  209.     }
  210. }
  211.  
  212. function Stop()
  213. {
  214.     if (bPlay) {
  215.         bPlay = false;
  216.         if (nTimeoutID != 0)
  217.             window.clearTimeout(nTimeoutID);
  218.     }
  219. }
  220.  
  221. function Next()
  222. {
  223.     nCurImg = (nCurImg + 1) % nImgCount;
  224.     SetHolderImage(nCurImg);
  225. }
  226.  
  227. function Previous()
  228. {
  229.     nCurImg = (nCurImg - 1) % nImgCount;
  230.     if (nCurImg < 0)
  231.         nCurImg += nImgCount;
  232.         
  233.     SetHolderImage(nCurImg);
  234. }
  235.  
  236. //-->
  237. </script>
  238.  
  239. </head>
  240. <bgsound id="BackgroundSound" type="audio/midi" src="../audio/Here Comes the Bride(Organ).mid" repeat="1" loop="-1">
  241. <body bgcolor="#FFFFFF" background="../image/wedd-bk2.jpg" onLoad="MM_preloadImages('../image/preb2.jpg','#925073877090');MM_preloadImages('../image/wedd-homeb2.jpg','#925073892030');MM_preloadImages('../image/wedd-nextb2.jpg','#925073901150');MM_timelinePlay('Timeline1')" link="#FFFF99" vlink="#FFFF99" alink="#FFFF99">
  242. <div id="Layer1" style="position:absolute; left:256px; top:380px; width:44px; height:20px; z-index:4"><a href="#" onClick="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('document.layers[\'Layer1\'].document.uPreviousButton','document.uPreviousButton','../image/preb2.jpg','#925073877090')"><img src="../image/preb1.jpg" width="56" height="24" border="0" name="uPreviousButton" alt="Back"></a></div>
  243. <div id="Layer2" style="position:absolute; left:357px; top:380px; width:56px; height:23px; z-index:5"><a href="#" onClick="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('document.layers[\'Layer2\'].document.uHomeButton','document.uHomeButton','../image/wedd-homeb2.jpg','#925073892030')"><img src="../image/wedd-homeb1.jpg" width="56" height="24" border="0" name="uHomeButton" alt="Home"></a></div>
  244. <div id="Layer3" style="position:absolute; left:472px; top:380px; width:44px; height:22px; z-index:6"><a href="#" onClick="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('document.layers[\'Layer3\'].document.uNextButton','document.uNextButton','../image/wedd-nextb2.jpg','#925073901150')"><img src="../image/wedd-nextb1.jpg" width="56" height="24" border="0" name="uNextButton" alt="Next"></a></div>
  245. <div id="Layer4" style="position:absolute; left:238px; top:78px; width:38px; height:28px; z-index:8"><img name="uImage001" src="../Image/wedd-photo.jpg" width="355" height="208"></div>
  246. <div id="Layer16" style="position:absolute; left:219px; top:57px; width:355px; height:186px; z-index:7"><img src="../image/wedd-frame-1.jpg" width="393" height="252"></div>
  247. <div id="Layer6" style="position:absolute; left:110px; top:267px; width:46px; height:58px; z-index:10"><img src="../image/lover.gif" width="39" height="88"></div>
  248. <div id="Layer7" style="position:absolute; left:101px; top:34px; width:85px; height:210px; z-index:11"><img src="../image/heart1.gif" width="109" height="226"></div>
  249. <div id="Layer9" style="position:absolute; left:85px; top:143px; width:600px; height:186px; z-index:2"><img src="../image/wedd-main2.jpg" width="600" height="240"></div>
  250. <div id="Layer10" style="position:absolute; left:14px; top:381px; width:747px; height:24; z-index:3; background-image: url(../image/tbk2.jpg); layer-background-image: url(../image/tbk2.jpg); border: 1px none #000000"> 
  251.   <p></div>
  252. <div id="Layer11" style="position:absolute; left:525px; top:328px; width:109px; height:42px; z-index:9"><img src="../image/car3.gif" width="157" height="50"></div>
  253. <div id="Layer12" style="position:absolute; width:751px; height:249px; z-index:1; background-image: url(../image/star-ani.gif); layer-background-image: url(../image/star-ani.gif); border: 1px none #000000; left: 4px; top: 5px" class="ThumbTitleStyle"> 
  254.   <p></div>
  255. <div id="Layer13" style="position:absolute; width:211px; height:28px; z-index:14; left: 546px; top: 407px"> 
  256.   <p align="left"><a href="http://www.novadevelopment.com" class="Fixed02"> 
  257.      </a></p>
  258.   </div>
  259. <div id="Layer15" style="position:absolute; left:0; top:430; width:760; height:50; z-index:16; visibility: hidden"> 
  260.   <p id="uSignature" align="left" class="SignStyle">Input signature here!</p>
  261. </div>
  262.  
  263. <div id="Layer5" style="position:absolute; width:179px; height:48px; z-index:13; left: 221px; top: 316px"> 
  264.   <p id="uThumbTitle001" class="ThumbTitleStyle" align="left">May 29, 2000</p>
  265.     </div>
  266.  
  267. <div id="Layer14" style="position:absolute; left:86px; top:2px; width:666px; height:52px; z-index:15"> 
  268.   <p id="uAlbumTitle" align="center" class="AlbumTitleStyle">Wedding Memories</p>
  269. </div>
  270. </body>
  271. </html>
  272.