Originally Posted by
Luckychap
I got it should be:
Not
window.onload = rotate();
the later actually calls rotate() before the page is rendered. But former assign the rotate() function to window.onload event.
no it is ok, the script is working now when I changed what u said about the (if statement)
but please, can you explain please why in the the use of (document.banner.src=...)!!!!
I really didn't got why he used it!!, I just copied it and it works, but I don't know why he used it!
I mean I know that I can write (document.write() )
but this is my first time seeing ( document.banner.src)!!!
what I want is to know, why he used (.banner)!!?
thanks for the further help