hi, i have an external .js file and i want to integrate it in my site for a clock. however its not working it used the <script type="text/javascript" src="pathto/clock.js"></script> i have to use this line since the code is similar with each other (same vars, functions), i have 4 same codes. the .js code is a clock that i got from http://www.maxxblade.co.uk/clock/ using the line above will display nothing, how can i display the working versionof the .js
Are you trying to say that the script you are loading has the same function and/or variable names as your existing script? If so, that's why it won't work. Don't give two functions or global variables the same name. Rename them as needed so that there are no duplicates.