home *** CD-ROM | disk | FTP | other *** search
/ Computer Shopper 188 - Disc 1 / dpcs1003a.iso / Extras / WebEasy / wepe-01000.exe / data1.cab / System / Objects / Gadgets / Display Time.TPL < prev    next >
Encoding:
Text File  |  2002-04-26  |  3.0 KB  |  103 lines

  1. ;
  2. ; Template     25/05/2000 15:47:02
  3. ; Copyright (C) 2002   V Communications, Inc.
  4. ; Pages: 1 Photos: 0
  5. ;
  6. begin
  7.     IxlaPhotoAlbum == 0
  8.     push_object IxlaPhotoAlbum
  9.     PG146445220 == 0
  10.     push_object PG146445220
  11.     OBJ146445220 == 0
  12.     push_object OBJ146445220
  13.     def ,`POINT00001`,14,22,
  14.     def ,`POINT00002`,109,41,
  15.     def ,`java_events`,`<SCRIPT LANGUAGE="JavaScript"><!--
  16.     
  17. var ixFontColor = '#000000';                                // Font color
  18. var ixFontFamily = 'arial, helvetica, sans-serif';        // Font family
  19. var ixFontSize = 10;                                                // Font size
  20.  
  21. var ixID='ixID'+Math.round(Math.random()*1000), src='';
  22. if(V4)
  23. {    if(V5 || IE)
  24.     {    document.writeln('<style type=\'text/css\'>');
  25.         document.writeln('#'+ixID+' {position: relative;}');
  26.         document.writeln('.ixTimeClass {font-family: '+ixFontFamily+'; font-size: '+ixFontSize+'pt; color: '+ixFontColor+';}');
  27.         document.writeln('</style>');
  28.     }
  29.     else
  30.     {    var pfx='';
  31.         if(this == window) pfx='document.';
  32.         eval(pfx+'ids.'+ixID+'.position=\'relative\'');
  33.         eval(pfx+'classes.ixTimeClass.all.fontFamily=\''+ixFontFamily+'\';');
  34.         eval(pfx+'classes.ixTimeClass.all.fontSize=\''+ixFontSize+'pt\';');
  35.         eval(pfx+'classes.ixTimeClass.all.color=\''+ixFontColor+'\';');
  36.         if(this != window)
  37.         {    src='document.layers.'+this.id;
  38.             var p=parentLayer;
  39.             while(p != window)
  40.             {    src='document.layers.'+p.id+'.'+src;
  41.                 p=p.parentLayer;
  42.             }
  43.             src='window.'+src;
  44.         }
  45.         if(src.length > 0) src+='.';
  46.     }
  47. }
  48. var isV4=V4;
  49. if(isV4 && NS && !V5) isV4 = (src.length>0);
  50. document.write('<div id=\'' + ixID + '\'>');
  51. document.write('<span class=\'ixTimeClass\'>');
  52. var dd=new Date();
  53. var hh=dd.getHours(); if(hh<10) hh='0'+hh;
  54. var mm=dd.getMinutes(); if(mm<10) mm='0'+mm;
  55. var ss=dd.getSeconds(); if(ss<10) ss='0'+ss;
  56. document.write(hh+':'+mm);
  57. if(isV4) document.write(':' + ss);
  58. document.write('</span>');
  59. if(isV4)
  60. {    var tmr='{ var dd = new Date();'
  61.     tmr+='var hh=dd.getHours(); if(hh<10) hh=\'0\'+hh;';
  62.     tmr+='var mm=dd.getMinutes(); if(mm<10) mm=\'0\'+mm;';
  63.     tmr+='var tmr=dd.getSeconds(); if(tmr<10) tmr=\'0\'+tmr;';
  64.     tmr+='var htmlStr = \'<span class=\"ixTimeClass\">\';';
  65.     tmr+='htmlStr+=hh+\':\'+mm+\':\'+tmr;';
  66.     tmr+='htmlStr+=\'</span>\';';
  67.     if(NS && V5)
  68.     {
  69.         tmr+=' var elm=document.getElementById(\''+ixID+'\');';
  70.         tmr+=' var txt=elm.firstChild.firstChild;';
  71.         tmr+=' txt.replaceData(0,txt.data.length,hh+\':\'+mm+\':\'+tmr);';
  72.     }
  73.     else
  74.     {
  75.         if(IE)
  76.         {    tmr+=' document.all[\''+ixID+'\'].innerHTML=htmlStr;';
  77.         }
  78.         else
  79.         {    tmr+=' var ixD='+src+'document.layers[\''+ixID+'\'].document;';
  80.             tmr+=' ixD.open(\'text/html\');';
  81.             tmr+=' ixD.write(htmlStr);';
  82.             tmr+=' ixD.close();';
  83.         }
  84.     }
  85.     tmr+='}';
  86.     setInterval(tmr,500);
  87. }
  88. document.writeln('</div>');//-->
  89. </SCRIPT>`,yes,
  90.     def ,`name`,`Objects\Gadgets\Display Time.GIF`,yes,
  91.     def ,`type`,`G_IMAGE`,yes,
  92.     pop_current_object
  93.     def ,`10000`,`G_IMAGE`,OBJ146445220,
  94.     def ,`page bgc`,`white`,yes,
  95.     pop_current_object
  96.     def ,`page001`,PG146445220,yes,
  97.     def ,`page_depth`,64,yes,
  98.     def ,`page_width`,128,yes,
  99.     pop_current_object
  100. end
  101.  
  102. ;==EndOfFile==
  103.