Results 1 to 3 of 3

Thread: Re-positioning Liveclock

  1. #1
    Join Date
    Aug 2007
    Posts
    21
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Re-positioning Liveclock

    1) Script Title: Liveclock.js

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex6/clock2.htm

    3) Describe problem: I am new to JS so forgive my ignorance.
    I want to position liveclock using CSS but even though I surround the display part <body onLoad="show_clock()"> within a div it doesn't seem able to change its position on the page. What am I doing wrong?
    Many thanks for any help.
    Peter

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    To get the script to show up where you want, you would move the script itself (everything including the <script> tags of the script) to the position within your page source code wise where you want it to appear. In other words, the code of Step 1.

  3. #3
    Join Date
    Aug 2007
    Posts
    21
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    Thanks for the advice. I thought that the first part HAD to be placed in the <head> section. i tried moving the <body> part but of course it did not work.
    Is this fix true will all .js scripts? ie the <head> part need not necessarily be place in the <head> section>.
    We live and we learn!!!
    Best regards,
    Peter

Bookmarks

Posting Permissions

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