随笔分类 - JS
摘要:<html><head> <title>拖动行测试</title> <script language="javascript"> var beginMoving=false; function MouseDownToMove(obj){ obj.style.zIndex=1; obj.mouseDownY=event.clientY; obj.mouseDownX=event.clientX; beginMoving=true; obj.setCapture(); }function MouseMoveToMove
阅读全文
摘要:var Browser = new Object();Browser.isMozilla = (typeof document.implementation != 'undefined') && (typeof document.implementation.createDocument != 'undefined') && (typeof HTMLDocument != 'undefined');Browser.isIE = window.ActiveXObject ? true : false;Browser.
阅读全文
摘要:srcElement是设置或获取触发事件的对象使用它的好处是: 例如鼠标滑过一组标签,滑过时变色, 这时就不用document.getElementById("xx").onmouseover=function(){...}这种形式 <div id="a"> <div id='b1'>xxx</div> <div id='b2'>xxx</div> <div id='b3'>xxx</div> </div> 直接
阅读全文

浙公网安备 33010602011771号