View Full Version : Help with script

01-26-2009, 03: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>');

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:

Thanks for any help you can give me


Philip M
01-26-2009, 08:21 AM
What I am trying to do is correct it, so that it meets the proper standards.

What are the "proper standards? And what leads you to believe that the information you have received is correct?

If it ain't broke, don't try to fix it, especially as you accept that do not have the necessary qualifications.

Did you not notice the instruction:-

//Alter nothing below! Alignments will be lost!

“There are two kinds of failures: those who thought and never did, and those who did and never thought.”
Dr. Laurence J. Peter quotes (American "hierarchiologist", Educator and Writer, 1919-1990)