You are here: Re: Sitemap « HTML « IT news, forums, messages
Re: Sitemap

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация