I have a javascript popup which I only want to appear once/browser session

Discussion in 'HTML & Website Design' started by se_p800, Apr 18, 2008.

  1. #1
    Ok so I added a JavaScript popup on my forum, which can be seen here:

    http://customizepsp.co.uk/forums/index.php?styleid=1

    Now the thing is, this popup appears everytime a page on my forum is viewed. Please could someone help me to get it so it only appears once on the users browser session? Here is the code:

    Along with the javascript code which can be found on the site I got this from:
    http://www.wildbit.com/labs/modalbox/

    Thanks
     
    se_p800, Apr 18, 2008 IP
  2. se_p800

    se_p800 Well-Known Member

    Messages:
    609
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    128
    Digital Goods:
    2
    #2
    Sorry for double post but I really need help :( I re-phrased it to sound more simple

     
    se_p800, Apr 20, 2008 IP
  3. mooseweb

    mooseweb Banned

    Messages:
    1,154
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Load the pop-up on only 1 page and in a separate CSS file? That would fix it, at least I think it would.

    Sorta of confused why you don't manually type the CSS code into one HTML file and load the javascript in that file only, unless your using frames.
    If you are using Frames you won't be able to only put this on one page.
     
    mooseweb, Apr 20, 2008 IP
  4. se_p800

    se_p800 Well-Known Member

    Messages:
    609
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    128
    Digital Goods:
    2
    #4
    Hi thanks for replying. Well I know its possible because its shown on this website. And I am VERY new to html and CSS coding and all that. I have only gotten as far as I have done through hours of trial and error and some instructions.

    Im not using frames, and could you please explain how I could "type the CSS code into 1 html file and load the javascript in that file only" as Im not sure how I would go about that.

    Thanks

    EDIT:
    But wouldnt it still popup everytime that page is viewed?
     
    se_p800, Apr 20, 2008 IP