<div class="ads">Some text</div>
Want to:
- show this block once a day per visitor (no registration) (hidden by default, cookie check, what should be used?)
- if block already was shown today, then don’t show it today anymore
- if block was shown yeasterday and one day is past, then show it again (how to check properly that the one day is past?)
How can I do this?
Site-examples with this feature:
I’ve created example code that implement the requirement using cookie:
It depend on jQuery and Cookie plugin.
Tested it by changing system date.