SitePoint Sponsor |
|
User Tag List
Results 1 to 3 of 3
Thread: Home page like Splash Screen
-
Mar 24, 2000, 03:48 #1
- Join Date
- Mar 2000
- Posts
- 13
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
I want to have my home page like a splash screen which displays the graphic and then redirects the page to the main content page. Can somebody tell me how I can do this?
Thanx
Sonu
-
Mar 24, 2000, 04:25 #2
- Join Date
- Oct 1999
- Location
- Canyon,TX,USA
- Posts
- 16
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
That one is easy. Here's the code:
<script language="JavaScript">
var dasite = "mypage.html";
function splash(){
window.location.replace(dasite)
}
</script>
To use it change the variable "dasite" to the url of the page you want to load after your aplash screen. Then inside the <body> tag add
"onLoad="setTimeout('splash()',5000)". Your slash screen will load, then 5 seconds after it loads, your other page will load.
-
Mar 24, 2000, 09:46 #3
- Join Date
- Mar 2000
- Location
- nevada, usa
- Posts
- 636
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
you could also do it through a <meta> tag. place this tag in the <head> of your document:
<meta http-equiv="Refresh" content="3; url=target_page.html">
this tag will redirect the user to target_page.html in 3 seconds.
Bookmarks