home *** CD-ROM | disk | FTP | other *** search
/ Dynamic HTML Construction Kit / Dynamic HTML Construction Kit.iso / source_code / dhtmlunl / dhtml.exe / CD Content / Chap26 / dun26_9.txt < prev   
Encoding:
Text File  |  1997-12-18  |  645 b   |  20 lines

  1. var rotation = true;
  2.  
  3. function coreAction() {
  4.     if(rotation == true) {
  5.         spinCore(screen_width-281, 0, 202, 101, 101);
  6.         setTimeout("spinCore(screen_width-382, 0, 303, 101, 202)", 150);
  7.         setTimeout("spinCore(screen_width-180, 0, 101, 101, 0)", 300);
  8.         setTimeout("coreAction()", 450);
  9.     }
  10. }
  11. function spinCore(left, cTop, cRight, cBottom, cLeft) {
  12.     coreObj.left = left;
  13.     if(nav == "ns4") {
  14.         coreObj.clip.left = cLeft;
  15.         coreObj.clip.right = cRight;
  16.     } else {
  17.         coreObj.clip = "rect(" + cTop + " " + cRight + " " + cBottom + " " + cLeft + ")";
  18.     }
  19. }
  20.