To insert a server-side include:
1. Choose Insert > Script Objects > Server-Side Include.
2. In the dialog box that appears, browse to and select a file.
i'm sorry. i should have been more specific. It's not a javascript code but rather a segment of html codes with css(that forms the menu). Hence, there is no javascript code etc. The snippet only has about 20 lines of html codes. Since
I need to have these lines on every page, it probably be a lot better if I can place the 20 lines in a file and then include the file.
I don't have any server side scripting running. Everything is just plain html with css and images located in one folder.
Well to include an html file into another HTML file, you will need to use SSI or you could possibly convert it to javascript & insert it that way.
Now if it is just all CSS, you could insert that a different way:
<LINK href="css/style.css" type="text/css" rel="stylesheet">
Most hosting companies support SSI, just by renaming the one page.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.