Reply
On page load, if cookie set then hide div?
Old 06-14-2009, 09:50 AM On page load, if cookie set then hide div?
Novice Talker

Posts: 9
Trades: 0
Hi there,

I'm not very good with ASP so I need you help for page on my website...

Basically what I need to do is to make a DIV shown only first time someone visits page, and then when he/she revisit it I want that same DIV hidden, and I want it hidden for next 24 hours... so in that way DIV would be shown only once a day, and only on first page load.

So to make that happen I need to do fallowing, and I would need your help for that: I need a script that on a page load checks if cookie (which is 24h cookie) is set, if it is then it should hide that DIV, if it is not set then it should set it, so that DIV would be hidden on next page load...

Can someone help me with this, cause I am getting mad trying to do this whole day :/

Thanks people!
Error404 is offline
Reply With Quote
View Public Profile
 
 
When You Register, These Ads Go Away!
Old 06-15-2009, 12:44 PM Re: On page load, if cookie set then hide div?
Novice Talker

Posts: 14
Name: workhomeforum
Trades: 0
Is it ASP Classic or ASP.NET project?
workhomeforum is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to On page load, if cookie set then hide div?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 



Page generated in 0.10446 seconds with 13 queries