Jump to content
xisto Community
Sign in to follow this  
kudmus

Creating A Floating Javascript Docking Menu

Recommended Posts

I have found two scripts. I found one(shown bellow) here that creates a floating box that will follow you down the page when you scroll. I found another one here that creates a docking menu like that of OSX.

floating_box.txt

Now I want to combine these effects to create a docking menu that floats and follows you everywhere you scroll to on the page.
In the above code I change the div class from floatdiv so that it could use the style in the style.css that came with the docking menu. I then got stuck trying to make both JavaScript scripts work on the same div.
I'm appealing to JavaScript gurus out there to help me out on this one.

Share this post


Link to post
Share on other sites

I'd just go with a DIV element that has a fixed position. That'll maintain its position regardless of scroll. Having the DIV shift after scrolling is a nice effect, but not necessary, especially if it collides with other JavaScript on the same page.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.