![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
js
文章平均质量分 65
tangdonnaui
这个作者很懒,什么都没留下…
展开
-
有关iframe自适应
先附上代码,详细查看注释部分. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <...原创 2009-09-26 15:40:00 · 88 阅读 · 0 评论 -
收藏/设为主页js代码
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-e2009-04-14 14:39:46 · 89 阅读 · 0 评论 -
新弹出window.open窗口
借此收藏一个弹出式的通知窗口,借以后使用。 <a style="cursor: pointer;" onclick='window.open ("*.html", "new", "height=800, width=800, toolbar=no, menubar=no, scrollbars=yes, resizable=ye...2009-11-11 11:32:32 · 79 阅读 · 0 评论 -
新闻间隔滚动效果
标记一下来。 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> &am原创 2009-12-01 10:45:40 · 81 阅读 · 0 评论 -
单击弹出遮盖层
一个 js遮盖层,用于弹出提示信息,介绍等。2009-12-14 17:05:28 · 68 阅读 · 0 评论 -
map效果
一个完全用js写的一个map效果原创 2009-12-14 17:22:33 · 80 阅读 · 0 评论 -
当页面加载出现瞬间空白时
正常情况下,文件会被写到head区域,不管本页面用得到用不到就要加载,这种方式会造成一次性请求数过多加大block的时间,也容易造成文件字节过大。 延迟加载的方案是通过js在dom需要的位置load文件,比如一些需要用户触发才展示的组件,日历选择,弹出框等。 function loadScript(url, callback){ var script = document...原创 2009-08-14 13:53:35 · 88 阅读 · 0 评论 -
一个左侧收缩效果
一个完整的左侧收缩效果,作为收藏版。 关键点就是要看我们js的操作能力。详细的查看附件里面的demo2009-08-26 15:06:31 · 72 阅读 · 0 评论 -
图片、文字左右上下滚动
友情链接:http://www.popub.net/script/MSClass.html 网上查到的,感觉挺实用的,所以摘抄了写来,以防以后使用。 局限性: 容器内仅允许用图片<img>或者带链接的图片<a><img></a>的形式,并需要禁止其自动换行。同时不能使用li标签 使用手册: 1.记得在head头部添加...原创 2009-09-04 14:55:43 · 106 阅读 · 0 评论