Link to home
Start Free TrialLog in
Avatar of daluu
daluuFlag for United States of America

asked on

need Scrolling side navigation bar

My superiors would like to use a scrolling side navigation bar like the one at http://www.glassdog.com on the college department's website. Looking at the Glassdog site, it looks like the effect makes use of javascript along with position with stylesheets, right? However, the code is complex. So...

I was wondering if anyone knows how to make such a script or where to get one but with less complex code or less code.
Avatar of avner
avner

I didn't think it was that bad...

mostly other peoples javascript though.
tools.js is kinda weak, but I thought the site was nicer than a lot of other sites like it I've seen.

Bob

but, the navigation is decidedly un DHTMLey

Avatar of daluu

ASKER

Just for clarification,

My superiors want the navigation menu to SCROLL with the page, the navigation menu itself we can manage. We just need the scrolling SCRIPT to use with our menu not the menu itself.
Well , then it something complitly different .
Try this code it's IE5 , you'll get the idea :

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE> New Document </TITLE>
<SCRIPT LANGUAGE="JavaScript">
<!--
//[avnerc@fundtech.co.il]
function changePosition()
{
obj=document.getElementById("moshe");
obj.style.pixelTop=document.body.scrollTop;
}
//-->
</SCRIPT>
<style>
#moshe
{
position:absolute;
border:ridge;
height:20px;
width:20px;
left:200px;
top:0px;
}
</style>
</HEAD>

<BODY onscroll="changePosition()">
<Div id="moshe">Moshe</div>
fdsgfdgfjfhgjdgfdsgfdgsdfg<br>fdshgtjfgfhgjfhgjytdgfdsgfdgsdfg<br>y65<br>5876765<br>fdsgfdgf7687576856dgfdsgfdgsdfg<br>
857768<br>9876iulkjlkhkjhlkhj<br>y65<br>5876765<br>fdsgfdgf7687576856dgfdsgfdgsdfg<br>
fdsgfdgfjfhgjdgfdsgfdgsdfg<br>fdshgtjfgfhgjfhgjytdgfdsgfdgsdfg<br>y65<br>5876765<br>fdsgfdgf7687576856dgfdsgfdgsdfg<br>
fdsgfdgfjfhgjdgfdsgfdgsdfg<br>fdshgtjfgfhgjfhgjytdgfdsgfdgsdfg<br>y65<br>5876765<br>fdsgfdgf7687576856dgfdsgfdgsdfg<br>
857768<br>9876iulkjlkhkjhlkhj<br>y65<br>5876765<br>fdsgfdgf7687576856dgfdsgfdgsdfg<br>
fdsgfdgfjfhgjdgfdsgfdgsdfg<br>fdshgtjfgfhgjfhgjytdgfdsgfdgsdfg<br>y65<br>5876765<br>fdsgfdgf7687576856dgfdsgfdgsdfg<br>
fdsgfdgfjfhgjdgfdsgfdgsdfg<br>fdshgtjfgfhgjfhgjytdgfdsgfdgsdfg<br>y65<br>5876765<br>fdsgfdgf7687576856dgfdsgfdgsdfg<br>
857768<br>9876iulkjlkhkjhlkhj<br>y65<br>5876765<br>fdsgfdgf7687576856dgfdsgfdgsdfg<br>
fdsgfdgfjfhgjdgfdsgfdgsdfg<br>fdshgtjfgfhgjfhgjytdgfdsgfdgsdfg<br>y65<br>5876765<br>fdsgfdgf7687576856dgfdsgfdgsdfg<br>
dgsdfg<br>fdshgtjfgfhgjfhgjytdgfdsgfdgsdfg<br>y65<br>5876765<br>fdsgfdgf7687576856dgfdsgfdgsdfg<br>
fdsgfdgfjfhgjdgfdsgfdgsdfg<br>fdshgtjfgfhgjfhgjytdgfdsgfdgsdfg<br>y65<br>5876765<br>fdsgfdgf7687576856dgfdsgfdgsdfg<br>
857768<br>9876iulkjlkhkjhlkhj<br>y65<br>5876765<br>fdsgfdgf7687576856dgfdsgfdgsdfg<br>
fdsgfdgfjfhgjdgfdsgfdgsdfg<br>fdshgtjfgfhgjfhgjytdgfdsgfdgsdfg<br>y65<br>5876765<br>fdsgfdgf7687576856dgfdsgfdgsdfg<br>
fdsgfdgfjfhgjdgfdsgfdgsdfg<br>fdshgtjfgfhgjfhgjytdgfdsgfdgsdfg<br>y65<br>5876765<br>fdsgfdgf7687576856dgfdsgfdgsdfg<br>
857768<br>9876iulkjlkhkjhlkhj<br>y65<br>5876765<br>fdsgfdgf7687576856dgfdsdgsdfg<br>fdshgtjfgfhgjfhgjytdgfdsgfdgsdfg<br>y65<br>5876765<br>fdsgfdgf7687576856dgfdsgfdgsdfg<br>
fdsgfdgfjfhgjdgfdsgfdgsdfg<br>fdshgtjfgfhgjfhgjytdgfdsgfdgsdfg<br>y65<br>5876765<br>fdsgfdgf7687576856dgfdsgfdgsdfg<br>
857768<br>9876iulkjlkhkjhlkhj<br>y65<br>5876765<br>fdsgfdgf7687576856dgfdsgfdgsdfg<br>
fdsgfdgfjfhgjdgfdsgfdgsdfg<br>fdshgtjfgfhgjfhgjytdgfdsgfdgsdfg<br>y65<br>5876765<br>fdsgfdgf7687576856dgfdsgfdgsdfg<br>
fdsgfdgfjfhgjdgfdsgfdgsdfg<br>fdshgtjfgfhgjfhgjytdgfdsgfdgsdfg<br>y65<br>5876765<br>fdsgfdgf7687576856dgfdsgfdgsdfg<br>
857768<br>9876iulkjlkhkjhlkhj<br>y65<br>5876765<br>fdsgfdgf7687576856dgfds

</BODY>
</HTML>
ASKER CERTIFIED SOLUTION
Avatar of READER
READER

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
The absolute best scolling menu bar on the Internet, bar none, is PopUp Menu Creator.

You can download a free version at http://popup.jscentral.com/

It not only offers a vertical scrolling bar but also a horizontal bar. You don't have to do any coding. It provides the coding for you via an outstanding GUI interface.

It runs circles around the menu bar on the website you referenced as an example.

Here are several sites that I am using it on:
http://www.dancesteps.addr.com/
http://www.erhsalum.com/
http://www.jbslider.com
avner..
How can your code work with Netscape4.x?
I got 4.06 and I said..
obj=document.all("moshe");

but did not work...

How can one get around that?
try :
document.layers['moshe']

But you'll need to use other events because onscroll dosen't work in NS4 , and you'll need to use different properties because NS4 dosen't have a x.style propertie.
Avatar of daluu

ASKER

Thanks for all the suggestions. We managed to get the Glassdog scripts working. Anyways, Reader's suggestion was most useful.