Results 1 to 3 of 3

Thread: Disable modal pop-up for 10-minutes

  1. #1
    Join Date
    Jan 2015
    Posts
    10
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default Disable modal pop-up for 10-minutes

    Hi,

    In my index.html, I have it load a modal on page load via:

    Code:
    <body onLoad="$('#contact').modal('show');">
    The modal has a message of the day for our corporation. You can see it here: http://mmilescorp.com/

    The issue I'm having is every time the user clicks on a button-link and comes back to the homepage, the modal popup pops back up. I see jscript has different timer functions, but I have no idea how I can make it so the modal only pops up once per user session. I don't think html/css has anything for this, and it seems more logical to code this in jscript directly onto the html page instead of making a new php page to load in. So any ideas on how to go about doing this?

  2. #2
    Join Date
    Aug 2009
    Location
    utf-8
    Posts
    205
    Thanks
    4
    Thanked 7 Times in 7 Posts

    Default

    Take a look at this. You can customize it so the pop up box only appears once per session. Also this would be in JavaScript (aka jscript)
    An inline div is a freak of the web and should be beaten until it becomes a span

  3. The Following User Says Thank You to FrickenTrevor For This Useful Post:

    taem (01-25-2015)

  4. #3
    Join Date
    Jan 2015
    Posts
    10
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    Awesome! It worked perfectly with very little tweaking! Great script; thank you.

Similar Threads

  1. reduce the time on a clock by 5 minutes
    By Jay Dog in forum Flash
    Replies: 10
    Last Post: 12-07-2013, 10:48 AM
  2. Replies: 7
    Last Post: 12-11-2010, 06:16 PM
  3. DHTML Modal: Remove/Disable Title Bar
    By alexpalmbay in forum JavaScript
    Replies: 1
    Last Post: 09-29-2009, 02:20 PM
  4. x Minutes/Hours/Days Ago
    By onestopplay in forum PHP
    Replies: 2
    Last Post: 08-09-2009, 10:06 PM
  5. Holds breath for 4 minutes
    By Jack in forum The lounge
    Replies: 7
    Last Post: 06-06-2007, 02:43 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
  •