English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Ok i Have a question i have installed the script on my sever and everything but i dont know how to add th script on my pages which i want i cant find the script for that part. does anyone know?

2007-09-27 07:32:40 · 1 answers · asked by preciousanime 3 in Computers & Internet Programming & Design

1 answers

Assuming that your web server is setup for server-side includes (ssi), then you need to add a line to each html page that needs the script. Put this in the "head" section of your document so that the script is called, loaded, and cached before any other parts of the page that may need it are displayed. You can put it in the "body" section, but only if absolutely necessary.

The code differs depending on what kind of include you are doing. For something like javascript, you would simply add the line,



replace the relativepath with values that will point to the directory where you keep your scripts, and replace name.js with the name of your script.

To avoid errors in older browsers, you do not want to have the