The trouble is that the div has not yet been added to the page when your are trying to access it in your script.
A couple of possibilities are to move the script to later in the page (after the div tag) or put it in a function & execute it when the body onload event fires.
Cheers,
Chris
|