Automatic Page and Frame Scroller

[Total: 0    Average: 0/5]

This will scroll up and down when the current window is not big enough for the

Head Code:

<style type="text/css">
A { text-decoration:none;}
A:link {COLOR: blue}
A:visited {COLOR: blue}
A:hover {COLOR: red;background-color:#66ffff;}
 .tab {  font-weight:bold; font-size:12px; font-family:Arial,Helvetica; text-align:center;}
 .tabb {  font-weight:bold; font-size:12px; font-family:Arial,Helvetica; text-align:center; color:navy;}
</style>
<script language="JavaScript">

/***********************************
*   http://javascripts.vbarsan.com/
*   This notice may not be removed 
***********************************/

//If you have any other NS4 document-layer related 
//lines within your page/frame script, make sure to set  
//them as children: document.ns4page1.document.yourchild ...

//Parameters follow:
//==================
//speed: set to your own;(higher => faster)
var pspeed=1 
//pause before scrolling up: set to your own;
var upause=3000 
//pause before scrolling down: set to your own;
var dpause=2500 

//Algorithm follow:
//=================
var resumepspeed=pspeed;function startpage(){if(document.all){sizeup=iens6page.offsetHeight-document.body.clientHeight;iepage(iens6page);}else if(document.getElementById){sizeup=document.getElementById("iens6page").offsetHeight-window.innerHeight;ns6page(document.getElementById('iens6page'));}else if(document.layers){document.ns4page1.visibility="show";sizeup=document.height-window.innerHeight;ns4page(document.ns4page1);}}function iepage(whichdiv){iedivp=eval(whichdiv);iedivp.style.pixelTop=0;if(sizeup<=0) return;else{setTimeout("iepslide()",upause);}}function iepslide(){if(iedivp.style.pixelTop>=sizeup*-1){iedivp.style.pixelTop-=pspeed;setTimeout("iepslide()",50);}else setTimeout("iepslide1()",dpause);}function iepslide1(){if(iedivp.style.pixelTop<0){iedivp.style.pixelTop+=pspeed;setTimeout("iepslide1()",50);}else iepage(iedivp);}function ns4page(whichlayer){ns4layerp=eval(whichlayer);ns4layerp.top=0;if(sizeup<=0) return;else{setTimeout("ns4pslide()",upause);}}function ns4pslide(){if(ns4layerp.top>=sizeup*(-1)){ns4layerp.top-=pspeed;setTimeout("ns4pslide()",50);}else setTimeout("ns4pslide1()",dpause);}function ns4pslide1(){if(ns4layerp.top<0){ns4layerp.top+=pspeed;setTimeout("ns4pslide1()",50);}else ns4page(ns4layerp);}function ns6page(whichdiv){ns6divp=eval(whichdiv);ns6divp.style.top=0;if(sizeup<=0) return;else{setTimeout("ns6pslide()",upause);}}function ns6pslide(){if(parseInt(ns6divp.style.top)>=sizeup*(-1)){ns6divp.style.top=parseInt(ns6divp.style.top)-pspeed;setTimeout("ns6pslide()",50);}else setTimeout("ns6pslide1()",dpause);}function ns6pslide1(){if(parseInt(ns6divp.style.top)<0){ns6divp.style.top=parseInt(ns6divp.style.top)+pspeed;setTimeout("ns6pslide1()",50);}else ns6page(ns6divp);}
</script>

Body Code:

<!-- STEP III: The script below goes right after the openning <BODY ... > tag-->
<script language="JavaScript">if(document.layers)document.write('<table border=0><tr><td>');if(document.getElementById||document.all)document.write('<div  id="iens6page" style="position:relative;top:0;left:0;overflow:hidden;" onMouseover="pspeed=0;" onMouseout="pspeed=resumepspeed">');</script><layer id="ns4page1" top=0 left=0 onMouseover="pspeed=0;" onMouseout="pspeed=resumepspeed"><table border=0><tr><td>

<!-- End -->
<div align="center" class=tabb>
<br>===========================================
<br> HERE goes THE WHOLE CONTENT of your PAGE's BODY
<br><br><br><br>Page/Frame Scroller
<br><br><br><br><br>$28 US - This powerful BUNDLE:</div><br><br><table align="center" border="1"><tr><td><div align="center" class=tab><a class=tab href="http://javascripts.vbarsan.com/">Vertical SCROLLER with Recall v6.0 +<br>Multiple Message Belt CONVEYER v6.0 +<br>Multiple Message TICKER v4.0</a></div></td></tr></table>
<br><br><div align="center" class=tab><font color="red">They go on WINDOWS and LINUX: <br><br>ie4+, opera7+, ns4+, ns6+, Mozilla (Firefox ...) - on MAC OS X:Safari</font></div>
<br><br><div align="center" class=tabb>-------------------------------------
<br><br>Squeeze your Browser's Height above this message, then
<br>Click 'Refresh/Reload' - it pauses with mouse over!
<br><br>===========================================</div>
<br>
<!-- STEP IV: The script below goes right before the closing </BODY> tag-->

</td></tr></table></layer><script language="JavaScript">if(document.getElementById||document.all)document.writeln('</div>');if(document.layers)document.write('</td></tr></table>');</script>
<hr>
<form><input type=button value="Start" onclick="startpage()"></form>

Times Viewed: 5

Leave a Reply

Your email address will not be published. Required fields are marked *