⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dragpane.js

📁 用最近的dojo1.2.1制作前端的ajax购书网站
💻 JS
字号:
/*	Copyright (c) 2004-2008, The Dojo Foundation All Rights Reserved.	Available via Academic Free License >= 2.1 OR the modified BSD license.	see: http://dojotoolkit.org/license for details*/if(!dojo._hasResource["dojox.layout.DragPane"]){dojo._hasResource["dojox.layout.DragPane"]=true;dojo.provide("dojox.layout.DragPane");dojo.require("dijit._Widget");dojo.declare("dojox.layout.DragPane",dijit._Widget,{invert:true,postCreate:function(){this.inherited(arguments);this.connect(this.domNode,"onmousedown","_down");this.connect(this.domNode,"onmouseup","_up");},_down:function(e){var t=this.domNode;dojo.style(t,"cursor","move");this._x=e.pageX;this._y=e.pageY;if((this._x<t.offsetLeft+t.clientWidth)&&(this._y<t.offsetTop+t.clientHeight)){dojo.setSelectable(t,false);this._mover=this.connect(t,"onmousemove","_move");}},_up:function(e){dojo.setSelectable(this.domNode,true);dojo.style(this.domNode,"cursor","pointer");this.disconnect(this._mover);},_move:function(e){var _5=this.invert?1:-1;this.domNode.scrollTop+=(this._y-e.pageY)*_5;this.domNode.scrollLeft+=(this._x-e.pageX)*_5;this._x=e.pageX;this._y=e.pageY;}});}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -