SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Hybrid View

  1. #1
    SitePoint Member
    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

  2. #2
    SitePoint Member
    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.

  3. #3
    pg for mild peril cow's Avatar
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •