Hey guys...
I am not too knowledged in js and I code in it occasionally, so please excuse the question if it is steight forward...
Now...
Been working on an analogue clock script, customised it exactly to my needs, until I got to the point of calling it in my body...
I am trying to enter the clock inside a div but when I call it by document.getEle mentById nothing happens. Console on firefox says that it returns null. Initially I thought the error was inside the script, so to test it I called the clock by document.write( ). But then it worked fine! It is not what I need it but it shows that the script works (right?)...
Please give me your advise on this as well as any other comments on the script...
I have combined js, styles and html in one file here:
http://homepage.mac.co m/p_koumoundouros/.public/analogClock.htm l
Thank you in advance!
_______________ _______________ _______
I am not too knowledged in js and I code in it occasionally, so please excuse the question if it is steight forward...
Now...
Been working on an analogue clock script, customised it exactly to my needs, until I got to the point of calling it in my body...
I am trying to enter the clock inside a div but when I call it by document.getEle mentById nothing happens. Console on firefox says that it returns null. Initially I thought the error was inside the script, so to test it I called the clock by document.write( ). But then it worked fine! It is not what I need it but it shows that the script works (right?)...
Please give me your advise on this as well as any other comments on the script...
I have combined js, styles and html in one file here:
http://homepage.mac.co m/p_koumoundouros/.public/analogClock.htm l
Thank you in advance!
_______________ _______________ _______
Comment