title: popup once in a day using jquery or php
body: <p>How to show a FB likebox once in a day using jquery or php.And i have done with pop up and i want to save session or cookie in a browser.So that i can make the things working.Currently i am using jquery and php. </p>
  
  <pre><code>&lt;body onload="openOffersDialog();"&gt;
  &lt;script type="text/javascript" src="popup.js"&gt;&lt;/script&gt;
  &lt;?php 
      if(!isset($_SESSION['jquery_popup']))  
      { 
      $_SESSION['jquery_popup'] = "sessionexists";
  
          echo $_SESSION['jquery_popup'];
  
  
      ?&gt;
  &lt;script type="text/javascript"&gt;
  function openOffersDialog() {
      $('#overlay').fadeIn('fast', function() {
          $('#boxpopup').css('display','block');
          $('#boxpopup').animate({'left':'30%'},500);
      });
  }
  
  
  function closeOffersDialog(prospectElementID) {
      $(function($) {
          $(document).ready(function() {
              $('#' + prospectElementID).css('position','absolute');
              $('#' + prospectElementID).animate({'left':'-100%'}, 500, function() {
                  $('#' + prospectElementID).css('position','fixed');
                  $('#' + prospectElementID).css('left','100%');
                  $('#overlay').fadeOut('fast');
              });
          });
      });
  }
  &lt;/script&gt;
  
  &lt;div id="overlay" class="overlay"&gt;&lt;/div&gt;
  &lt;!--&lt;a onclick="openOffersDialog();"&gt;Click Here To See The PopUp&lt;/a&gt;--&gt;
  &lt;div id="boxpopup" class="box"&gt;
  
      &lt;a onclick="closeOffersDialog('boxpopup');" class="boxclose"&gt;&lt;/a&gt;
      &lt;div id="content"&gt;
  
      &lt;h2&gt;Like us on Facebook&lt;/h2&gt;
      &lt;iframe src="http://www.facebook.com/plugins/likebox.php?href=http%3A%2F%2Fwww.facebook.com%2Fkornerseat&amp;amp;width&amp;amp;height=290&amp;amp;colorscheme=light&amp;amp;show_faces=true&amp;amp;header=true&amp;amp;stream=false&amp;amp;show_border=true&amp;amp;appId=474663095902746" scrolling="no" frameborder="0" style="border:none; overflow:hidden; height:290px;" allowTransparency="true"&gt;&lt;/iframe&gt;
  
      &lt;/div&gt;
  &lt;/div&gt;
  &lt;?php
      }
  ?&gt;
  </code></pre>