Results 1 to 2 of 2

Thread: skip Intro page? !

  1. #1
    Join Date
    Dec 2017
    Location
    Tehran
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default skip Intro page? !

    Hi everyone!

    I'm designing a website that requires an introduction page for new visitors, but I'd like to give the option to always skip the intro page after you've seen it once. I've never used cookies though I'm sure its the only way to do this.
    Any ideas?

    The intro page itself is plain html. Its not a flash intro or anything.

    Thanks!
    Mahsa

  2. #2
    Join Date
    Mar 2010
    Location
    Florida
    Posts
    465
    Thanks
    8
    Thanked 47 Times in 45 Posts

    Default

    Yeah I think all you need is this (well for the quick way and no checks):
    Code:
    window.onload = function() {
      // Not played
      if ( localStorage.getItem('skipIntro') == null ) {
        //Play intro
        localStorage.setItem('skipIntro', true);
      } else {
       // Already Played
      }
    }
    -DW [Deadweight]
    Resolving your thread: First Post: => EDIT => Lower right: => GO ADVANCED => Top Advance Editor drop down: => PREFIX:Resolved

Similar Threads

  1. Replies: 1
    Last Post: 09-11-2011, 03:32 AM
  2. change skip page place
    By albgrea in forum Dynamic Drive scripts help
    Replies: 5
    Last Post: 01-29-2010, 11:48 AM
  3. Splash page skip intro
    By ira19 in forum Dynamic Drive scripts help
    Replies: 2
    Last Post: 07-23-2009, 01:04 PM
  4. Always skip Intro page?
    By TorQueMoD in forum Looking for such a script or service
    Replies: 2
    Last Post: 11-02-2008, 08:57 PM
  5. skip website intro...
    By remp in forum Looking for such a script or service
    Replies: 8
    Last Post: 08-23-2007, 12:21 AM

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
  •