Posted by Mark Simon on 12/18/05 08:29
Michael Sgier wrote:
> 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[i].className=="tabbed"
divs[i].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
[Back to original message]
|