erfg1
Joined: 04 Mar 2004 Posts: 36 Location: Florida
|
Posted: Fri Mar 12, 2004 1:58 pm Post subject: |
|
|
PART 1: (insert into HEAD tag)
| Code: | <SCRIPT LANGUAGE="javascript">
loadtime="0"
loading=true
s="s"
{refresh()}
function refresh()
{setTimeout("count()",250)}
function count()
{if (loading)
{loadtime=loadtime+++0.25;refresh()}}
function done()
{if (loadtime==1)
{s=""}
alert("It took "+loadtime+" second"+s+" to load the page");loading=false}
</script> |
PART 2: (insert into BODY tag)
| Code: |
<body onLoad="done()", followed by all other tags such as bgcolor, etc..
|
If you want it in PHP...
http://www.evilwalrus.com/viewcode.php?codeEx=355 _________________
 |
|