|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Website layout question
Hello,
I am designing a website with a nav bar at the top of each page with pull down menus, using dream weaver MX 2003 and layers. Is there a way to use one file for the code of the nav bar (header) and have it used on each page. I do not want to have to use the code for the nav bar on each page because if I need to change something in the code for that I will need to edit and change every page. Any ideas?? Thanks again in advanced, Norman |
|
#2
|
|||
|
|||
|
The only way to do that would be through server side includes, if your host supports them.
|
|
#3
|
|||
|
|||
|
How can I tell if my host supports SSI? Should I just ask them if they supports SSI or is there somthing else it's called.
Also how do I code for SSI, is there any tutorial your know of that will help? Thanks a bunch, Norman |
|
#4
|
|||
|
|||
|
Ask your ISP / web hosting company if they support SSI (Server Side Includes). It is unlikely as they put a big load on the server, as the web server has to look throught *every* file that it sends to clients to see if any have things that needed to be included. If a server supports SSI then the files normally have an .shtml extension.
If you web hosting server supports PHP you could use that to do the include (even if you never intend to use any other php code on your site. (remember php is embedded in html or the other way round!) <html> .... first bit of your page.... untill you come to the bit where you want to include your nav bar <?php include('mynavbar.html'); ?> .... rest of your html page .... Note you will have to give you file .php entensions and like I said the server will have to support PHP (which should be more common that SSIs). hoep that helps. |
|
#5
|
|||
|
|||
|
Thanks alot!
This helps tons, one other question before I call, what is CGI Capabilities and ASP Capabilities, does either or both include SSI and/or PHP. My site is hosted on a unix server, that supports CGI. My hosting company has 2003 sever as well that have ASP support. Thanks agian, Norman |
|
#6
|
|||
|
|||
|
hmm frames and possibilly iframes? did you forget about those?
|
|
#7
|
|||
|
|||
|
Frames won't work because when the drop downs are opened the frame would become scolling are the top fram would have to be so big that we would waste that space.
Not sure about iframes, I will look in to that. Thanks for to thought, Norman |
|
#8
|
|||
|
|||
|
Thank you everyone for your help!!!
I got it working, using PHP. Everything seems good.Norman ![]() |
![]() |
| Viewing: Dev Shed Forums > Web Design > Web Design Help > Website layout question |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|