/ Published in: JavaScript
http://developer.apple.com/jp/documentation/AppleApplications/Conceptual/DashboardTutorial/index.html?http://developer.apple.com/jp/documentation/AppleApplications/Conceptual/DashboardTutorial/Events/chapter6section_3.html
Expand |
Embed | Plain Text
if (window.widget) { widget.onshow = onshow; widget.onhide = onhide; } function onshow () { if (timer == null) { updateTime(); timer = setInterval("updateTime();", 1000); } } function onhide () { if (timer != null) { clearInterval(timer); timer = null; } }
You need to login to post a comment.
