inserting <script> from outside

liunx

Guest
I have a JS code for navigation.... The site now has about 100 files. I have included a common html file in the left col. SO I want to insert the code in this file to make a left nav bar.....
The problem is:
The main html code calls for a javascript code (essentially needs to be specified within head tags). The file that I have is included in the body part....
To the best of my knowledge, I have to edit all (nearly 100) of my files and add the <script> tags?Is there a easier way of doing this?There are about 100 easier ways of doing this. But unfortunately for you, it requires something additional to just HTML and Javascript, like PHP or Perl.

You may think it time consuming, but if you're running into problems like this now and plan to continue making websites, then learning these languages (PHP being the best) is a no brainer. While you're at it, it wouldn't hurt to learn some database (MySQL) usage as well.

Sorry I couldn't help you with your current problem, but this is advice that I would definitely consider.There are about 100 easier ways of doing this. But unfortunately for you, it requires something additional to just HTML and Javascript, like PHP or Perl.
I know a lil bit of both PHP and Perl... Can you tell me what these ideas are so that I can continue doing it?
 
Back
Top