Active TopicsActive Topics  Display List of Forum MembersMemberlist  Search The ForumSearch  HelpHelp
  RegisterRegister  LoginLogin
PowerHome Macros, Scripts, and Formulas Repository
 PowerHome Messageboard : PowerHome Macros, Scripts, and Formulas Repository
Subject Topic: Days Until Event Web Code Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
TonyNo
Moderator Group
Moderator Group
Avatar

Joined: December 05 2001
Location: United States
Online Status: Offline
Posts: 2889
Posted: December 20 2006 at 20:45 | IP Logged Quote TonyNo

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
Back to Top View TonyNo's Profile Search for other posts by TonyNo Visit TonyNo's Homepage
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum