TonyNo Moderator Group
Joined: December 05 2001 Location: United States
Online Status: Offline Posts: 2889
|
Posted: December 20 2006 at 20:45 | IP Logged
|
|
|
Drop this into a web page and be reminded of an upcoming event with a countdown.
Code:
<!-- Set LOCAL1 to date desired and LOCAL2 to date description-->
<% ph_rtne( ph_setvar_s( 1, 1, "12/24") + ph_setvar_s( 1, 2, "Christmas"))%>
<% ph_rtne( ph_setvar_a( 1, 3, daysafter( date( today()), date( "[LOCAL1]" + "/" + year( date( today() )) ) ))) %>
<% case( [LOCAL3] when is<0 then "" when 0 then "It's " + "[LOCAL2]" + "!" else [LOCAL3] + " days until " + "[LOCAL2]") %> |
|
|
Edited by TonyNo - December 20 2006 at 20:51
|