-
Using JavaScript To Auto Scroll Text
Using JavaScript To Auto Scroll Text.
There may come a time when you would like to have some text on a page that is simply just to big to fit on a single page. Of course, you could always create a new document for this text but, what if you could make the text actually scroll through the surfers browser?The following JavaScript will do just that.
Place the following section of JavaScript coding between your <head> and </head> tags:
<SCRIPT LANGUAGE=”JavaScript”>
<!–function scrollit() {
for (I=1; I<=1200; I++) window.scroll(1,I);
}// –>
</SCRIPT>Along with the following JavaScript coding someone in the Body of your page:
<FORM>
<INPUT type=button value=”scroll” onClick=”scrollit()”>
</FORM>Have a play around with the numbers in the first section of the JavaScript to speed up and slow down the rate of scrolling until you find a speed that is easy on the eye.
Article written by Lee
Leave a Reply
Related Posts
Recent Posts
- Why Cant I Get Indexed By The Search Engines?
- Whats A Twink
- What’s In A Niche?
- What’s A CHMOD?
- What On Earth Is CGI?
- What Is The Golden Ratio?
- What Happens Your Current Processor Bails?
- SMS Marketing To MMS Marketing – WAP Billing Solutions
- AVS Changes – Is The Proverbial Sky Falling?
- Utilizing All The Content You Use On TGP Galleries!