Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

delaying GoTo URL script 1

Status
Not open for further replies.

javierdl

IS-IT--Management
Apr 21, 2002
243
CA
Where exactly am I supposed to enter number values (secs) to specify the duration of the delay before the page switches to another page?

This is the coding I have (placed by a Dreamweaver behaviour):

Within the HEAD tag:
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_goToURL() { //v3.0
var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
for (i=10; i<(args.length-1); i+=2) eval(args+".location='"+args[i+1]+"'");
}
//-->
</script>

Within the BODY tag:
<body background="images/various/sunnyland_bg06a.gif"
style="background-color: rgb(255, 255, 255)" onLoad="MM_goToURL('parent',' document.MM_returnValue">

thanks,

Javier DL

 
Why not use a meta tag instead?
Code:
<META HTTP-EQUIV="Refresh" CONTENT="timeHereInSeconds;URL=http://www.yourURL.htm">
This way if the user has javascript turned off it will still work.

Glen
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top