![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
JAVASCRITP
zinger198208
淡淡人生
展开
-
JavaScript实现DIV拖动效果
具体步骤: 1.在对象(层)上按下鼠标时,先捕获到需要拖曳的对象,然后获取或设置该对象的相关属性。 obj=event.srcElement obj.setCapture() z=obj.style.zIndex obj.style.zIndex=100 x=event.offsetX y=event.offsetY down=true 2.开始拖曳时,原创 2012-11-09 17:18:36 · 532 阅读 · 0 评论 -
JS COOKIE操作通用方法
COOKIES 操作通用javascript // Copyright (c) 2012 Florian H., https://github.com/js-coder https://github.com/js-coder/cookie.js !function (document, undefined) { var utils = { // Is the given value a原创 2012-11-06 09:51:18 · 548 阅读 · 0 评论