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

  1. <html>
  2. <head>
  3. <title>Sport</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: #336633}
  8. .Fixed01 {  font-family: "Arial", "Helvetica", "sans-serif"; font-size: 7pt; font-style: italic; color: #330099}
  9. .ThumbTitleStyle {  font-family: "Times New Roman", "Times", "serif"; font-size: 12pt; color: #000000}
  10. .SignStyle {  font-family: "Times New Roman", "Times", "serif"; font-size: 10pt; font-style: italic; font-weight: bold; color: #FF6633}
  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. </script>
  38. <script language="JavaScript">
  39. <!--
  40. function MM_changeProp(objStrNS,objStrIE,theProp,theValue) { //v2.0
  41.   var NS = (navigator.appName == 'Netscape');
  42.   var objStr = (NS)?objStrNS:objStrIE;
  43.   if (( NS && (objStr.indexOf('document.layers[')!=0 || document.layers!=null)) ||
  44.       (!NS && (objStr.indexOf('document.all[')   !=0 || document.all   !=null))) {
  45.     var obj = eval(objStr);
  46.     if ((obj != null) && (theProp.indexOf("style.") != 0 || obj.style != null)) {
  47.       eval(objStr+'.'+theProp + '="'+theValue+'"');
  48.   } }
  49. }
  50. var nCurImg = 0;
  51. var nTimeSlice = 1000;
  52. var nImgCount = 1;
  53. var ImgFileNameArray;
  54. var bPlay = false;
  55. var nTimeoutID = 0;
  56.  
  57. function CreateImageArray()
  58. {
  59.     ImgFileNameArray = new Array(nImgCount);
  60.     ImgFileNameArray[0] = "../image/sports-photo.jpg";
  61. }
  62.  
  63. function SetHolderImage(nIndex)
  64. {    
  65.     if (nIndex < nImgCount) {
  66.         var ImgSrc = ImgFileNameArray[nIndex];
  67.         MM_changeProp("document.layers[\"Layer21\"].document.ImgHolder", "document.ImgHolder", "src", ImgSrc, "IMG");
  68.     }
  69.     else
  70.         window.alert("Array index out of bound");
  71. }
  72.  
  73. function OnLoadDocument()
  74. {
  75.     CreateImageArray();
  76.     SetHolderImage(0);
  77.     Play();
  78. }
  79.  
  80. function TimeoutProc()
  81. {
  82.     if (bPlay) {
  83.         Next();
  84.         nTimeroutID = window.setTimeout("TimeoutProc()", nTimeSlice);    
  85.     }
  86. }
  87.  
  88. function Play()
  89. {
  90.     if (!bPlay) {
  91.         bPlay = true;
  92.         nTimeroutID = window.setTimeout("TimeoutProc()", nTimeSlice);
  93.     }
  94. }
  95.  
  96. function Stop()
  97. {
  98.     if (bPlay) {
  99.         bPlay = false;
  100.         if (nTimeoutID != 0)
  101.             window.clearTimeout(nTimeoutID);
  102.     }
  103. }
  104.  
  105. function Next()
  106. {
  107.     nCurImg = (nCurImg + 1) % nImgCount;
  108.     SetHolderImage(nCurImg);
  109. }
  110.  
  111. function Previous()
  112. {
  113.     nCurImg = (nCurImg - 1) % nImgCount;
  114.     if (nCurImg < 0)
  115.         nCurImg += nImgCount;
  116.         
  117.     SetHolderImage(nCurImg);
  118. }
  119.  
  120. function MM_timelinePlay(tmLnName, myID) { 
  121.   //Copyright 1997 Macromedia, Inc. All rights reserved.
  122.   var i,j,tmLn,props,keyFrm,sprite,numKeyFr,firstKeyFr,propNum,theObj,firstTime=false;
  123.   if (document.MM_Time == null) MM_initTimelines(); //if *very* 1st time
  124.   tmLn = document.MM_Time[tmLnName];
  125.   if (myID == null) { myID = ++tmLn.ID; firstTime=true;}//if new call, incr ID
  126.   if (myID == tmLn.ID) { //if Im newest
  127.     setTimeout('MM_timelinePlay("'+tmLnName+'",'+myID+')',tmLn.delay);
  128.     fNew = ++tmLn.curFrame;
  129.     for (i=0; i<tmLn.length; i++) {
  130.       sprite = tmLn[i];
  131.       if (sprite.charAt(0) == 's') {
  132.         if (sprite.obj) {
  133.           numKeyFr = sprite.keyFrames.length; firstKeyFr = sprite.keyFrames[0];
  134.           if (fNew >= firstKeyFr && fNew <= sprite.keyFrames[numKeyFr-1]) {//in range
  135.             keyFrm=1;
  136.             for (j=0; j<sprite.values.length; j++) {
  137.               props = sprite.values[j]; 
  138.               if (numKeyFr != props.length) {
  139.                 if (props.prop2 == null) sprite.obj[props.prop] = props[fNew-firstKeyFr];
  140.                 else        sprite.obj[props.prop2][props.prop] = props[fNew-firstKeyFr];
  141.               } else {
  142.                 while (keyFrm<numKeyFr && fNew>=sprite.keyFrames[keyFrm]) keyFrm++;
  143.                 if (firstTime || fNew==sprite.keyFrames[keyFrm-1]) {
  144.                   if (props.prop2 == null) sprite.obj[props.prop] = props[keyFrm-1];
  145.                   else        sprite.obj[props.prop2][props.prop] = props[keyFrm-1];
  146.         } } } } }
  147.       } else if (sprite.charAt(0)=='b' && fNew == sprite.frame) eval(sprite.value);
  148.       if (fNew > tmLn.lastFrame) tmLn.ID = 0;
  149.   } }
  150. }
  151.  
  152. function MM_timelineGoto(tmLnName, fNew, numGotos) { 
  153.   //Copyright 1997 Macromedia, Inc. All rights reserved.
  154.   var i,j,tmLn,props,keyFrm,sprite,numKeyFr,firstKeyFr,lastKeyFr,propNum,theObj;
  155.   if (document.MM_Time == null) MM_initTimelines(); //if *very* 1st time
  156.   tmLn = document.MM_Time[tmLnName];
  157.   if (numGotos != null)
  158.     if (tmLn.gotoCount == null) tmLn.gotoCount = 1;
  159.     else if (tmLn.gotoCount++ >= numGotos) {tmLn.gotoCount=0; return}
  160.   jmpFwd = (fNew > tmLn.curFrame);
  161.   for (i = 0; i < tmLn.length; i++) {
  162.     sprite = (jmpFwd)? tmLn[i] : tmLn[(tmLn.length-1)-i]; //count bkwds if jumping back
  163.     if (sprite.charAt(0) == "s") {
  164.       numKeyFr = sprite.keyFrames.length;
  165.       firstKeyFr = sprite.keyFrames[0];
  166.       lastKeyFr = sprite.keyFrames[numKeyFr - 1];
  167.       if ((jmpFwd && fNew<firstKeyFr) || (!jmpFwd && lastKeyFr<fNew)) continue; //skip if untouchd
  168.       for (keyFrm=1; keyFrm<numKeyFr && fNew>=sprite.keyFrames[keyFrm]; keyFrm++);
  169.       for (j=0; j<sprite.values.length; j++) {
  170.         props = sprite.values[j];
  171.         if (numKeyFr == props.length) propNum = keyFrm-1 //keyframes only
  172.         else propNum = Math.min(Math.max(0,fNew-firstKeyFr),props.length-1); //or keep in legal range
  173.         if (sprite.obj != null) {
  174.           if (props.prop2 == null) sprite.obj[props.prop] = props[propNum];
  175.           else        sprite.obj[props.prop2][props.prop] = props[propNum];
  176.       } }
  177.     } else if (sprite.charAt(0)=='b' && fNew == sprite.frame) eval(sprite.value);
  178.   }
  179.   tmLn.curFrame = fNew;
  180.   if (tmLn.ID == 0) eval('MM_timelinePlay(tmLnName)');
  181. }
  182.  
  183. function MM_initTimelines() {
  184.     //MM_initTimelines() Copyright 1997 Macromedia, Inc. All rights reserved.
  185.     var ns = navigator.appName == "Netscape";
  186.     document.MM_Time = new Array(1);
  187.     document.MM_Time[0] = new Array(2);
  188.     document.MM_Time["Timeline1"] = document.MM_Time[0];
  189.     document.MM_Time[0].MM_Name = "Timeline1";
  190.     document.MM_Time[0].fps = 15;
  191.     document.MM_Time[0][0] = new String("sprite");
  192.     document.MM_Time[0][0].slot = 1;
  193.     if (ns)
  194.         document.MM_Time[0][0].obj = document["Layer7"];
  195.     else
  196.         document.MM_Time[0][0].obj = document.all ? document.all["Layer7"] : null;
  197.     document.MM_Time[0][0].keyFrames = new Array(1, 11, 22, 34, 45);
  198.     document.MM_Time[0][0].values = new Array(5);
  199.     document.MM_Time[0][0].values[0] = new Array(725,710,695,680,666,651,636,620,604,587,570,553,536,518,500,481,462,443,424,405,386,367,349,332,314,297,279,262,246,229,214,199,185,171,158,147,136,126,118,109,101,93,85,76,68);
  200.     document.MM_Time[0][0].values[0].prop = "left";
  201.     document.MM_Time[0][0].values[1] = new Array(81,75,69,63,57,51,46,40,35,30,26,22,19,15,12,9,7,5,3,2,2,2,3,5,7,10,13,17,21,25,29,34,39,44,50,56,62,69,76,83,90,98,105,113,120);
  202.     document.MM_Time[0][0].values[1].prop = "top";
  203.     if (!ns) {
  204.         document.MM_Time[0][0].values[0].prop2 = "style";
  205.         document.MM_Time[0][0].values[1].prop2 = "style";
  206.     }
  207.     document.MM_Time[0][0].values[2] = new Array(31,31,31,31,31,31,31,31,31,31,32,32,32,32,32,32,33,33,33,33,33,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34);
  208.     document.MM_Time[0][0].values[2].prop = "width";
  209.     if (!ns)
  210.         document.MM_Time[0][0].values[2].prop2 = "style";
  211.     document.MM_Time[0][0].values[3] = new Array(30,30,30,30,30,30,30,30,30,30,31,31,31,31,32,32,32,32,33,33,33,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34);
  212.     document.MM_Time[0][0].values[3].prop = "height";
  213.     if (!ns)
  214.         document.MM_Time[0][0].values[3].prop2 = "style";
  215.     document.MM_Time[0][0].values[4] = new Array("3","3","4","4","4");
  216.     document.MM_Time[0][0].values[4].prop = "zIndex";
  217.     if (!ns)
  218.         document.MM_Time[0][0].values[4].prop2 = "style";
  219.     document.MM_Time[0][1] = new String("behavior");
  220.     document.MM_Time[0][1].frame = 46;
  221.     document.MM_Time[0][1].value = "MM_timelineGoto('Timeline1','1')";
  222.     document.MM_Time[0].lastFrame = 46;
  223.     for (i=0; i<document.MM_Time.length; i++) {
  224.         document.MM_Time[i].ID = null;
  225.         document.MM_Time[i].curFrame = 0;
  226.         document.MM_Time[i].delay = 1000/document.MM_Time[i].fps;
  227.     }
  228. }
  229. //-->
  230. </script>
  231. </head>
  232. <bgsound id="BackgroundSound" type="audio/midi" src="../audio/Expectations.mid" repeat="1" loop="-1">
  233. <body bgcolor="#FFFFFF" onLoad="MM_preloadImages('../Image/sports-back-on.gif');MM_preloadImages('../Image/sports-next-on.gif');MM_preloadImages('../Image/sports-home-on.gif');MM_timelinePlay('Timeline1')">
  234. <div id="Layer1" style="position:absolute; left:0px; top:0px; width:15px; height:17px; z-index:2"><img src="../Image/sports-bg.gif" width="760" height="420"></div>
  235. <div id="Layer2" style="position:absolute; left:2px; top:-5px; width:747px; height:52px; z-index:17"> 
  236.   <p id="uAlbumTitle" align="center" class="AlbumTitleStyle">And It's a Home Run!</p>
  237. </div>
  238. <div id="Layer12" style="position:absolute; left:207px; top:42px; width:14px; height:10px; z-index:6"><img src="../Image/sports-photo-bg.gif" width="375" height="260"></div>
  239. <div id="Layer3" style="position:absolute; left:483px; top:351px; width:6px; height:48px; z-index:7"><a href="#" onClick="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('uPreviousButton','','../Image/sports-back-on.gif',1)"><img src="../Image/sports-back.gif" width="97" height="65" alt="Back" name="uPreviousButton" border="0"></a></div>
  240. <div id="Layer4" style="position:absolute; left:657px; top:351px; width:9px; height:49px; z-index:8"><a href="#" onClick="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('uNextButton','','../Image/sports-next-on.gif',1)"><img src="../Image/sports-next.gif" width="98" height="65" alt="Next" name="uNextButton" border="0"></a></div>
  241. <div id="Layer5" style="position:absolute; left:589px; top:331px; width:7px; height:70px; z-index:9"><a href="#" onClick="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('uHomeButton','','../Image/sports-home-on.gif',1)"><img src="../Image/sports-home.gif" width="60" height="86" alt="Home" name="uHomeButton" border="0"></a></div>
  242. <div id="Layer6" style="position:absolute; left:0px; top:394px; width:229px; height:26px; z-index:16"> 
  243.   <p align="center"><a href="http://www.novadevelopment.com" class="Fixed01"> 
  244.      </a></p>
  245. </div>
  246. <div id="Layer9" style="position:absolute; left:20px; top:105px; width:7px; height:8px; z-index:3"><img src="../Image/sports-move02.gif" width="80" height="150"></div>
  247. <div id="Layer11" style="position:absolute; left:226px; top:298px; width:334px; height:49px; z-index:18"> 
  248.   <p id="uThumbTitle001" align="center" class="ThumbTitleStyle">Your photo caption goes here!
  249.   </p>
  250. </div>
  251. <div id="Layer7" style="position:absolute; left:725px; top:81px; width:31px; height:30px; z-index:3"><img src="../Image/baseball.gif" width="33" height="31"></div>
  252. <div id="Layer8" style="position:absolute; left:0; top:430; width:760; height:50; z-index:15; visibility: hidden"> 
  253.   <p id="uSignature" align="left" class="SignStyle">Input signature here!</p>
  254. </div>
  255. <div id="Layer10" style="position:absolute; left:229; top:62; width:49px; height:41px; z-index:11"><img src="../Image/sports-photo.jpg" width="331" height="215" name="uImage001"></div>
  256. </body>
  257. </html>
  258.