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 sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Auto page switch

Status
Not open for further replies.

tomothy

Technical User
Oct 30, 2001
40
GB
Does anyone know if ASP can be used to make a website flick through a number of pages automaticaly? i.e after 15 seconds the website page changes. If so how do I go about doing it? If ASP won't do it what about other methods like JavaScript? Any help you can give would be cool

Thank you

Andrew
 
Javascript wouild probably be the way to go with this. I would do something like:

<html>
<head>
<script language=&quot;JavaScript&quot;>
<!--
function nextPage(){
var nextAddr = &quot;window.location='mynewpage.asp';&quot;;
setTimeout(nextAddr,1500);
}
//-->
</script>
</head>
<body onLoad=&quot;nextPage();&quot;>
</body>
</html>


This was on the fly so might not be 100%.
Now, if you wanted ASP to dynamically change the next page all you would need to do is have it change the name in the javascript function.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top