1.html代码:
<div id="jdSmall" style="position: absolute; right: 0px;top :screen.height-450; z-index: 9999;">
<a href="#"><img class="img_piaochuang1" src="">
</a>
<a href="javascript:void(0)" id="ewm-close" style="width:27px; height:21px; position:absolute; right:0; top:0; background:url()) no-repeat right 0;"></a>
</div>
2.js代码:
$(function(){
$("#ewm-close").click(function(){
$(this).parent().hide();
});
//相对固定悬浮窗位置
function scrollx(p) {
var d = document, dd = d.documentElement, db = d.body, w = window, o = d.getElementById(p.id), ie6 = /msie 6/i.test(navig