Results 1 to 2 of 2

Thread: Interstitial twice a day?

  1. #1
    Join Date
    Nov 2010
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Interstitial twice a day?

    1) Script Title: Interstitial Content Box (v1.1)

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...terstitial.htm

    3) Describe problem:

    Hello! Does anyone have any ideas on how to get the interstitial to display just twice a day?

    I assume this would take place on line 9:

    displayfrequency: ["chance", "1"],

    Thanks!

  2. #2
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    The number placed where you highlighted is the denominator of the fraction of how many times it would happen. (if the number was 1, it have a 1/1 chance = 100%, if it was 10, it would have 1/10 chance, or 10% of the time). To make it only happen twice a day - you would need some kind of database. A few questions - is your site usually viewed many times a day? If there was say a 10% of it happening, and not enough visitors visited, it might not even happen once a day. Or - does it not matter, but the maximum is 2?
    Jeremy | jfein.net

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
  •