Authored by whb

调整flash宽度

... ... @@ -357,14 +357,12 @@ define('yohood', function(require, exports) {
postSwitch();
}, 5000);
})
$('.side-related-tab').on('click', 'a', function() {
nowIndex = $(this).index();
if ($(this).hasClass('current')) return;
$(this).addClass('current').siblings().removeClass('current');
$('.side-related-list').hide().eq(nowIndex).show();
});
relatedTop = $('.side-related-post').offset().top;
$(window).on('scroll', function() {
relatedTop = $('.app-download').offset().top + $('.app-download').outerHeight();
... ... @@ -380,6 +378,18 @@ define('yohood', function(require, exports) {
$('.side-related-post').removeAttr('style');
}
});
//设置flash宽度
$(".text-body").find("object[class=content-web-flash]").each(function()
{
if(parseInt($(this).attr("width")) > 650 || parseInt($(this).css("width")) > 650) {
$(this).css({width:"650px"});
}
});
$(".text-body").find("embed").each(function() {
if(parseInt($(this).attr("width")) > 650 || parseInt($(this).css("width")) > 650) {
$(this).css({width:"650px"});
}
});
}
//详情页资讯
... ...