View previous topic :: View next topic |
Author |
Message |
lestat -
Joined: 15 Sep 2003 Posts: 130 Location: GREEN BAY
|
Posted: Tue Sep 23, 2003 7:07 pm Post subject: How to tell the server to add same graphic on every page? |
|
|
Hi,
I want the end user to see particular graphics on every page of the site. Rather than hard coding it into each page, can I have the server serv up the images every time?
Thanks! |
|
Back to top |
|
 |
Produkt -
Joined: 22 Sep 2003 Posts: 25
|
Posted: Tue Sep 23, 2003 8:03 pm Post subject: Yeah |
|
|
Yep, that's what SSI is for. If you have it enabled, you can add this into your pages: <!--#include file="whatever.txt"-->
Put whatever code you want to show up in "whatever.txt" and put that script line into any page that you want to have that code. _________________ Produkt |
|
Back to top |
|
 |
lestat -
Joined: 15 Sep 2003 Posts: 130 Location: GREEN BAY
|
Posted: Tue Sep 23, 2003 8:22 pm Post subject: Can that info be variable? |
|
|
I have folders, in which the files are changed from time to time. Can I get the server to display whichever file displays, and using <!--#include file="whatever.txt"-->, display the graphic?
Thanks! |
|
Back to top |
|
 |
os17fan -
Joined: 21 Mar 2003 Posts: 531 Location: USA
|
Posted: Tue Sep 23, 2003 9:54 pm Post subject: |
|
|
be sure to also still write the image tags in that txt files 8)
Code: | <img src="your_image.gif"> |
_________________ This web server is the best ! |
|
Back to top |
|
 |
lestat -
Joined: 15 Sep 2003 Posts: 130 Location: GREEN BAY
|
Posted: Tue Sep 23, 2003 10:24 pm Post subject: |
|
|
That seems a bit redundant, because Im coding them files like that now. |
|
Back to top |
|
 |
|