I am looking for a way to have a thickbox or lightbox open on page load once per session where a person agrees to enter at own risk. and if they want to leave i direct them to google.
Anyone know of how i can do this?
Basically just a div that loads into the box if possible?
I have this but it shows every page load.
and this is in my headCode:<!-- Duly served from memcache (0.101513147354) --><div class="TB_overlayBG" id="TB_overlay"></div><div style="margin-left: -195px; width: 390px; margin-top: -200px; display: block;" id="TB_window"><div id="TB_ajaxContent" class="TB_modal" style="width: 360px; height: 355px;"><style type="text/css" media="screen"> .exit { font-weight:bold; font-size: 28px; } .exit a { color: #666; margin-right: 8px; margin-left: 8px; } .enter { font-weight:bold; font-size: 28px; } .enter a { color: #009900; font-weight:bolder; } .help_title_disc { font-size:30px; color: #3F8EFF; font-weight: bold; } .enterexit { font-size: 18px; text-align:left; margin-top:20px; margin-right:0px; } </style> <div style="padding: 6px;"> <div class="help_title_disc" style="line-height: 100%; margin-bottom: 20px;"> This website contains explicit adult material. </div> <div style="font-size: 14px; line-height: 120%;"> By entering this site I am agreeing with the following statements:<br> <br> - I am familiar with all local laws in my area that pertain to my right to view adult-oriented materials. <br> - I am at least 18 years of age, and may view adult materials without violating the legal standards of my community. </div> <div class="enterexit"> <span class="enter"><a style="color: rgb(0, 153, 0);" href="#" onclick="$('#disc_fla').css('display','inline');tb_remove();document.cookie = 'disclaimer=true; expires=Thu, 2 Aug 2010 20:00:00 UTC; path=/';return false;" title="I agree">Enter</a></span> <span class="exit"><a style="color: rgb(204, 204, 204);" href="http://www.wikipedia.org/" id="leave">Leave</a></span> <p style="font-size: 14px;"> Cookies must be <a target="_blank" href="http://www.google.com/support/accounts/bin/answer.py?answer=61416&hl=en&ctx=ch_ServiceLoginAuth&p=mail" title="click here if you don't know how to enable cookies">enabled</a> </p> </div></div> </div>
Basically i pulled that out of some source code of a site that has what i want.Code:<script type="text/javascript">var _sf_startpt=(new Date()).getTime()</script>
its an adult site so i dont want to put it on here. Unless i can link it???
here is a link to my site so you can see what im trying to do
http://thesocialcell.com
Any help is much appreciated


Reply With Quote

Bookmarks