PDA

View Full Version : Interstitial twice a day?



wearepapertiger
11-08-2010, 06:25 PM
1) Script Title: Interstitial Content Box (v1.1)

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/interstitial.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!

Nile
11-09-2010, 01:22 AM
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?