PublicTags

From Facebook Developer Wiki

Revision as of 14:20, 5 April 2009 by Brad Dwyer (Talk | contribs)
(diff) ←Older revision | Current revision (diff) | Newer revision→ (diff)
Jump to: navigation, search

fc:countdown

Display a JavaScript countdown timer.

Variables

  • to
    • [required] The Unix epoch time to countdown towards (or if less than 10 years after the epoch, the number of seconds into the future to count down towards)
  • callback
    • [optional] A JavaScript function to call when the time is reached.

Code

<script type="text/javascript"> function myCallback() { document.getElementById('timer').setStyle('color','#CC0000'); } </script> <div id="timer"> <fb:fbml xmlns:fc="http://external.facebook.com/apps/publictags"> <fc:countdown to="10" callback="myCallback" /> </fb:fbml> </div>
reference