\n'); } function small_DoFSCommand(command, args) { var smallObj = isInternetExplorer ? document.all.small : document.small; scrolldown(); } // Hook for Internet Explorer. if (navigator.appName && navigator.appName.indexOf("Microsoft") != -1 && navigator.userAgent.indexOf("Windows") != -1 && navigator.userAgent.indexOf("Windows 3.1") == -1) { document.write('\n'); } //http://www.xs4all.nl/~ppk/js/layerscroll.html var thelayer, thelayer1, thelayer2; var imovey = 5; var ispeed = 10; var shrinkheight = 85; var expandheight = 85; //315 var tempheight = 85; //315 var i = 0; function scrollup() { if (tempheight > shrinkheight) { //clearTimeout(timeoutID2); tempheight -= imovey; if (document.getElementById || document.all) { thelayer.style.clip = 'rect(0px 1014px ' + tempheight + 'px 0px)'; thelayer2.style.height = tempheight + 'px'; } else if (document.layers) { thelayer.style.clip.bottom = tempheight; thelayer2.style.height = tempheight; } timeoutID1 = setTimeout('scrollup()', ispeed); } else { thelayer.style.display= 'none'; thelayer1.style.display= 'inline'; } } function scrolldown() { if (tempheight < expandheight) { i++; if (i == 1) { clearTimeout(timeoutID1); thelayer1.style.display= 'none'; thelayer.style.display= 'inline'; } tempheight += imovey; if (document.getElementById || document.all) { thelayer.style.clip = 'rect(0px 1014px ' + tempheight + 'px 0px)'; thelayer2.style.height = tempheight + 'px'; } else if (document.layers) { thelayer.style.clip.bottom = tempheight; thelayer2.style.height = tempheight; } timeoutID2 = setTimeout('scrolldown()', ispeed); } else { i = 0; } } function getObj(name) { if (document.getElementById) { this.obj = document.getElementById(name); this.style = document.getElementById(name).style; } else if (document.all) { this.obj = document.all[name]; this.style = document.all[name].style; } else if (document.layers) { this.obj = document.layers[name]; this.style = document.layers[name]; } } function init() { DHTML = (document.getElementById || document.all || document.layers) if (!DHTML) return; thelayer = new getObj('ad'); thelayer1 = new getObj('ad1'); thelayer2 = new getObj('ad2'); setTimeout('scrollup()', 10000); //停留時間 } //document.getElementById('ad').style.position="absolute"; window.onload = preloadImages(); -->
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||