There's no violin in Firefox.



  • He did a scrip that records footer, but he doesn't want to work in Firefox.
    Maybe who's gonna tell you what to change to make the scrupt work cross-brauser.

    $(window).bind("load", function(event) {
    

    var footerHeight = 0,
    footerTop = 0,
    $footer = $("#footer");

    positionFooter();

    function positionFooter() {

    footerHeight = $footer.height();
    footerTop = ($(window).scrollTop()+$(window).height()-footerHeight)+"px";
    
    if ( ($(document.body).height()+footerHeight) < $(window).height()) {
        $footer.css({
            position: "absolute",
            top: footerTop
        })
    } else {
        $footer.css({
            position: "static"
        })
    }
    

    }

    $(window)
    .scroll(positionFooter)
    .resize(positionFooter)
    });



  • Call a function after her announcement.

    $(window).bind("load", function(event) {
    

    var footerHeight = 0,
    footerTop = 0,
    $footer = $("#footer");

    function positionFooter() {

    footerHeight = $footer.height();
    footerTop = ($(window).scrollTop()+$(window).height()-footerHeight)+"px";
    
    if ( ($(document.body).height()+footerHeight) < $(window).height()) {
        $footer.css({
            position: "absolute",
            top: footerTop
        })
    } else {
        $footer.css({
            position: "static"
        })
    }
    

    }

    positionFooter();

    $(window)
    .scroll(positionFooter)
    .resize(positionFooter)
    });




Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2