View Full Version : Live Date script problem
craigt56
03-01-2011, 08:00 PM
http://www.dynamicdrive.com/dynamicindex6/clock3.htm need to run this from css.
Beverleyh
03-02-2011, 08:14 AM
Sorry but I dont know what you mean. Please try to explain more thoroughly.
My initial guesses;
1 - that you want to change the colour of the clock through css styling?
2 - that you want to move this script to an external js file to tidy up your code?
If you arnt clear with your request, nobody can help you.
craigt56
03-07-2011, 07:27 PM
Hi Bev,
Yes, I want to move the script to an external js file to tidy up the code and so that I can convert the page to xhtml.
Beverleyh
03-07-2011, 07:59 PM
OK
First put all the js code into an external file called "livedate.js" and save it somewhere logical on your server (in a folder called "js" perhaps.)
Only include the part between the opening <script> and closing </script> tag.
The external "livedate.js" file should not have any <script> tags in it.
The code to leave in your HTML body should be (change the path to point to the external "livedate.js" file on your server);
<script type="text/javascript" src="path/to/js/livedate.js"></script>
<span id="clock"></span>
And as per the script demo page, the body tag should look like this;
<body onLoad="goforit()">
That should be it
craigt56
03-07-2011, 09:47 PM
Thanks Bev! It works just beautifully!
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.