Fixed that bar at the bottom like Facebook!

Since I’ve started an account on Facebook, I was always fascinated with the bottom fixed application bar. And now I got a chance to hack one for my own and share it, with you guys.

Check out the sample I’ve made: http://ryan.rawswift.com/sandbox/fixed-bottom-bar/

I’ve put some comments on the HTML and CSS code. So, I hope you’ll understand it clearly.

Save and modify it, to fit your need!

Hope this helps!

Update!

Bug Fix:
1. Overlapping scrollbar (vertical and horizontal) on IE7.
2. Page wouldn’t scroll down when the mouse pointer is in a white/blank space on IE7.

The sample page are optimized for 960×600 and higher resolutions. Tested on FF3, IE6, IE7, and IE8.

Download: http://ryan.rawswift.com/sandbox/fixed-bottom-bar/fixed-bar-0.2.tgz

UPDATE – Dec. 15, 2009

Thanks guys! For all the comments and suggestions. Sorry if I couldn’t reply to each and every comments below. Been busy for the past couple of months.

Anyway, I’ve just recently created a new project called jixedbar. It’s a jQuery plugin and has the same effect as seen in the above demo but with some added features like mouse hover effect, rounded corners, text tooltip, and customizable style (partly). It is still under development and currently in beta stage.

You can download the beta version at http://code.google.com/p/jixedbar/downloads/list.

Please try it and send me your comments or suggestions.

*** Compatible in IE6, IE7, IE8, Firefox, and Chrome. (Haven’t yet tested on a Safari browser)

Demo page: http://ryan.rawswift.com/sandbox/jixedbar-0.0.2/demo/

UPDATE – June 24, 2010

Here’s the latest update:

Demo page: http://ryan.rawswift.com/sandbox/jixedbar-0.0.3/demo/

*** Development version 0.0.3

Cheers!

Donation

Support the jixedbar project by donating any amount through PayPal or by simply linking back to jixedbar‘s page over Google Code.


65 thoughts on “Fixed that bar at the bottom like Facebook!

  1. I kinda like your example, but in IE7 I see a couple of extra scrollbars (both horizontal and vertical), how come?

  2. Pingback: New MoMA.org at //nedward.org

  3. So how do you get little windows to pop up in those corresponding menu positions when they are clicked similar to facebook?
    Is there an API that can be used to achieve this effect?
    Great script btw, i am thinking of incorporating it in http://www.theillbeat.com
    Thanks.

  4. Pingback: jstcky: A stick or die JavaScript framework « Bicolano Express by Ryan Yonzon

  5. Very nice little sample, however it seems to overlap the page scroll bars (when they are visible due to content length), the live version on this page itself (in firefox 3) as you reduce the width of the browser pushes the vertical scroll bar off the page completely and the horizontal scroll bar doesn’t appear.

  6. Hi Very nice work , but have you an idea how to make this bar without reload like facebook when you click to a link the bar will not dispear
    thanks

  7. Hello dear i was finding this stuff but it contains a prob here at my pc when i open your sample in Microsoft internet explorer the there is no right scroll bar to scroll the page mean the page appear as fix i can see the bar but cant navigate down please guide me how to fix this issue.
    Regards.
    Hussain

  8. hey, thx, nice app :D
    but one question, where do i have to put this folder into?

    zer0

    PS: sry if you didnt understand me, i’m swiss… ;D

  9. Hi, I copied the html code from the page and pasted it in to MS Frontpage, and started deleting the writing on there and it worked. Lately I’ve tried again and the writing is there but the bar is not and it just shows the list of links. Is it possible for someone to send me the html just for the bar so I can copy and paste it or email me even. Thanks alot, Dan.

  10. hi…
    i’ve downloaded the .tgz file but when i extracted it , it seems empty :(
    please can anyone reupload it.. i really need it as soon as possible.
    thanx

  11. Hi
    I saw similar bar at bottom of a blog but in that bar. But there was an arrow button kind of facility on that bar at the right side of the bar, when you click on that arrow bar gets expanded or collapsed a little. When expanded mode it shows all the links or icons. When collapsed only arrow is shown and bar height gets halved (thinner bar).

    I don’t remember that site and searching hard to find it.

    If you have any idea how to create this hide and seek functionality also in the bottom bar please let me know.

    Best Regards
    divman

  12. At first it didn’t work on my site. Then I changed the “position: absolute” to fixed and it worked beautifully.

    Thanks for the file!

    Nick

  13. There is a problem with this in that if you resize your window so that you reduce the width to less than the width of the bar, your vertical scrollbar disappears.
    This happens with both Firefox v3.5 and IE8. The Facebook bar doesn’t cause this. Nice work however, obviously just needs a small tweak.

  14. Thanks. a simple piece of prototype.
    For ambitious developers,”Try to do the rest of the work yourself ;)

  15. I finally got this running. couple changes
    For nav_menu_wrapper,
    1.Include position:fixed so that the position always floats.
    2. add left:100px or whatever that suits you (for IE7)

    Also comment the body,html if you observe scroll bar missing.Good luck!

  16. Thank you so much for this, it works perfectly, i just needed to turn
    position to fixed in #nav_menu_wrapper
    for people who see that the bar is not in the bottom, just put position:fixed instead of position:absolute; in the first #nav_menu_wrapper.

    But it works perfectly thank you.

  17. Very cool, thanks for sharing. I’ve been wanting to do a similar, basic variation myself for my portfolio.

    I did notice that the scroll wheel is disabled on your site and in your example. I’m just going the through the code now, but didn’t notice it addressed. Does the scroll wheel need to be disabled for this code to work?

    Thx,
    Dave

  18. Excuse me, I meant the scroll wheel “button” is disabled. Not a huge deal but I do use the auto-scroll function occasionally. I guess it’s a PC thing. :)

  19. Hello I put your bottom bar in my site http://www.cartemagictorino.com. Initially it seems to work fine but after few test I noticed that the bar overlap the horizontal scroll bar. So unfortunately is unusable. Is it possibile to compute dinamically the position in order to place the bottom bar on the top of the horizzontal scroll bar ?
    Thank you!

  20. Hi,

    Thanks Ryan for the sample. I’m still pulling my hair out trying to figure out how make it with drop down menu (like the Application in Facebook menu). The drop down CSS menu always drop-down, I can’t get it to drop-upwards. Is there anyway you can show us some light?

    Please, any suggestion.

  21. hi,
    it’s good work, but my probleme is the scroolbar not appear in all the navigateur.!!
    wath’s i can do?
    tnx

  22. Hello. Thank you for the code! I’ve been looking for this source and I want to use it on my website. Can I use this for free?

  23. I’m new to HTML and CSS, I can’t find where to edit the links, for example, if I want to add a google link, how would I do it?

  24. can you please make it into a plugin which can be used in wordpress or a step by Step guide explaining how we can get it to work in WordPress

  25. This has some usability issues. Page Up / Page Down buttons as well as the spacebar buttons doesnt work..

  26. Only one thing that prevents me from using this solution;

    When loading a page with this bar, there’s some accessibility issues. You cant scroll down using spacebar, page down/up or by using the mouse wheel. This is because these keys are relative to the viewport that normally has the scroll bar.

    However, once you click inside the div that actually has the scroll bar, it works. Any way to add focus to the scrolling div trough jQuery?

  27. Thanks for the great fixed footer. it was just what i was looking for. I like it, but the only thing is when I put it on my page, anything that had a css property of absolute becomes fixed on the page. This ruins my template. When I remove the footer, everything becomes absolute again.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>