View Single Post
Join Date: Aug 2006
Posts: 315
Reputation: Luckychap is on a distinguished road 
Solved Threads: 42
Luckychap's Avatar
Luckychap Luckychap is online now Online
Posting Whiz

Re: Trying to change this JavaScript code, to work without External File..!! How?? plz

 
0
  #7
Dec 2nd, 2008
I got it should be:

  1. window.onload = rotate;

Not

  1. window.onload = rotate();

the later actually calls rotate() before the page is rendered. But former assign the rotate() function to window.onload event.
When you think you have done a lot, then be ready for YOUR downfall.
Reply With Quote