Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Jan 2009
    Thanked 0 Times in 0 Posts

    Help with script

    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

    Last edited by hroberts89436; 01-26-2009 at 03:25 AM. Reason: add to it

  • #2
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    London, England
    Thanked 2,573 Times in 2,551 Posts
    Quote Originally Posted by hroberts89436 View Post
    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)
    Last edited by Philip M; 01-26-2009 at 09:01 AM.


    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts