...

View Full Version : Help with script



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

Philip M
01-26-2009, 07: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)



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum