Jump to content

Timed Images, need php help


doug

Recommended Posts

I have this snippet:

 

// New Year's Eve

else if ($today == "December 31, $year"){

$logo_strip = str_replace('.swf', '', $logo_newyearseve);

if (file_exists("$logo_path/$logo_newyearseve")) {

echo "<script type='text/javascript'>

AC_FL_RunContent( 'type','application/x-shockwave-flash','width','$fl_width','height','$fl_height','title','$fl_title','movie','$logo_url/$logo_strip','quality','high' );

</script>

<noscript><object type='application/x-shockwave-flash' data='$logo_url/$logo_newyearseve' width='$fl_width' height='$fl_height' title='$fl_title'>

<param name='movie' value='$logo_url/$logo_newyearseve' />

<param name='quality' value='high' />

Logo

</object></noscript>";

} else {

echo "$flashdefault";

}

}

// Default Logo

else {

echo "$flashdefault";

}

 

 

 

I would need it to work within mutiple dates, example:

else if ($today == "December 31, $year")

I need something like:

else if ($today > "December 25 < December 26, $year")

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated