Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Need some help with web pages.
#1
OK...I'm trying to make a web site that uses the same basic template for all the pages.
I'm have some limited knowledge of CSS and I am using it successfully so far.

I'm using an image map for the main menu on all my pages:

<map id="menumap" name="menumap">
<area shape="rect" coords="0,0, 114,19" href="index.html" onmouseover="chgImg('mHome')" onmouseout="chgImg('mHome')">
<area shape="rect" coords="0,18,114,40" href="about.html" onmouseover="chgImg('mAbout')" onmouseout="chgImg('mHome')">
<area shape="rect" coords="0,39,114,61" href="contact.html" onmouseover="chgImg('mContact')" onmouseout="chgImg('mHome')">
<area shape="rect" coords="0,60,114,82" href="calendar.html" onmouseover="chgImg('mCalendar')" onmouseout="chgImg('mHome')">
<area shape="rect" coords="0,81,114,103" href="beltreqs.html" onmouseover="chgImg('mBeltreqs')" onmouseout="chgImg('mHome')">
<area shape="rect" coords="0,102,114,122" href="links.html" onmouseover="chgImg('mLinks')" onmouseout="chgImg('mHome')">
</map>

There will probably be close to 100 pages total available for this site, so if I need to add to or modify the menu, I'll have to change EVERY single-dingle page. I just don't want to do this!

The only thing that is going to change on various pages is the argument passed to chgImg in the onmouseout event.

Is there a way I can store this HTML in one location and reference it on each page for use so I don't have to change a million pages when I make a modification?


Oh yeah, I don't want to use frames either.
Reply


Messages In This Thread
Need some help with web pages. - by 8-up - 11-09-2006, 10:54 AM
Need some help with web pages. - by Miagi - 11-09-2006, 07:26 PM
Need some help with web pages. - by 8-up - 11-10-2006, 09:40 AM
Need some help with web pages. - by {james} - 11-10-2006, 06:35 PM
Need some help with web pages. - by Miagi - 11-10-2006, 08:10 PM

Forum Jump:


Users browsing this thread: 3 Guest(s)