开发者

jQuery Equal Height Columns

开发者 https://www.devze.com 2023-03-27 18:42 出处:网络
http://shoes4school.project-x.me/get-involved.html Can someone please tell me what i\'m doing wrong the the jQuery column faux... I can not get it开发者_如何转开发 to work after trying several differ

http://shoes4school.project-x.me/get-involved.html

Can someone please tell me what i'm doing wrong the the jQuery column faux... I can not get it开发者_如何转开发 to work after trying several different methods...

The code i'm using is... my url is above

$j(".content-block").height(Math.max($("#right").height(), $(".content-block").height()));


How to faux columns on webpage

(function($){
// add a new method to JQuery

$.fn.equalHeight = function() {
   // find the tallest height in the collection
   // that was passed in (.column)
    tallest = 0;
    this.each(function(){
        thisHeight = $(this).height();
        if( thisHeight > tallest)
            tallest = thisHeight;
    });

    // set each items height to use the tallest value found
    this.each(function(){
        $(this).height(tallest);
    });
}
})(jQuery);


Firebug show this error :

preloadImages is not defined
 preloadImages([ 
0

精彩评论

暂无评论...
验证码 换一张
取 消