View Single Post
Old December 7th, 2001   #2 (permalink)
Thorgal
Emulation Expert
 
Thorgal's Avatar
 
Join Date: Apr 2001
Location: The Netherlands
Posts: 323
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
__________________
- Thorgal // Design guru of NGEmu and Emuforums
AthlonXP2200+, 768MB DDR333, Radeon 9700Pro, LG 915FT+, 130gb HD

You think Emuforums looks a bit messy? Don't blame me!
Thorgal is offline   Reply With Quote