Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #18021

    Hello,

    A week ago I asked this questions…

    Is there a way that you know of to create a front page to the site. So the user types in the URL and a splash page pops up for 3 seconds then dissolves away and you’re left with the sites normal home page. I have searched everywhere and can’t figure out how to do this. Like this site… http://www.saxony.com.au/

    and got this response…

    A quick google search turned up this: http://www.codingforums.com/showthread.php?t=176058 . Its a very simple script but if you aren’t comfortable setting up and creating your own html/css and adding the js it should only take a freelance developer an hour (or less).

    I couldn’t figure it out so I got a computer programmer to help me. He created the code and the image and we cannot figure out where to put it! It is becoming seriously frustrating as all we want is black white splash page with the image on it to then disolve after 4/5 seconds and then for the home page to appear on it.

    Where do I add the HTML code? In the backend? the editor section? do I edit a .php file or create a new one?

    If you could help me with this it would be mush appreciated!

    Thank you,

    Amelia

    This is the code…

    <html>

    <head>

    <title> Splash Page!! </title>

    <!–

    internal style sheet below, you can make it an external one if you like

    <link rel=”stylesheet” type=”text/css” href=”style.css”/>

    –>

    <style type=”text/css”>

    body {background-color: #FFFFFF}

    </style>

    <script type=”text/javascript”>

    window.onload=timeout;

    function timeout ()

    {

    window.setTimeout(“redirect()”, 4000)

    }

    function redirect()

    {

    window.location=”home.html” // the page you want the user to go to after the splash page times out.

    return

    }

    </script>

    <body onload=”timeout()”>

    <body>

    </body>

    <!–

    if you want a home button to skip the splash page use this.

    <form>

    <input type=”button” value=”Home Page” onClick=”redirect()”>

    </form>

    </body>

    –>

    </html>

    #97935

    Tbh I think this solution will not work with the theme very well because it uses a redirection function to display the landing page. The only solution I can think of is to use cookies to decide if a redirection is required or not but I leave this up to your programmer. I’d add the code to header.php and based on the cookie result/value you can decide if you want to load the wp page or the html landing page…

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘CHOICES – Splash Page’ is closed to new replies.