View Single Post
Old 04-22-2010, 03:47 AM  
quantum-x
Confirmed User
 
quantum-x's Avatar
 
Join Date: Feb 2002
Location: ICQ: 251425 Fr/Au/Ca
Posts: 6,863
Code:
<? if (!isset($_COOKIE['splash'])) { 
    setcookie('splash','1',time()+90*86400); ?>
    <div id="splash">Warning</div>
<? } ?>
That'll do the trick.
Essentially, you check for a cookie. If there's no cookie, then you set one, and then display the div / whatever you want.
quantum-x is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote