Replace a DIV with another using effect and set cookie
- by Alex
Hi. I've got some complicated requirements and wondered if there's a way to accomplish this via jQuery:
User comes to a web page for the first time today and we show DIV_1.
After 30 seconds, we dissolve DIV_1 to DIV_2.
We set a cookie on the user's machine that expires when s/he returns tomorrow.
If the same user returns today, we only show DIV_2.
Tomorrow, we repeat the process: The user will see DIV_1 and then it dissolves to DIV_2.
How do you accomplish this via jQuery? Thank you.