PublicTags
From Facebook Developer Wiki
[edit] fc:countdown
Display a JavaScript countdown timer.
[edit] 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.
[edit] 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>
