|
本帖最后由 9622315 于 2015-1-18 13:29 编辑
修正了你代码中的排版、定位等错误,精简了部分冗余代码,另外小猫也改为全身像了
- <script language="javascript" type="text/javascript">document.write("<div style='position: fixed; width: 300px; height: 270px; z-index: 10001; bottom: 1px; right: 1px;'><div style='height:30px; background-color:PowDerBlue; text-align: left'><p style='width: 260px; height: 30px; line-height:30px; float:left; margin:0; padding-left:10px; overflow:hidden; color:HotPink; float:16px; font-weight:bold;'>点击图片就送美女:</p><a onclick=this.parentNode.parentNode.style.display='none' style='display:block; height:30px; width:30px; line-height:30px; float:right; font-size:16px; font-weight:bold; background-Silver:Chocolate; color:Red; text-align:center; text-decoration: none;' href='javascript:void(0);'>X</a></div><div style='text-align: center; background-color:white'><a href='http://www.baidu.com'><img style='width: 248px; height: 240px;' src='http://i3.tietuku.com/798bcba81831122et.jpg'></a></div></div>");</script>
复制代码
补充一点,最重要的就是,修正了代码中的元素命名bug,可以屏蔽常见广告拦截软件的过滤。 |
|