"Steven LaPha Jr." <> wrote in message
news:eDtbc.398104$ om...
> I was wondering if there was an easy way to seperate out the menu and some
> design elements (logos in CSS boxes) and the like so they can be used on
> every page. Instead of writing the code on every single page.
>
> What I was thinking is along the way of including/importing. Like include
a
> simple HTML file with each page, that way I just have to update 1 page to
> update all the menus and anything else that remains consistant on each
page.
>
> I know it's possible and have seen the code for it, but now here's the
> question, how well does it work with MOST browsers (talking IE, Netscape,
> Opera). Also since it would hold critical parts of the webpage it would
have
> to load fast as well.
>
> Not looking for any PHP, CGI, ASP or whatever, just asking if the simple
> solution works, or if there is something else equal to it. I just have a
> basic hosting so nothing fancy.
>
> Just wondeirng how everyone else does it.
Well here's a slightly different possible solution that could work depending
on how much the logos and menu need to be updated. You could always just
create a blank "template" file and edit that as needed. My page (when it's
online) has an upper logo and a menu on one side and only the content in the
center changes. I've got a template file on my computer that has the logo
and menu but nothing in the content area. When I need to update I just copy
the template file, rename the copy, then fill in the content. This way I
don't have to code the menu and title every time. Not to mention it means
the code for all the pages is extremely consistent. Since most of the
content is text articles it also means I can type them up in Word or
something where I have a spell checker, then paste the text into to the
template then quickly paste in line breaks where necessary.
That solution may have nothing to do with what you're trying to do though I
suppose.
--
Ramen Junkie
http://www.lameazoid.com is offline at the moment.