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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I've had my site up only for a few

Status
Not open for further replies.

PeloGFX

Programmer
May 21, 2002
13
US
I've had my site up only for a few days and I'm already sick of editing things. I'm using tables in HTML so it gets really difficult having to change the same thing on EVERY page every time I change something on the navigational bar. My web host doesn't support any server-side laguanges so I'm wondering if there's a way to have 1 page called navbar or something and I would only have to edit that, basically the exact same thing as frames but using JavaScript instead. I hate frames. Thanks. ~PeloGFX
 
Well, you could declare your navbar in css and have an external file. That way, all you'd have to do is edit one file for a million pages. That what you mean?
 
Yeah I think so, I know how to set CSS Styles if that's what you mean, I just need to take HTML from an external file and paste it into the page. If that's what you meant, how would I do that in CSS? ~PeloGFX
 
You can include elements on every page using document.write in external JS files but it obviously wouldn't work with non-js browsers.

The best method I've found for including HTML in every page is to use MS FrontPage "include pages". They run off CDs, don't require any server support and work in js disabled browsers.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top