|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
#1 |
|
Member (9 bit)
Join Date: Nov 2004
Location: Flint, MI
Posts: 256
|
Website Template
I want to create a website template. Instead of linking to an completely different page it would only change the one section of the current page to whatever the link said to change and not have to reload the graphics. So if I wanted to change the logo at the top I would only have to change the template. I have tried CSS but how would you do it, only change the one section, or frame in HTML, to whatever you want, or is there another way?
^fo EDIT: See the next post Last edited by foolishone; 12-28-2004 at 07:10 PM. |
|
|
|
|
|
#2 |
|
Member (9 bit)
Join Date: Nov 2004
Location: Flint, MI
Posts: 256
|
I want to keep the navigation and top "frame" the same without reloading but only change the body when a link is click on.
Last edited by foolishone; 12-28-2004 at 07:10 PM. |
|
|
|
|
|
#3 |
|
Member (8 bit)
Join Date: Dec 2002
Location: Grand Rapids, MI
Posts: 144
|
If you set up a page using frames, when you add a hyperlink just tell it where you want it to open - new window, parent frame, same frame, whole window or the name of the frame you want it to open in.
I've only used MS Front Page, but when you set up a hyperlink it gives you the option of where/how you want the link to open. |
|
|
|
|
|
#4 |
|
Member (9 bit)
Join Date: Nov 2004
Location: Flint, MI
Posts: 256
|
I was thinking that too, I guess I will just have to be patient and deal with frames.
|
|
|
|
|
|
#5 |
|
Member (9 bit)
|
if you have any experiance with PHP or a PHP enabled server, that would be a great deal of help. this tutorial will give you some more information - http://www.phpfreaks.com/tutorials/8/0.php
|
|
|
|
|
|
#6 |
|
PCMech: Saving Lives
Join Date: Apr 2004
Location: England, the United Kingdom
Posts: 1,839
|
You could just use a couple of Server Side Includes if that is supported by your server and PHP is not. There are also other ways (without SSIs) I can think of using ASP if you have ASP support.
|
|
|
|
|
|
#7 |
|
Moderator
Staff
Premium Member
Join Date: Aug 2003
Location: Richmond, VA
Posts: 7,835
|
PHP would be the easiest way here - or some sort of server side program. The URL would just change to whatever page you want it to, but the "content" is the only thing changed.
http://www.php.net/urlhowto.php Another possibility is just simple. Say you have the title banner URL as something like "http://www.website.com/image.gif", then what you can do there is to physically change the content of the file image.gif. So in other words, the page will still be loading the "image.gif", except to the eye, the gif file looks different. kram
__________________
"For today, goodbye. For tomorrow, good luck. And forever, Go Blue!"
University of Michigan President Mary Sue Coleman |
|
|
|
|
|
#8 |
|
Member (9 bit)
Join Date: Nov 2004
Location: Flint, MI
Posts: 256
|
I did pick the cheapest server I could find, and it doesn't support really anything, no pHp, ASP, SQL, PERL, no Dreamweaver/MSFP or Coldfusion. I have been thinking of changing for awhile now, so I will just have to buck it up and do it.
^fo EDIT:I checked : do support SSI, CGI and PERL, the latter are no help to me here, I don't think?....well come to think of it, what are they? I think I could briefly define PERL, maybe. Last edited by foolishone; 12-31-2004 at 09:38 PM. |
|
|
|
|
|
#9 |
|
PCMech: Saving Lives
Join Date: Apr 2004
Location: England, the United Kingdom
Posts: 1,839
|
From my knowledge SSI is Server Side Include, basically it allows you to include a page into another page. This can be used as templates:
HTML Code:
<!--#include file="fileyouwanttoinclude.html" --> Your Content Here <!--#include file="anotherfileyouwanttoinclude.html"--> |
|
|
|
|
|
#10 |
|
Member (9 bit)
Join Date: Nov 2004
Location: Flint, MI
Posts: 256
|
How would it know where I want the content?
Here, I just threw this together, how would it know where to put the content? Similar to frames, you just specify a "div" on the page? http://getlaughing.com/sample.html (red stays, when you click on a link you it only changes the content. So if I wanted to add on option on the left navigation bar, I would have to only change the respective file.) |
|
|
|
|
|
#11 |
|
Member (9 bit)
|
theres info on where to break the pages up and parse content here http://www.phpfreaks.com/tutorials/8/0.php - just replace the php includes code with the SSI include. make sure you end your files .shmtl
|
|
|
|
|
|
#12 |
|
Member (9 bit)
Join Date: Nov 2004
Location: Flint, MI
Posts: 256
|
I just got around to trying what you said and it worked!!! It "concatanated" the two files perfectly!!! Thank You!!!! Can guarantee there will be more questions to come.
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|