http://www.dynamicdrive.com/dynamicindex6/clock3.htm need to run this from css.
http://www.dynamicdrive.com/dynamicindex6/clock3.htm need to run this from css.
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.
Focus on Function Web Design
Fast Edit (A flat file, PHP web page editor & CMS. Small, FREE, no database!) | Fast Edit BE (Snippet Manager) (Web content editor for multiple editable regions!) | Fast Apps
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.
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);
And as per the script demo page, the body tag should look like this;Code:<script type="text/javascript" src="path/to/js/livedate.js"></script> <span id="clock"></span>
<body onLoad="goforit()">
That should be it
Focus on Function Web Design
Fast Edit (A flat file, PHP web page editor & CMS. Small, FREE, no database!) | Fast Edit BE (Snippet Manager) (Web content editor for multiple editable regions!) | Fast Apps
craigt56 (03-07-2011)
Thanks Bev! It works just beautifully!
Bookmarks