The site is http://rodallen.org..I am trying to delay shadowbox from opening for 8 seconds...any help is always appreciated...
This should do it <script type="text/javascript"> function showBox() { Shadowbox.init(); if ($.cookie('guest') != '1') { Shadowbox.open({content:'<iframe style="background-color:#ffffff;" src="http://abcomputered.com/popup/index.html" height="515" width="550" frameborder="no" scrollbars="0" scrolling="no"></iframe>',player:"html",height:513,width:550}); $.cookie('guest','1', {expires: '1',domain: 'rodallen.org'}); }; } $(document).ready(function(){ setTimeout("showBox()", 8000); // delay 8 sec $("#slider").easySlider({ auto: true, continuous: true, nextId: "slider1next", prevId: "slider1prev" }); $("#slider2").easySlider({ numeric: true }); }); </script> Code (markup):
The only problem is the cookie to have it display only once is not working. It pops up everytime the page is loaded.