够大
').load(function() {
++cnt;
if( cnt === totalImgs ) {
$imgs.show();
$container.montage({
fillLastRow : true,
alternateHeight : true,
alternateHeightRange : {
min : 150,
max : 240
}
});
}
}).attr('src',$img.attr('src'));
});
});
$(document).ready(function(){
//gotop
$(window).scroll(function() {
if ($(window).scrollTop() > 300) {
$('.back-to-top').fadeIn(800);
} else {
$('.back-to-top').fadeOut(800);
}
});
$(".back-to-top").click(function() {
$('body,html').animate({
scrollTop: 0
},
1000);
return false;
});
});
function checkbrowse() {
var ua = navigator.userAgent.toLowerCase();
var is = (ua.match(/\b(chrome|opera|safari|msie|firefox)\b/) || ['', 'mozilla'])[1];
var r = '(?:' + is + '|version)[\\/: ]([\\d.]+)';
var v = (ua.match(new RegExp(r)) || [])[1];
return {
'is': is,
'ver': v
}
}