html global nav bar, quick newb question

I4AT

Platinum Member
Oct 28, 2006
2,631
3
81
I want a tabbed design for my site with a global navigation bar always at the top. Do I need to copy/paste the nav bar code into every html file or is there a better/more efficient way of doing it?

Frames would seem like the most obvious choice for something to be loaded once and 'stick' until the browser is closed, but those are deprecated, so what's the new way of doing things?
 
Last edited:

Markbnj

Elite Member <br>Moderator Emeritus
Moderator
Sep 16, 2005
15,682
14
81
www.markbetz.net
Frames are terrible, so don't use them. If your site is static, then you have two choices: first, copy the code into every page as you suggested; or second, if your server supports server-side includes you can have a snippet of HTML and include it in every page. You'll need to check with your hosting provider.

Usually, however, this kind of feature is implemented on a site driven by server-side scripts, which is a whole 'nother animal.