Jquery.Messager插件
右下角彈出窗口
1.關(guān)于頁面過長,彈出頁面無法在右下角
var topHeight = document.documentElement.scrollTop + document.documentElement.clientHeight – this.layer.height;
top:topHeight +”px” 就可以解決
2. 不隨鼠標(biāo)下移
$(window).scroll( function() {
var topHeight = document.documentElement.scrollTop + document.documentElement.clientHeight – this.layer.height;
$(”#message”).css(”top”,topHeight+”px”);
});
就可以解決
DEMO 下載
如對本文有疑問,請?zhí)峤坏浇涣髡搲?,廣大熱心網(wǎng)友會(huì)為你解答?。?點(diǎn)擊進(jìn)入論壇