做阻止冒泡处理
<script>
;!function(){
$('.tan').on('click',function(event){
var height = $(window).height(), index = $.layer({
type : 2,
shade : [0.8 , '#000' , true],
shadeClose : true,
border : [!0],
title : ['友情提示:关闭窗口时,请单击两次关闭按钮!',''],
offset : ['25px',''],
area : ['70%', (height - 80)+'px'],
content: $(this).attr('href')
});
event.preventDefault();
event.stopPropagation();
});
}();
</script>
网友评论