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

  1. <html>
  2. <head>
  3. <title>Soccer Star</title>
  4. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  5. <style type="text/css">
  6. <!--
  7. .AlbumTitleStyle {  font-family: "Arial", "Helvetica", "sans-serif"; font-size: 24pt; color: #FFFFFF; font-weight: bold}
  8. .ThumbTitleStyle {  font-family: "Arial", "Helvetica", "sans-serif"; font-size: 10pt; color: #0000CC}
  9. -->
  10. </style>
  11. <style>.Fixed02 {  font-family: "Arial", "Helvetica", "sans-serif"; font-size: 7pt; font-style: italic; color: #FFFF99}
  12. .SignStyle {  font-family: "Arial", "Helvetica", "sans-serif"; font-size: 10pt; font-style: italic; font-weight: bolder}
  13. </style>
  14. <script language="JavaScript">
  15. <!--
  16. function MM_swapImgRestore() { //v2.0
  17.   if (document.MM_swapImgData != null)
  18.     for (var i=0; i<(document.MM_swapImgData.length-1); i+=2)
  19.       document.MM_swapImgData[i].src = document.MM_swapImgData[i+1];
  20. }
  21.  
  22. function MM_preloadImages() { //v2.0
  23.   if (document.images) {
  24.     var imgFiles = MM_preloadImages.arguments;
  25.     if (document.preloadArray==null) document.preloadArray = new Array();
  26.     var i = document.preloadArray.length;
  27.     with (document) for (var j=0; j<imgFiles.length; j++) if (imgFiles[j].charAt(0)!="#"){
  28.       preloadArray[i] = new Image;
  29.       preloadArray[i++].src = imgFiles[j];
  30.   } }
  31. }
  32.  
  33. function MM_swapImage() { //v2.0
  34.   var i,j=0,objStr,obj,swapArray=new Array,oldArray=document.MM_swapImgData;
  35.   for (i=0; i < (MM_swapImage.arguments.length-2); i+=3) {
  36.     objStr = MM_swapImage.arguments[(navigator.appName == 'Netscape')?i:i+1];
  37.     if ((objStr.indexOf('document.layers[')==0 && document.layers==null) ||
  38.         (objStr.indexOf('document.all[')   ==0 && document.all   ==null))
  39.       objStr = 'document'+objStr.substring(objStr.lastIndexOf('.'),objStr.length);
  40.     obj = eval(objStr);
  41.     if (obj != null) {
  42.       swapArray[j++] = obj;
  43.       swapArray[j++] = (oldArray==null || oldArray[j-1]!=obj)?obj.src:oldArray[j];
  44.       obj.src = MM_swapImage.arguments[i+2];
  45.   } }
  46.   document.MM_swapImgData = swapArray; //used for restore
  47. }
  48.  
  49. function MM_timelinePlay(tmLnName, myID) { //v1.2
  50.   //Copyright 1997 Macromedia, Inc. All rights reserved.
  51.   var i,j,tmLn,props,keyFrm,sprite,numKeyFr,firstKeyFr,propNum,theObj,firstTime=false;
  52.   if (document.MM_Time == null) MM_initTimelines(); //if *very* 1st time
  53.   tmLn = document.MM_Time[tmLnName];
  54.   if (myID == null) { myID = ++tmLn.ID; firstTime=true;}//if new call, incr ID
  55.   if (myID == tmLn.ID) { //if Im newest
  56.     setTimeout('MM_timelinePlay("'+tmLnName+'",'+myID+')',tmLn.delay);
  57.     fNew = ++tmLn.curFrame;
  58.     for (i=0; i<tmLn.length; i++) {
  59.       sprite = tmLn[i];
  60.       if (sprite.charAt(0) == 's') {
  61.         if (sprite.obj) {
  62.           numKeyFr = sprite.keyFrames.length; firstKeyFr = sprite.keyFrames[0];
  63.           if (fNew >= firstKeyFr && fNew <= sprite.keyFrames[numKeyFr-1]) {//in range
  64.             keyFrm=1;
  65.             for (j=0; j<sprite.values.length; j++) {
  66.               props = sprite.values[j]; 
  67.               if (numKeyFr != props.length) {
  68.                 if (props.prop2 == null) sprite.obj[props.prop] = props[fNew-firstKeyFr];
  69.                 else        sprite.obj[props.prop2][props.prop] = props[fNew-firstKeyFr];
  70.               } else {
  71.                 while (keyFrm<numKeyFr && fNew>=sprite.keyFrames[keyFrm]) keyFrm++;
  72.                 if (firstTime || fNew==sprite.keyFrames[keyFrm-1]) {
  73.                   if (props.prop2 == null) sprite.obj[props.prop] = props[keyFrm-1];
  74.                   else        sprite.obj[props.prop2][props.prop] = props[keyFrm-1];
  75.         } } } } }
  76.       } else if (sprite.charAt(0)=='b' && fNew == sprite.frame) eval(sprite.value);
  77.       if (fNew > tmLn.lastFrame) tmLn.ID = 0;
  78.   } }
  79. }
  80.  
  81. function MM_timelineGoto(tmLnName, fNew, numGotos) { //v2.0
  82.   //Copyright 1997 Macromedia, Inc. All rights reserved.
  83.   var i,j,tmLn,props,keyFrm,sprite,numKeyFr,firstKeyFr,lastKeyFr,propNum,theObj;
  84.   if (document.MM_Time == null) MM_initTimelines(); //if *very* 1st time
  85.   tmLn = document.MM_Time[tmLnName];
  86.   if (numGotos != null)
  87.     if (tmLn.gotoCount == null) tmLn.gotoCount = 1;
  88.     else if (tmLn.gotoCount++ >= numGotos) {tmLn.gotoCount=0; return}
  89.   jmpFwd = (fNew > tmLn.curFrame);
  90.   for (i = 0; i < tmLn.length; i++) {
  91.     sprite = (jmpFwd)? tmLn[i] : tmLn[(tmLn.length-1)-i]; //count bkwds if jumping back
  92.     if (sprite.charAt(0) == "s") {
  93.       numKeyFr = sprite.keyFrames.length;
  94.       firstKeyFr = sprite.keyFrames[0];
  95.       lastKeyFr = sprite.keyFrames[numKeyFr - 1];
  96.       if ((jmpFwd && fNew<firstKeyFr) || (!jmpFwd && lastKeyFr<fNew)) continue; //skip if untouchd
  97.       for (keyFrm=1; keyFrm<numKeyFr && fNew>=sprite.keyFrames[keyFrm]; keyFrm++);
  98.       for (j=0; j<sprite.values.length; j++) {
  99.         props = sprite.values[j];
  100.         if (numKeyFr == props.length) propNum = keyFrm-1 //keyframes only
  101.         else propNum = Math.min(Math.max(0,fNew-firstKeyFr),props.length-1); //or keep in legal range
  102.         if (sprite.obj != null) {
  103.           if (props.prop2 == null) sprite.obj[props.prop] = props[propNum];
  104.           else        sprite.obj[props.prop2][props.prop] = props[propNum];
  105.       } }
  106.     } else if (sprite.charAt(0)=='b' && fNew == sprite.frame) eval(sprite.value);
  107.   }
  108.   tmLn.curFrame = fNew;
  109.   if (tmLn.ID == 0) eval('MM_timelinePlay(tmLnName)');
  110. }
  111.  
  112. function MM_initTimelines() {
  113.     //MM_initTimelines() Copyright 1997 Macromedia, Inc. All rights reserved.
  114.     var ns = navigator.appName == "Netscape";
  115.     document.MM_Time = new Array(1);
  116.     document.MM_Time[0] = new Array(3);
  117.     document.MM_Time["Timeline1"] = document.MM_Time[0];
  118.     document.MM_Time[0].MM_Name = "Timeline1";
  119.     document.MM_Time[0].fps = 15;
  120.     document.MM_Time[0][0] = new String("sprite");
  121.     document.MM_Time[0][0].slot = 1;
  122.     if (ns)
  123.         document.MM_Time[0][0].obj = document["Layer6"];
  124.     else
  125.         document.MM_Time[0][0].obj = document.all ? document.all["Layer6"] : null;
  126.     document.MM_Time[0][0].keyFrames = new Array(1, 5, 11, 16, 22, 26, 31, 39);
  127.     document.MM_Time[0][0].values = new Array(3);
  128.     document.MM_Time[0][0].values[0] = new Array(5,27,49,74,104,127,147,167,186,205,225,245,259,271,283,300,315,329,341,353,365,380,402,421,439,459,476,491,505,519,533,542,551,560,568,577,585,594,602);
  129.     document.MM_Time[0][0].values[0].prop = "left";
  130.     document.MM_Time[0][0].values[1] = new Array(364,342,321,301,290,295,307,321,335,347,354,348,335,322,309,302,308,319,331,343,354,361,356,345,333,327,332,341,352,362,369,372,374,375,376,376,377,377,378);
  131.     document.MM_Time[0][0].values[1].prop = "top";
  132.     if (!ns) {
  133.         document.MM_Time[0][0].values[0].prop2 = "style";
  134.         document.MM_Time[0][0].values[1].prop2 = "style";
  135.     }
  136.     document.MM_Time[0][0].values[2] = new Array("13","6","6","6","6","6","6","6");
  137.     document.MM_Time[0][0].values[2].prop = "zIndex";
  138.     if (!ns)
  139.         document.MM_Time[0][0].values[2].prop2 = "style";
  140.     document.MM_Time[0][1] = new String("behavior");
  141.     document.MM_Time[0][1].frame = 93;
  142.     document.MM_Time[0][1].value = "MM_timelineGoto('Timeline1','1')";
  143.     document.MM_Time[0][2] = new String("sprite");
  144.     document.MM_Time[0][2].slot = 2;
  145.     if (ns)
  146.         document.MM_Time[0][2].obj = document["Layer4"];
  147.     else
  148.         document.MM_Time[0][2].obj = document.all ? document.all["Layer4"] : null;
  149.     document.MM_Time[0][2].keyFrames = new Array(33, 38, 43, 48, 56, 60);
  150.     document.MM_Time[0][2].values = new Array(2);
  151.     document.MM_Time[0][2].values[0] = new Array(19,45,70,96,121,147,171,193,212,229,247,262,273,283,293,305,313,320,326,332,338,347,357,370,406,448,494,540);
  152.     document.MM_Time[0][2].values[0].prop = "left";
  153.     document.MM_Time[0][2].values[1] = new Array(385,372,358,345,335,329,333,343,354,364,370,368,361,353,346,343,345,350,356,362,368,374,378,381,382,379,374,370);
  154.     document.MM_Time[0][2].values[1].prop = "top";
  155.     if (!ns) {
  156.         document.MM_Time[0][2].values[0].prop2 = "style";
  157.         document.MM_Time[0][2].values[1].prop2 = "style";
  158.     }
  159.     document.MM_Time[0].lastFrame = 93;
  160.     for (i=0; i<document.MM_Time.length; i++) {
  161.         document.MM_Time[i].ID = null;
  162.         document.MM_Time[i].curFrame = 0;
  163.         document.MM_Time[i].delay = 1000/document.MM_Time[i].fps;
  164.     }
  165. }
  166. //-->
  167. </script>
  168. <script language="JavaScript">
  169. <!--
  170. function MM_changeProp(objStrNS,objStrIE,theProp,theValue) { //v2.0
  171.   var NS = (navigator.appName == 'Netscape');
  172.   var objStr = (NS)?objStrNS:objStrIE;
  173.   if (( NS && (objStr.indexOf('document.layers[')!=0 || document.layers!=null)) ||
  174.       (!NS && (objStr.indexOf('document.all[')   !=0 || document.all   !=null))) {
  175.     var obj = eval(objStr);
  176.     if ((obj != null) && (theProp.indexOf("style.") != 0 || obj.style != null)) {
  177.       eval(objStr+'.'+theProp + '="'+theValue+'"');
  178.   } }
  179. }
  180.  
  181.  
  182. var nCurImg = 0;
  183. var nTimeSlice = 1000;
  184. var nImgCount = 1;
  185. var ImgFileNameArray;
  186. var bPlay = false;
  187. var nTimeoutID = 0;
  188.  
  189.  
  190. function CreateImageArray()
  191. {
  192.     ImgFileNameArray = new Array(nImgCount);
  193.     ImgFileNameArray[0] = "../image/plball-photo-1.jpg";
  194. }
  195.  
  196.  
  197. function SetHolderImage(nIndex)
  198. {    
  199.     if (nIndex < nImgCount) {
  200.         var ImgSrc = ImgFileNameArray[nIndex];
  201.         MM_changeProp("document.layers[\"Layer21\"].document.ImgHolder", "document.ImgHolder", "src", ImgSrc, "IMG");
  202.     }
  203.     else
  204.         window.alert("Array index out of bound");
  205. }
  206.  
  207.  
  208. function OnLoadDocument()
  209. {
  210.     CreateImageArray();
  211.  
  212.     SetHolderImage(0);
  213.     
  214.     Play();
  215. }
  216.  
  217.  
  218. function TimeoutProc()
  219. {
  220.     if (bPlay) {
  221.         Next();
  222.         nTimeroutID = window.setTimeout("TimeoutProc()", nTimeSlice);    
  223.     }
  224. }
  225.  
  226. function Play()
  227. {
  228.     if (!bPlay) {
  229.         bPlay = true;
  230.         nTimeroutID = window.setTimeout("TimeoutProc()", nTimeSlice);
  231.     }
  232. }
  233.  
  234. function Stop()
  235. {
  236.     if (bPlay) {
  237.         bPlay = false;
  238.         if (nTimeoutID != 0)
  239.             window.clearTimeout(nTimeoutID);
  240.     }
  241. }
  242.  
  243. function Next()
  244. {
  245.     nCurImg = (nCurImg + 1) % nImgCount;
  246.     SetHolderImage(nCurImg);
  247. }
  248.  
  249. function Previous()
  250. {
  251.     nCurImg = (nCurImg - 1) % nImgCount;
  252.     if (nCurImg < 0)
  253.         nCurImg += nImgCount;
  254.         
  255.     SetHolderImage(nCurImg);
  256. }
  257.  
  258. //-->
  259. </script>
  260. </head>
  261. <bgsound id="BackgroundSound" type="audio/midi" src="../audio/The Little Flute.mid" repeat="1" loop="-1">
  262. <body bgcolor="#088642" onLoad="MM_preloadImages('../image/ar2.gif','#923723977841');MM_timelinePlay('Timeline1');MM_preloadImages('../image/Xx2small.gif','#924260053010');MM_preloadImages('../image/Xx1small.gif','#924260068660');MM_preloadImages('../image/Xx3small.gif','#924260086300')" link="#FFFF99" vlink="#FFFF99" alink="#FFFF99">
  263. <div id="Layer7" style="position:absolute; left:4px; top:477px; width:747px; height:53px; z-index:21; visibility: hidden"> 
  264.   <p id="uSignature" class="SignStyle" align="left">Input signature here!</p>
  265. </div>
  266. <div id="Layer1" style="position:absolute; left:1px; top:1px; width:46px; height:56px; z-index:1"><img src="../image/plball-Back-final.jpg" width="750" height="440"></div>
  267. <div id="Layer2" style="position:absolute; left:40px; top:203px; width:19px; height:17px; z-index:13"><a href="#" onClick="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('document.layers[\'Layer2\'].document.uHomeButton','document.uHomeButton','../image/Xx1small.gif','#924260068660')"><img name="uHomeButton" src="../image/X1new.gif" width="38" height="39" border="0" alt="Home"></a></div>
  268. <div id="Layer4" style="position:absolute; left:19px; top:385px; width:20px; height:26px; z-index:14"><img src="../image/plball-C1.gif" width="71" height="71"></div> 
  269. <div id="Layer3" style="position:absolute; left:39px; top:261px; width:21px; height:21px; z-index:4"><a href="#" onClick="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('document.layers[\'Layer3\'].document.uNextButton','document.uNextButton','../image/Xx3small.gif','#924260086300')"><img name="uNextButton" src="../image/X1new.gif" width="38" height="39" border="0" alt="Next"></a></div>
  270. <div id="Layer5" style="position:absolute; left:39px; top:144px; width:31px; height:32px; z-index:6"><a href="#" onClick="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('document.layers[\'Layer5\'].document.uPreviousButton','document.uPreviousButton','../image/Xx2small.gif','#924260053010')"><img name="uPreviousButton" src="../image/X1new.gif" width="38" height="39" border="0" alt="Back"></a></div>
  271. <div id="Layer6" style="position:absolute; left:5px; top:364px; width:32px; height:34px; z-index:13"><img src="../image/plball-C1.gif" width="71" height="71"></div>
  272. <div id="Layer9" style="position:absolute; left:198px; top:134px; width:277px; height:195px; z-index:3"><img name="uImage001" src="../image/plball-photo-1.jpg" width="322" height="210"></div>
  273. <div id="Layer10" style="position:absolute; left:4px; top:8px; width:747px; height:21px; z-index:24"> 
  274.   <p id="uAlbumTitle" class="AlbumTitleStyle" align="center">Soccer Star</p>
  275. </div>
  276. <div id="Layer11" style="position:absolute; left:176px; top:360px; width:370px; height:92px; z-index:22"> 
  277.   <p id="uThumbTitle001" class="ThumbTitleStyle" align="left">Your photo caption goes here!</p>
  278. </div>
  279. <div id="Layer12" style="position:absolute; width:319px; height:20px; z-index:23; left: 13px; top: 452px"> 
  280.   <div align="center">
  281.     
  282.     <p align="left"><a href="http://www.novadevelopment.com"class="Fixed02"> 
  283.        </a>
  284.   </div>
  285. </div>
  286. </body>
  287. </html>
  288.