hroberts89436
01-26-2009, 02:19 AM
I am very new to javascript programming, and I hope that I am placing this in the correct area. I came across a javascript that is an analog clock that follows the mouse around the page.
What I am trying to do is correct it, so that it meets the proper standards. One of the problems I have is this:
document.write('<div id="ieDate" style="position:absolute;top:0px;left:0;height:'+a+';width:'+a+';text-align:center">'+props2+D[i]+'</div>');
document.write('</div></div>');
I am being told that these 2 lines as well as other similar lines in the coding are incorrect. They don't seem to like the removal of </div> without screwing up the clock.
Can anyone tell me how to correct this. If you would like to see what it does both before and after this is where you can go:
Before: http://www.robertsfamilytree.org/Misc/Clock.htm
After: http://www.robertsfamilytree.org/Misc/Clock-1.html
If you would like the script to see the whole thing, it can be found here:
http://www.robertsfamilytree.org/Misc/clock.zip
Thanks for any help you can give me
Harold
What I am trying to do is correct it, so that it meets the proper standards. One of the problems I have is this:
document.write('<div id="ieDate" style="position:absolute;top:0px;left:0;height:'+a+';width:'+a+';text-align:center">'+props2+D[i]+'</div>');
document.write('</div></div>');
I am being told that these 2 lines as well as other similar lines in the coding are incorrect. They don't seem to like the removal of </div> without screwing up the clock.
Can anyone tell me how to correct this. If you would like to see what it does both before and after this is where you can go:
Before: http://www.robertsfamilytree.org/Misc/Clock.htm
After: http://www.robertsfamilytree.org/Misc/Clock-1.html
If you would like the script to see the whole thing, it can be found here:
http://www.robertsfamilytree.org/Misc/clock.zip
Thanks for any help you can give me
Harold