Click to See Complete Forum and Search --> : delayed link
rhsunderground
12-02-2003, 01:53 PM
does anybody have a script that will load a page X seconds after i click the link? i've looked but all i can find is the one that uses an image, which i don't want.
email me (dui_247@hotmail.com)
Pittimann
12-02-2003, 02:57 PM
Hi!
You can try something like this:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled</title>
<script type="text/javascript">
<!--
var waitHowLong=5;//put your seconds to wait here
function openLinkDelayed(){
delay=window.setTimeout("location.href='mypage.htm'", waitHowLong*1000);
}
//-->
</script>
</head>
<body>
<a href="#" onclick="openLinkDelayed()" title=" Goto mypage.htm ">click</a>
</body>
</html>
Cheers - Pit
rhsunderground
12-02-2003, 09:16 PM
spank you.:D