GIDForums  

Go Back   GIDForums > Webmaster Forums > Web Design Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 16-Jul-2002, 19:32
chalaska
 
Posts: n/a

top menu bar trouble


i have sucessfully got the top nav menu bar at the top of the page, I have noticed that when i click on a link the new page does not have the menu on it. Is there a way to make the links open in a frame of a website or any way to make the menu on every page without going to each page and inserting the code ( which would be very hard since i have it on a big web site)..Please help me.

Thx
  #2  
Old 17-Jul-2002, 02:22
JdS's Avatar
JdS JdS is offline
Senior Member
 
Join Date: Aug 2001
Location: KUL, Malaysia
Posts: 3,371
JdS will become famous soon enough
i queried ur server and the good news is that it supports php (and the latest version i might add).

i notice u use .shtml as your web page exts.

u of course can do it placing your pages in frames (but i would suggest not).

what i would suggest is doing this:

first do this (make your shtml pages parse php)

then create a file called: menu.php

inside this page you just put the html (or javascript) code of your menu.

now inside each web page, where u want your menu to appear just add this:

PHP Code:

<?php
  require( 'menu.php' );
?>


so for example, if u had a page called test.shtml this is what u might do:

PHP Code:

<html>
<head></head>
<body>
<?php
  require( 'menu.php' );
?>
<h1>Test Page</h1>
<p>Whatever...</p>
</body>
</html> 

let us know if u still have problems
  #3  
Old 18-Jul-2002, 19:02
Garth Farley Garth Farley is offline
Invalid Email Address
 
Join Date: May 2002
Location: Ireland
Posts: 638
Garth Farley is a jewel in the roughGarth Farley is a jewel in the roughGarth Farley is a jewel in the rough
I hope that changing the parser of the .shtml files won't break chalaska's SSI, that is if he/she uses it.

SSI has an include function, just like PHP. I've never even touched the language at all, so look it up at some ref site. It's commonly used.

Garth Farley
  #4  
Old 18-Jul-2002, 21:11
chalaska
 
Posts: n/a

it works


thanks guys it works fine, no errors. The only hard bit now is to convince leader to let me use it!
 
 

Recent GIDBlogLast Week of IA Training by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Trouble connecting to most of the internet jrobbio Web Hosting Forum 7 18-Jan-2004 10:11
Trouble with htdocs on network drive. kibboy Apache Web Server Forum 0 11-Nov-2003 08:22
Great way to disable flash rightclick menu BobbyDouglas Web Design Forum 0 02-Sep-2003 18:23
value in text box skyloon MySQL / PHP Forum 6 14-Jul-2003 03:06
Trouble adding RAM JBrewMan1 Computer Hardware Forum 13 29-Apr-2003 20:32

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 00:01.


vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.