层的拖动
来源:互联网 发布:七天教育网络查分 编辑:程序博客网 时间:2024/05/17 06:27
$("#TB_window").css("position","absolute");
$("#TB_window").append("<div id='divtop' style='cursor:move;'><div id='TB_title'><div id='TB_ajaxWindowTitle'>"+caption+"</div><div id='TB_closeAjaxWindow'><a href='#' id='TB_closeWindowButton'><img src='"+tad_close+"'></a></div></div><div id='TB_ajaxContent' style='width:"+ajaxContentW+"px;height:"+ajaxContentH+"px'></div></div>");
var x=0;
var y=0;
var check=false;
$(function(){$('#divtop').mousedown(function(evt){
check=true;
x=evt.pageX-parseInt($('#TB_window').css('left'),10);
y=evt.pageY-parseInt($('#TB_window').css('top'),10);
});});
$(function(){$(document).mousemove(function(evte){
if(!check) return false;
$('#TB_window').css('top',evte.pageY-y);
$('#TB_window').css('left',evte.pageX-x);
});});
$(function(){$(document).mouseup(function(){
check=false;
});});
- 可拖动的层
- 层的拖动
- 可拖动的层
- 层的拖动
- js层的拖动
- iGoogle的模块拖动层拖动
- 最简单的拖动层
- JS拖动层的实现
- javascript实现层的拖动
- DIV层拖动的JavaScript
- DIV层拖动的实现
- 完美的JsDiv拖动层
- 自由拖动的div层
- js弹层和层的拖动
- 拖动层
- 拖动层
- 层拖动
- 拖动层
- Using Queue
- 基础:覆盖
- 如何获取尚未开票信息(包括交货单、销售订单)
- 网站设计八个基本步骤
- Word中如何将多级列表与标题样式关联起来
- 层的拖动
- 浅析C# Dispose方法的实现
- android 自定义title bar
- POJ 2151 Check the difficulty of problems DP
- 获取汉字拼音
- 使用Flex Bison 和LLVM编写自己的编译器
- About channels and endpoints
- 技术文章该如何写
- ibatis与hibernate有什么不同