Webmaster Home
Glossary
WebStarter
Create your site
Illustrate your site
Publishing your site
Site submission
Tips
Technical Workshops
DHTML
HTML
JavaScript
PHP/MySQL
Search Engine Optimization
Site's Administration
Style sheets
Wap/WML
Graphics Workshops
Design
Digital photography
Paint Shop Pro
Photoshop
Multimedia Workshops
Flash
Music and sounds
Video
Scripts
Quick Reference
HTML 4.0
PHP 4.0
Domain names
Style sheets
Colours
Special characters
Webmaster
you are here:
Lycos Home
»
Lycos Webmaster
»
Tips
»
A page that automatically...
Tips
[
All Tips
]
A page that automatically scrolls from top to bottom
To automatically scroll the content of your page from top to bottom, place the following script between the tags
<BODY>
and
</BODY>
in your HTML code:
<script LANGUAGE="JavaScript">
<!--
var position = 0;
function scroller() {
if (position != 320) {
position++;
scroll(0,position);
clearTimeout(timer);
var timer = setTimeout("scroller()",3); timer;
}
else
{
location.replace("#");
}
}
// -->
</script>
<body onload="scroller()">
Place your page's content here (text, pictures...)
Long pages.
The content of your page must fill more than one screen in order to see it scroll.
Discover all Webmaster tips.
Send this tip to a friend
Download PDF format