Quantcast
Channel: WordPress.org Forums » All Posts
Viewing all articles
Browse latest Browse all 134630

Woodlawn on "splash page to show only once"

$
0
0

Hi I made a 4 sec flash splash page (I know...) for a specialty webstie and I only want it to show the first time the website is visited (one time per day preferably). I have a custom page template with no header,I cannot get this to work and any help would be greatly appreciated
the site is http://www.woodlawnthatre.org/intothewoods
my code for my page_splash.php is

<?php /* Template name: splash */ ?>
if (!isset($_COOKIE['visisted'])) {
    setcookie('visited', true, time() + 3600 * 24);
}
<object id="flashcontent"
        classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
        width="100%"
        height="100%">
  <param name="movie" value="http://www.woodlawntheatre.com/intothewoods/itwwebopening2.swf"/>
  <!--[if !IE]>-->
  <object type="application/x-shockwave-flash"
          data="http://www.woodlawntheatre.com/intothewoods/itwwebopening2.swf"
          width="100%"
          height="100%">
  <!--<![endif]-->
    <p>
      Fallback or 'alternate' content goes here.
      This content will only be visible if the SWF fails to load.
    </p>
  <!--[if !IE]>-->
  </object>
  <!--<![endif]-->
</object>
<script type="text/javascript">
var url ='http://www.woodlawntheatre.com/intothewoods/homepage';
var delay = 4.3;
var d = delay * 1000;window.setTimeout ('parent.location.replace(url)', d);
</script>

Thank you!!


Viewing all articles
Browse latest Browse all 134630

Trending Articles