Howdy all,
I've been having some problems with some code, or finding some code!
What I'm trying to do for a project site at work is basically have a header file, a menu file and an index file.
The header & menu files will be shown on all pages and the index file will be unique for each page, this way I only need to update the menu/header once instead of many many more times on each index.html file.
I've googled and googled and googled but can't find much apart from turning on settings on hosting sites but I'm trying to start this from scratch starting with HTML.
Has anyone got any example code of something basic such as a index.html file with a menu on the left hand side, a header up the top and the body which fits in nicely?
Much appreciated, thanks!
***** ALERT - Nominations for your new ClubCJ Committee can be made here *****
Code help..
Moderators: Moderators, Senior Moderators
Code help..
Four wheels move the body, two wheels move the soul.
Daily Driver: Yamaha R1
Weekend Warrior: BMW Z4 Roadster
Daily Driver: Yamaha R1
Weekend Warrior: BMW Z4 Roadster
- The X
- INACTIVE Member Account
- Posts: 6769
- Joined: Mon Aug 31, 2009 10:41 am
- Location: Pyrmonia! Inner Sydney.
- Contact:
I think what you might be after is "frames"?
"the quieter you become, the more you are able to hear"
More pix @ http://clubcj.net/viewtopic.php?t=8779
More pix @ http://clubcj.net/viewtopic.php?t=8779
- Aspired
- Lancer Ralliart
- Posts: 682
- Joined: Tue Jun 23, 2009 11:11 pm
- Location: Melbourne, VIC, Australia
Sounds like frames to me aswell.
Have a lok at these:
http://www.htmlcodetutorial.com/frames/ ... upp_5.html
http://www.w3.org/TR/REC-html40/present/frames.html
Have a lok at these:
http://www.htmlcodetutorial.com/frames/ ... upp_5.html
http://www.w3.org/TR/REC-html40/present/frames.html
Frames for sure, although less and less site use them these days ... they don't play so well with searchengine spiders and the like:
<html>
<head>
</head>
<frameset cols="180,*" border="0">
<frame src="menu.htm" noresize scrolling="no">
<frameset rows="60,*" border="0">
<frame src="top.htm" noresize scrolling="no">
<frame src="page.htm" name="main" border="0">
</frameset>
</frameset>
</html>
<html>
<head>
</head>
<frameset cols="180,*" border="0">
<frame src="menu.htm" noresize scrolling="no">
<frameset rows="60,*" border="0">
<frame src="top.htm" noresize scrolling="no">
<frame src="page.htm" name="main" border="0">
</frameset>
</frameset>
</html>
.
GReddy Spectrum Elite Exhaust - TEIN S.Tech Springs - Injen CAI- 3D Eyelids - Carbon Fiber Interior - Pivot Shift Light - Smoked LED Taillights - Carbonout & Debadge.
GReddy Spectrum Elite Exhaust - TEIN S.Tech Springs - Injen CAI- 3D Eyelids - Carbon Fiber Interior - Pivot Shift Light - Smoked LED Taillights - Carbonout & Debadge.
You might want to try some AJAX - Asynchronous Javascript and XML. There are heaps of tutorials around, and when I'm at work tommorrow (off the iPhone which is crap for finding example links!) I'll post some good ones.
Basically, you have one HTML page consisting of the menu, and on all other pages, a chunk of JavaScript which sucks the content of that page and dumps it into a div.
Does your hosting providor support PHP and/or ASP? Ideally, you'd use a content management system, which would build menus automatically, but that can be a pain to set up.
Basically, you have one HTML page consisting of the menu, and on all other pages, a chunk of JavaScript which sucks the content of that page and dumps it into a div.
Does your hosting providor support PHP and/or ASP? Ideally, you'd use a content management system, which would build menus automatically, but that can be a pain to set up.
Who is online
Users browsing this forum: No registered users and 79 guests