Thread
:
Trying to change this JavaScript code, to work without External File..!! How?? plz
View Single Post
•
•
Join Date: Aug 2006
Posts: 315
Reputation:
Solved Threads: 42
Luckychap
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:
Help with Code Tags
javascript Syntax
(
Toggle Plain Text
)
window.
onload
= rotate;
window.onload = rotate;
Not
Help with Code Tags
javascript Syntax
(
Toggle Plain Text
)
window.
onload
= rotate
(
)
;
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.
Luckychap
View Public Profile
Find all posts by Luckychap