Click to See Complete Forum and Search --> : image maps or tables on every page


nataliej
10-20-2005, 04:20 PM
I've been looking for a way to use one table and one image map on every page in my site. As in, I'd like to create a file that has my map in it so if I change something, I only have to change it once as opposed to changing every single page. I'm guessing there is probably a way to do this with CSS, but any ideas at all would be greatly appreciated.

Brandon55
10-20-2005, 04:38 PM
What I do is create my main section that I want on all the pages and save it as a java script template (*.js) and then put that on all the pages so when you update the template it will update on all the pages!

Another way (but I have not tried it) is a code something like this:

<frameset rows="*" cols="80,*" frameborder="NO" border="0" framespacing="0">
<frame name="leftFrame" scrolling="NO" noresize src="leftframe.htm">
<frameset rows="88,281*" frameborder="NO" border="0" framespacing="0" cols="*">
<frame name="topFrame" noresize scrolling="NO" src="topframe.htm">
<frame name="mainFrame" src="mainframe.htm">
</frameset>

</frameset>

but you can edit it as you wish so it matches what you want! But for this to work it has to be on your main page and when you click on links it will stay on your main page but the inside frame (mainframe.htm) will change! Hope this helps! If you have any problems with it just post em and I will see if I can figure them out!

NogDog
10-20-2005, 04:40 PM
CSS let's you manage appearance across files, not content. You'll either need to use server-side includes (SSI) if your web host supports that, or server-side scripting such as PHP, ASP, Perl, etc. Again, you'll need to find out which technologies your web host supports and allows your account to use.

nataliej
10-20-2005, 08:02 PM
What I do is create my main section that I want on all the pages and save it as a java script template (*.js) and then put that on all the pages so when you update the template it will update on all the pages!


I'm pretty sure that's exactly what I'm looking for, but whenever I try to figure out how to do it, I just find ways to put java script in my image map, not put my image map in java script. Could you explain in to me or point me to a site that could?

NogDog
10-20-2005, 11:22 PM
And what happens to the 10% or so of the users who do not have JavaScript available/enabled?