โค้ด: เลือกทั้งหมด
if( $(window).width() >= 1024 ){
//M017 fixbug ucp template
$("dl").removeClass("global_unread");
$(document).ready(function () {
var top = $('.position8').offset().top;
// if( $('.sticky_banner').height() <= top) {
$(window).scroll(function (event) {
var y = $(this).scrollTop();
if (y > top) {
$('.position8').addClass('position8_fixed');
$('.befor_sticky_aside').hide(); // fix bug over lab
} else {
$('.befor_sticky_aside').show();
$('.position8').removeClass('position8_fixed');
}
$('.position8').width($('.position8').parent().width());
});
// }
});
}