Inicio Blog

Show a div depending on a cookie set or unset. Reset cookie every 24 hours.

0

To make a DIV shown only first time someone visits page, and then when he/she revisit it, that same DIV will be hidden for next 24 hours… so in that way DIV would be shown only once a day, and only on first page load.

Here is where you get the functions for handling cookies:
http://www.quirksmode.org/js/cookies.html

Solution 1 (seen at: https://www.sitepoint.com/community/t/on-page-load-if-cookie-set-then-hide-div/5149/2):

Now, the div to be shown should have a class name set to hide by default.

With the above cookie handling functions, you can use them like this:
Place the following script just before the tag.

Android set a boolean to true / false if a checkbox is checked / unchecked

0

Android Set checkbox checked / unchecked if a boolean is true / false

0

Android Listener For Keys.

0

Android Get Android Version Code

0

Android Get Android Version Name

0

Android Convert px to dip

0

Android Convert dip to px

0

Android Get window width and height

0

Android Set button visibility dependent of boolean status

0