Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

include file

Status
Not open for further replies.

maxpower1

Programmer
Jul 29, 2001
488
US
I have a menu snippet that i want to include in every
html page. Does anyone know how to do this is
dreamweaver? thanks

~za~
You can't bring back a dead thread!
 
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.

~za~
You can't bring back a dead thread!
 
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=&quot;css/style.css&quot; type=&quot;text/css&quot; rel=&quot;stylesheet&quot;>

Most hosting companies support SSI, just by renaming the one page.

__________________________
Corey

 
Can you use the Snippets Library if you have Dreamweaver MX? That's where I store code I reuse on different pages.

**Quiquid latine dictum sit altum viditur.**
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top