admin
06-04-2003, 03:04 PM
Here is a code that i use all the time. It is called virtual frames. It
allows you to change the complete look of the site with changeing only 4 files.
This is what you do
1.) Create a new design for your site.
2.) now make for files call them top1.inc, top2.inc, menu.inc, and
bottom.inc.
3.) open your template up and copy all the info from <html> to just before </head> and put it in top1.inc then save
3.) copy all the info from </head> to just before the start of the menu and put it in top2.inc then save
4.) copy all the info from the start of the menu to just before the
start of the main page and put it in menu.inc then save
5.) copy all the info from right after the main page to <html> and put it in bottom.inc and save
6.) now each of your pages put this in
<% Response.Buffer = True %>
<!--#include file="top1.inc"-->
any scripts that need to go in your head document go here.
<!--#include file="top2.inc"-->
<!--#include file="menu.inc"-->
the contents of your page go here
<--#include file="frame/Bottom.inc"-->
7.) now whenever you want to change the look of your site all you have to is change these 4 files and if you want to customize it more use CSS
I do this on the site I run and it is real nice because if I want to
change the look of the site I do not have to open every page up and edit it. I just need to change those 4 files. It is very useful and the possiblilities of this tip is endless. I use includes all the time because it saves me time.
By Andy Chalmers
allows you to change the complete look of the site with changeing only 4 files.
This is what you do
1.) Create a new design for your site.
2.) now make for files call them top1.inc, top2.inc, menu.inc, and
bottom.inc.
3.) open your template up and copy all the info from <html> to just before </head> and put it in top1.inc then save
3.) copy all the info from </head> to just before the start of the menu and put it in top2.inc then save
4.) copy all the info from the start of the menu to just before the
start of the main page and put it in menu.inc then save
5.) copy all the info from right after the main page to <html> and put it in bottom.inc and save
6.) now each of your pages put this in
<% Response.Buffer = True %>
<!--#include file="top1.inc"-->
any scripts that need to go in your head document go here.
<!--#include file="top2.inc"-->
<!--#include file="menu.inc"-->
the contents of your page go here
<--#include file="frame/Bottom.inc"-->
7.) now whenever you want to change the look of your site all you have to is change these 4 files and if you want to customize it more use CSS
I do this on the site I run and it is real nice because if I want to
change the look of the site I do not have to open every page up and edit it. I just need to change those 4 files. It is very useful and the possiblilities of this tip is endless. I use includes all the time because it saves me time.
By Andy Chalmers