Fixed position menu and floating block?

Hi all,

I’m looking to implement both the fixed menu on and the scrolling box on on the same page - can you guys point me in the right direction (article or tut)?

I’ve had a quick browse and can’t really find what I’m looking for.

Many thanks :hohoho:

The most obvious problem with running the two scripts together is that both apply the class “fixed” to the elements that are pinned in position. To prevent this, you could change the class in one script:

nagging-menu.js changed from ‘fixed’ to ‘fixed-side’

    var menu = $('#menu'),
        pos = menu.offset();
            if($(this).scrollTop() > && menu.hasClass('default')){
                menu.fadeOut('fast', function(){
            } else if($(this).scrollTop() <= && menu.hasClass('fixed-side')){
                menu.fadeOut('fast', function(){


and the .fixed selector in style.css to .fixed-side

.fixed-side {
    position: fixed;
    top: -5px;
    left: 0;
    width: 100%;
    box-shadow: 0 0 40px #222;
    -webkit-box-shadow: 0 0 40px #222;
    -moz-box-shadow: 0 0 40px #222;

Apart from this, it would be necessary to see a working example to take it any further.

Thanks for your reply, I will get onto this asap