![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
js
文章平均质量分 53
dlcoco9999
这个作者很懒,什么都没留下…
展开
-
关闭窗口触发事件兼容IE,FIREFOX
function onunload_handler(evt){ var isIE=document.all?true:false; evt = evt ? evt :(window.event ? window.event : null); if(isIE){//IE浏览器 var n = evt.screenX - window.s...原创 2011-09-01 20:04:11 · 150 阅读 · 0 评论 -
JS窗口和父窗口操作
openframe=window.open("editor/"+id+"#","editor"); 获取窗口句柄 在父窗口可以操作子窗口 openframe.(属性,变量,方法) 子窗口操作父窗口 window.opener.(父窗口属性,变量,方法) ...原创 2011-09-01 20:07:15 · 118 阅读 · 0 评论 -
列表拖拽功能
var dragobj={} window.onerror=function(){return false} function on_ini()// 初始化 { String.prototype.inc=function(s){return this.indexOf(s)>-1?true:false};// prototype是系统内置,此处是自行扩展判断一字符串内是否包含另一字...原创 2011-09-23 15:22:54 · 276 阅读 · 0 评论 -
类似点点网标签功能
New Document body{ font-size:12px; } div.tags_com{ border:1px solid black; position:static; width:200px; min-height:100px; float:left; margin:2px; } .input{ ma...2011-09-23 15:24:33 · 98 阅读 · 0 评论 -
$在jquery和js中的冲突
window.$$=function(obj){return typeof(obj)=="string"?document.getElementById(obj):obj;};// 为当前网页添加方法:根据对象ID获取对象 window.$会覆盖jquery中的$,所以改个名字为$$,在js中用就必须为$$,jquery继续为$...原创 2011-09-28 19:24:51 · 99 阅读 · 0 评论