Sitemap

M

Michael Sgier

Hello
I want to make a little html page as sitemap. So if you click on a
link the page below should change and the sitemap still remain on top.
I know with frames it would be _mainFrame but i ditched all frames and
would be grateful for help here with the a href target tag.
THANKS and regards
Michael
 
D

Disco Octopus

Michael said:
Hello
I want to make a little html page as sitemap. So if you click on a
link the page below should change and the sitemap still remain on top.
I know with frames it would be _mainFrame but i ditched all frames and
would be grateful for help here with the a href target tag.
THANKS and regards
Michael

I would look into server side includes.
http://www.google.com/custom?q=Server+Side+Includes

See if your host allows for this.

Instead of a frame as your sitemap (I assume you mean menu), you can put it
into a file that is included in all your pages.
 
M

Michael Sgier

Hello
ssi would be ok...how would that look like in SSI?
The sitemap would be a small page on top of the content pages.
Thanks
Michael
 
D

Disco Octopus

Michael said:
Hello
ssi would be ok...how would that look like in SSI?
The sitemap would be a small page on top of the content pages.
Thanks
Michael

1. make sure the server allows for it....

this...
http://www.microsoft.com/technet/pr...IIS/eced0b89-e052-42ff-baa8-751dd191c3b5.mspx
.... or this ...
http://httpd.apache.org/docs/1.3/mod/mod_include.html
.... may be helpful


2. builds a page called call (eg) /includes/menu.inc containing stuf....
eg:
<div id="menu"><a href="p1.html">one</a><a href="p2.html">two</a><a
href="p3.html">three</a></div>

3. put this in your pages somewhere.
<!--#include virtual="/inludes/menu.inc" -->
 
M

Michael Sgier

Hello
yes that would do it. But i wonder if i can do it with only href tags?
on the small popup sitemap html page i put...well check it out on my
page: http://sgier.com
the target tag is like "display". Now the only thing is that like this
it opens first another window. the consequent windows are displayed
underneath the sitemap correctly.
Any ideas on how not to open the new window?
Thanks Michael
 
K

kchayka

Michael said:
I want to make a little html page as sitemap. So if you click on a
link the page below should change and the sitemap still remain on top.

Stop wanting this. Leave the site map as a single, separate page that
links to the other pages normally. No target attributes, no frames, no
huge list of links on every page. That is the norm for site maps.

If your visitor wants to return to the site map after following a link,
they can use their browser "back" feature, or they can open a link in a
new window if *they* choose to do so.

There is nothing wrong with the normal site map behavior, and there is
no reason for you to do something different.
 
M

Mark Simon

Michael said:
Hello
I want to make a little html page as sitemap. So if you click on a link
the page below should change and the sitemap still remain on top.
I know with frames it would be _mainFrame but i ditched all frames and
would be grateful for help here with the a href target tag.
THANKS and regards
Michael

If you prefer to do it without frames, you could try it with a
combination of hidden divs, javascript and SSI:

<head>
<script>
function show(id) {
for each d in document.get


<div class="navigation">
<a href="javascript:show('one')">One</a>
<a href="javascript:show('two')">Two</a>
</div>
<div class="tabbed" id="one">
<!--#include virtual="one.html"-->
</div>
<div class="tabbed" id="two">
<!--#include virtual="two.html"-->
</div>
<html>
<head>
<title>Test Tabs</title>
<style>
.tabbed {
display: none;
}
</style>
<script type="text/javascript">
function show(id) {
divs=document.getElementsByTagName("div");
for (i=0;i<divs.length;i++)
if (divs.className=="tabbed"
divs.style.display="none";
document.getElementById(id).style.display="block";
}
</script>
</head>
<head>
<div class="navigation">
<a href="javascript:show('one')">One</a>
<a href="javascript:show('two')">Two</a>
</div>
<div class="tabbed" id="one">
<p>One</p>
<!--#include virtual="one.html"-->
</div>
<div class="tabbed" id="two">
<p>Two</p>
<!--#include virtual="two.html"-->
</div>
</body>
</html>

Mark
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,677
Members
48,796
Latest member
Greg L.

Latest Threads

Top