Finding and Implementing Javascript
There a tons of resources online for finding Javascripts for your site. In this exercise, I will install a script from http://www.dynamicdrive.com that displays todays date on your page.
- Open Dynamic Drive and go to the date/time section
- Select the Live clock script
- Follow the instructions on the page.
It should look like this when you are finished:
- Remember to save the .js file in your scripts directory
- In the 1st step of the example directions you'll see the following line <script language="javascript" src="liveclock.js">. It is pointing to the JavaScript file you download in the final step. Since we have placed the file in the assets/scripts directory we should change this line to read:
<script language="javascript" src="assets/scripts/liveclock.js">
- You can customize the appearance the clock by opening the JavaScript file and editing the options.