Use "Include" SSI command and alter included HTML header?

8thNote

Member
Oct 21, 2002
84
0
0
I figured out how to include one HTML file in another with one of the following tags.
<!--webbot bot="Include" U-Include="/FILENAME.html" TAG="BODY" -->
<!--#include="/FILENAME.html" -->
(which one is better, BTW?)

I would like all of my pages to reference the one HTML "header" but here's my problem. The included HTML file has Javascript to make mouseovers and such, including "selected-state" mouseovers. Thus, I want something to change colors when a person is on that page.

Can this be done with a single included file?
 

DannyBoy

Diamond Member
Nov 27, 2002
8,820
2
81
www.danj.me
<!--#include="/FILENAME.html" --> is the better one i would imagine, although i have never tried this myself.

You should be able to include the javascript if you put it in a seperate file (script.js) and include that in the body of the main index file.