可实现任意拖动,有标题栏功能 var moveFlag = 0;//拖曳是否开始(0:否,1:是) var mouseBeginX = 0;//鼠标的起始x座标 var mouseBeginY = 0;//鼠标的起始y座标 var modeBeginTop = 0;//拖曳对象当前的top值 var modeBeginLeft = 0;//拖曳对象当前的left值 /// 鼠标按下事件 function selectBegin(e){ move Flag = 1; e.setCapture()
function DisplayClrDlg(display) { var clrPanel = document.getElementById("colorpanel"); if (display) { var left = document.body.scrollLeft + event.clientX; var top = document.body.scrollTop + event.clientY; if (event.clientX+clrPanel.style.pixelWidt
var obj,sid;//全局变量 $(document).ready(function() { //看着DIV的样式(位置 ,高度,) var stock=$("#stock").css("border","1px solid black") .width("150px").css("position","absolute") .css("z-index","99").css("background-color","blue") .css("color","yellow");//隐藏 st