View Full Version : Re-positioning Liveclock

09-08-2007, 01:23 PM
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.

09-09-2007, 08:02 AM
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.

09-10-2007, 08:29 AM
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,