POPUP lightbox onload
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 15 of 15

Thread: POPUP lightbox onload

Threaded View

  1. #1

    POPUP lightbox onload

    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.

    Code:
    
    
    
    <!-- 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&#37;; 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&amp;hl=en&amp;ctx=ch_ServiceLoginAuth&amp;p=mail" title="click here if you don't know how to enable cookies">enabled</a>
    
    </p>
    
    </div></div>
    
    
    
    
    </div>
    and this is in my head
    Code:
    <script type="text/javascript">var _sf_startpt=(new Date()).getTime()</script>
    Basically i pulled that out of some source code of a site that has what i want.
    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
    Last edited by davidjmorin; June 14th, 2010 at 04:33 PM.
    New to PHP and MySql. Started looking at scripts about a week ago. So far have very little understanding of it. So please be easy with me if I ask a stupid question.

    www.ethans-space.com

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center