Hacker News new | past | comments | ask | show | jobs | submit login

Great minds and all. If you replace the html file in the screensaver bundle you can use yours (or mine) instead of the flash one.



Instead of:

  window.setInterval(frame, 1000);
Do:

  window.setTimeout('window.setInterval(frame, 1000)', 999-(new Date()).getMilliseconds());
That way the seconds will be properly synchronized.


Instead of a string containing code, you should use an anonymous function.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: