(Msg. 1) Posted: Thu Sep 25, 2008 8:41 am
Post subject: tree view navigation - results of content on the right. Archived from groups: microsoft>public>frontpage>programming (more info?)
I would like to have a tree view navigation on the left border of a
page where when a user clicks on a topic, it expands and shows the
content within the topic. Then if someone clicks the underlying topic,
it will appear on the right (middle of the screen) -- at the same time
keeping the tree view to the left.
This would be helpful with such things as navigating through a
handbook.
I have tried working with DHTML's and can get a tree view, but do not
know how to get it to be on the left side and never move, while the
contents display on the right.
(Msg. 2) Posted: Fri Sep 26, 2008 3:00 am
Post subject: Re: tree view navigation - results of content on the right. [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
One thought is to use an absolutely positioned <iframe>
Here is a quick example modified from my site where the iframe contains a
news page
You would need to replace the button with the drop down menu whose entries
are
onclick = ''topic1.html" etc
You may also need to adjust the position of #News.
<html>
<head>
<style type="text/css">
body {margin: 0;}
#News {position: absolute; left: 20%;
height: 100%; width: 80%;
display: none;
background : red}
</style>
<script type="text/javascript">
function loadIframe(sPath) {
var x = document.getElementById("News")
if (x.style.display != 'block') {
x.src = sPath
x.style.display = 'block'
}
else
x.style.display = 'none'
}
</script>
</head>
<body>
<button onclick="loadIframe('news.html')" title="Open/Close">
Open/Close</button>
<iframe id="News"></iframe>
</body>
</html>
--
Trevor Lawrence
Canberra
Web Site http://trevorl.mvps.org
<annettem RemoveThis @co.saint-croix.wi.us> wrote in message
news:45bee5fe-9ca4-4678-9072-21b5e647b996@34g2000hsh.googlegroups.com...
>I would like to have a tree view navigation on the left border of a
> page where when a user clicks on a topic, it expands and shows the
> content within the topic. Then if someone clicks the underlying topic,
> it will appear on the right (middle of the screen) -- at the same time
> keeping the tree view to the left.
>
> This would be helpful with such things as navigating through a
> handbook.
>
> I have tried working with DHTML's and can get a tree view, but do not
> know how to get it to be on the left side and never move, while the
> contents display on the right.
>
> Any ideas?
>
> Thank you!
(Msg. 3) Posted: Fri Sep 26, 2008 3:00 am
Post subject: Re: tree view navigation - results of content on the right. [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
"Trevor Lawrence" <Trevor L.@Canberra> wrote in message
news:%23vXr5r3HJHA.3932@TK2MSFTNGP03.phx.gbl...
> One thought is to use an absolutely positioned <iframe>
>
> Here is a quick example modified from my site where the iframe contains a
> news page
BTW, Scrub this:
background : red
I was just experimenting and I forgot to remove it
--
Trevor Lawrence
Canberra
Web Site http://trevorl.mvps.org
All times are: Eastern Time (US & Canada) (change)
Page 1 of 1
You can post new topics in this forum You can reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum