I want add script with cookie, which will control displaying of one advertisement on my website.
Now is this ad displaying every time what the page is loaded.
Script must have several variables:
- time how often show advertisement ( for example every 24hour or later from last visit )
- how many times per first variable show advertisement ( for example twice per 24hour )
- variable to set and show countdown time, when the advertisement close button or close text will be visible.
Until this button will not be visible the only method to close advertisement will be clicking on the advertisement.
- last variable, turn on or off showing countdown time with close button from previous variable.
If this variable will be set to don't show countdown the only method to close advertisement will be clicking on the advertisement.
The countdown with close button will never be visible.
Script must be working in every browser.