PDA

View Full Version : keeping same menu for whole site...



benosullivan
04-22-2005, 10:45 AM
Wondering if anyone can help a newbie!

I want to use a generic menu for my whole site. How do I make each individual page reference it?

I use images for the each link in the menu and I don't want to have to use the same code at the top of each page (giving the ilusion that it is the same menu) as this makes requires reloading the images each time you load a new page.

So i'm after some code that says something like...

"for menu see this file:"

So it kind of references the one menu and needn't reload it.

The fancy drop-down menus here:

URL=http://www.dynamicdrive.com/dynamicindex1/index.html

are nice but don't fit with the site...

Thanks
Ben

ddadmin
04-22-2005, 08:11 PM
SSI (server side includes) is the easiest and most common solution. Check here for more info: http://www.javascriptkit.com/howto/externalhtml3.shtml