Javascript
meloveself
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
在网站首页两侧增加浮动广告
lastScrollY=0;function heartBeat(){ var diffY;if (document.documentElement && document.documentElement.scrollTop)diffY = document.documentElement.scrollTop;else if (document.body)diffY = document.body转载 2009-12-10 11:32:00 · 1055 阅读 · 0 评论 -
左右两侧浮动广告的关闭按钮的实现
在网页中插入这个函数,其中的object1要改为div的ID名称:function closeDiv(){document.getElementById(object1).style.visibility=hidden;if(objTimer) window.clearInterval(objTimer)}然后在浮动图片上建关闭链接,加入这个: onclick=closeDiv()即可。转载 2009-12-10 11:34:00 · 906 阅读 · 0 评论
分享