Go Back  HTML Forums - Free Webmaster Forums and Help Forums > WEBSITE DEVELOPMENT > HTML / XHTML
User Name:
Password:
 

Reply
Thread Tools   Display Modes
  View First Unread
 
Old 11-05-2009, 04:45 PM
  #1
nerdcube
Novice (Level 1)
 
Join Date: Nov 2009
Posts: 3
iTrader: (0)
nerdcube is an unknown quantity at this point
Exclamation Repeat menu bar on every page?

I have created a menu bar that runs horizontally along the top of my website (not as a frame) and repeats across every webpage.

I was just wondering if it was possible to insert some shorter code that referenced a text file that contained the menu bar code so that I would not have to put my menu code on every page.

I'm thinking something in CSS might do it, but I'm not sure.

Thanks.
nerdcube is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 11-05-2009, 05:07 PM
  #2
Pegasus
Extremely Flighty Admin
 
Pegasus's Avatar
 
Join Date: Nov 2001
Location: 35º South of Santa Claus
Posts: 21,467
iTrader: (0)
Pegasus is a name known to allPegasus is a name known to allPegasus is a name known to allPegasus is a name known to allPegasus is a name known to allPegasus is a name known to all
Not CSS, but serverside includes will do what you want.

http://www.htmlforums.com/serverside...des-87773.html

http://www.htmlforums.com/serverside...des-62567.html
__________________


Decaf is the root of all evil...
HTMLForums Awards 2008
Pegasus is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 11-05-2009, 05:25 PM
  #3
nerdcube
Novice (Level 1)
 
Join Date: Nov 2009
Posts: 3
iTrader: (0)
nerdcube is an unknown quantity at this point
This does not seem to be working for me. Is it because my links are images? Here is what my code looks like in my site:

<?php include("banner.html"); ?>


And in banner.html I have this repeated several times (for each menu tab):

<a href="index.php" border=0>
<img src="banner/hometab.png"
onmouseover="this.src='banner/homeover.png'"
onmouseout="this.src='banner/hometab.png'">
</a>

Should this be working for me, or am I doing something wrong?
nerdcube is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 11-05-2009, 05:38 PM
  #4
Pegasus
Extremely Flighty Admin
 
Pegasus's Avatar
 
Join Date: Nov 2001
Location: 35º South of Santa Claus
Posts: 21,467
iTrader: (0)
Pegasus is a name known to allPegasus is a name known to allPegasus is a name known to allPegasus is a name known to allPegasus is a name known to allPegasus is a name known to all
It should work. Where are you hosting the site? It'll have to have php installed on it.
__________________


Decaf is the root of all evil...
HTMLForums Awards 2008
Pegasus is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 11-05-2009, 06:55 PM
  #5
webwest
Novice (Level 1)
 
webwest's Avatar
 
Join Date: Oct 2009
Location: Los Angeles, CA
Posts: 8
iTrader: (0)
webwest is an unknown quantity at this point
Do your pages have .html or .php extensions? They need to be .php
webwest is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 11-06-2009, 04:05 PM
  #6
nerdcube
Novice (Level 1)
 
Join Date: Nov 2009
Posts: 3
iTrader: (0)
nerdcube is an unknown quantity at this point
Should this work on my computer before I have uploaded it, or will it only work once I have uploaded it to my host?

Sorry, but I know next to nothing about php.
nerdcube is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 11-06-2009, 04:53 PM
  #7
Pegasus
Extremely Flighty Admin
 
Pegasus's Avatar
 
Join Date: Nov 2001
Location: 35º South of Santa Claus
Posts: 21,467
iTrader: (0)
Pegasus is a name known to allPegasus is a name known to allPegasus is a name known to allPegasus is a name known to allPegasus is a name known to allPegasus is a name known to all
.php only works on a server. You can get a mock server for your computer, wamp or mamp (if you're on a Mac). Just google the name. A gazillion sites will come up. You can take your pick.
__________________


Decaf is the root of all evil...
HTMLForums Awards 2008
Pegasus is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote

Reply
KEEP TABS
SPONSORS
 
Boxedart
 
 


 
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
  
 
 
 



 
  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 On
HTML code is Off
Thread Tools
Display Modes

Forum Jump

 

All times are GMT -5. The time now is 01:34 AM.

   

Mascot team created by Drawshop.com

Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.

Server Monitoring by ENIACmonitor 0.01
HTMLforums.com © Big Resources, Inc. Web Design by BoxedArt.com
vRewrite 1.5 beta SEOed URLs completed by Tech Help Forum and Chalo Na.