المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Auto Reload



bahattab
04-03-2008, 09:14 AM
Auto Reload

Unearthed from the depths of Nic's Javascript Page, the Auto-reload script is back with a new design.

This script reloads your browser to another page. It is usefull if you want to have an introduction page before you go to your maing page. Variations are also used in many other scripts such as the Javascipt slideshow. The color coding at the bottom is usefull if you do not know much about Javascript.
<script language="Javascript">
<!--
// please keep these lines on when you copy the source
// made by: Nicolas - http://www.javascript-page.com

var URL = "auto-reload2.html"
var speed = 5000


function reload() {
location = URL
}

setTimeout("reload()", speed);
//-->
</script> Color coding...


This is the page you want your viewer to be redirected to.
This is how long you want the browser to wait until it reloads the page. It is in 1/1000 seconds, thus 5000 is 5 seconds.


http://www.javascript-page.com/jsnow.gif (http://www.javascript-page.com/index.html)



http://www.javascript-page.com/auto-reload2.html