home *** CD-ROM | disk | FTP | other *** search
/ Minami 79 / MINAMI79.iso / Extra / MPSetup.exe / 1033 / RCDATA / CABINET / wmploc.DLL / HTML / BGTB.HTC < prev    next >
Text File  |  2002-12-14  |  879b  |  29 lines

  1. <PUBLIC:COMPONENT lightWeight=true>
  2. <PUBLIC:METHOD NAME="reload" />
  3. <PUBLIC:ATTACH EVENT="onmove" ONEVENT="move()" />
  4. <PUBLIC:PROPERTY NAME="image" />
  5. <PUBLIC:PROPERTY NAME="imgWidth" />
  6.  
  7. <SCRIPT LANGUAGE="JScript">
  8.  
  9. var sPanel, iPanelsDisplayed = 0;
  10. function load() 
  11. {
  12.     sPanel = '<span style="position:absolute; z-index:-5; width: ' + imgWidth + '; height: 100%; top: -130; left:-150; background-color: expression(getCurrentColor()); filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\'' + image + '\', sizingMethod=image)"></span>';
  13.     element.innerHTML = sPanel;
  14. }
  15.  
  16. function reload() { load(); }
  17.  
  18. function move()
  19. {
  20.     var iLeft = element.style.posLeft;
  21.     while ((-iLeft + element.document.body.clientWidth) > (iLeft + (imgWidth * iPanelsDisplayed)))
  22.     {
  23.         element.innerHTML += sPanel;
  24.         iPanelsDisplayed++;
  25.     }
  26. }
  27. </SCRIPT>
  28. </PUBLIC:COMPONENT>
  29.