View Single Post
Old December 10th, 2001   #7 (permalink)
Sylvan Sorrow
The weeping forest
 
Sylvan Sorrow's Avatar
 
Join Date: Apr 2001
Location: not sure, lost
Posts: 1,083
Quote:
Originally posted by Thorgal
Ok, I'm not sure what you meant exactly, but I do think I can help you out with the "WITHOUT having to copy and p[aster the menu code to each and every HTML page I make" part. It is fairly easy actually, and you can do this in 2 ways: with SSI, or PHP. I won't bore you with the PHP, cause that'd require you to switch over etc. etc. Your server will have to support SSI in order for the other method to work though. You can check with your server's homepage to see if they do, or you just try out this method and see if it works :

- open up your html file with something like notepad;
- cut out the (menu) code you want to include in every webpage you make;
- open up notepad and paste that code in a new file;
- save that file as "menu.inf" in the same dir as where your html file is;
- go back to your html file again, and where the menu code used to be, put the following code:
PHP Code:
<!--#include virtual="menu.inf"--> 
(btw, this isn't really PHP code but I couldn't display it in this post otherwise)
- upload your html file and menu.inf , see if it works
That isn't working, it just still shows up there, do I need something in the head of the HTML for it to work? Or so I need to specify a scirpt type?
__________________


"Death isn't the handicap it used to be" -Lister, "Red Dwarf"

"I can live through anything, even death, but Ill never get out of life alive."

Thanks to Philia for her really talented drawing of Cecil (past avatar), vister her art thread Here

Check out www.slightlydark.com good non-liscenced game music.

formerly known as Ryoga.
Sylvan Sorrow is offline   Reply With Quote