<!doctype HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<html>
<head>
<title>DropLayer2</title>
<meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
<meta name="CODE_LANGUAGE" Content="C#">
<meta name="vs_defaultClientScript" content="JavaScript">
<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
<style type="text/css">
div
{
border-right: lightgrey thin solid;
border-top: lightgrey thin solid;
font-weight: bold;
z-index: 2;
text-transform: capitalize;
border-left: lightgrey thin solid;
color: white;
border-bottom: lightgrey thin solid;
background-color: dimgray;
}
</style>
</head>
<body>
<div id="parentDiv" class="parentCss" style="width:100">
<div class="itemCss" onmouseover="InsertDiv(this)">one 1</div>
<div class="itemCss" onmouseover="InsertDiv(this)">two 2</div>
<div class="itemCss" onmouseover="InsertDiv(this)">three 3</div>
<div class="itemCss" onmouseover="InsertDiv(this)">four 4</div>
<div class="itemCss" onmouseover="InsertDiv(this)">five 5</div>
<div class="itemCss" onmouseover="InsertDiv(this)">six 6</div>
<div class="itemCss" onmouseover="InsertDiv(this)">seven 7</div>
<div class="itemCss" onmouseover="InsertDiv(this)">eight 8</div>
<div class="itemCss" onmouseover="InsertDiv(this)">nine 9</div>
<div class="itemCss" onmouseover="InsertDiv(this)">ten 10</div>
</div>
<script language="javascript">
<!--
var obj,obj2;//引发事件对象
var rootNode; //控制对象根节点
var IsDrag=false; //是否抓起
var NullDiv;//空临时层
var x,y;//鼠标与控件的相对坐标
window.onload = Prepare;//窗体加载时委托到Prepare
function Prepare()
{
//生成临时层,并设置其属性
NullDiv = document.createElement("div");
//获得控制对象的根节点元素
rootNode = document.getElementById("parentDiv");
document.onmousemove=MoveIt; //当鼠标在文档上移动时事件委托到MoveIt
document.onmousedown=Drag; //当鼠标按下时事件委托到Drag
document.onmouseup=Release; //当鼠标释放台起时事件委托到Release
}
function Drag()
{
obj = event.srcElement;
x=0;//event.offsetX;
y=0;//event.offsetY;
obj.style.position='absolute';
obj.style.posTop=event.y-y;
obj.style.posLeft=event.x-x;
IsDrag=true;
}
function MoveIt()
{
//window.status = event.x+"|"+event.y+"|"+IsDrag+"|"+x+"|"+y;
if(IsDrag)
{
obj.style.posTop=event.y-y;
obj.style.posLeft=event.x-x;
}
}
function Release()
{
IsDrag=false;
NullDiv.style.display='none';
obj.style.position='';
rootNode.insertBefore(obj,obj2);
}
function InsertDiv(o)
{
if(IsDrag)
{
obj2=o;
NullDiv.style.display='';
NullDiv.style.height='18';
NullDiv.style.width='100';
rootNode.insertBefore(NullDiv,obj2);
}
}
//-->
</script>
</body>
</html>
<hr/>
分享到:
相关推荐
在web页面生成一个live2d...通过一系列的连续图像和人物建模来生成一种类似三维模型的二维图像,对于以动画风格为主的冒险游戏来说非常有用,缺点是Live 2D人物无法大幅度转身,开发商正设法让该技术可显示360度图像。
但唯有一个问题还不够完美,那就是IE9仍然不能实现超级拖拽和收藏夹同步的功能。我们不讨论IE9为何不加入这个看似简单的功能,只能认为微软有自己的考虑,但我们很多人都已经习惯了其他的浏览器中超级拖拽的便利感觉...
C++ Live555 类库实现的网络直播系统。 Live555主要有四个类库: libUsageEnvironment.lib;libliveMedia.lib;libgroupsock.lib;libBasicUsageEnvironment.lib 将这四个类库以及相关的头文件导入VC++2010之后,...
这是使用live555实现的一个推流的小框架,其详细的说明见作者的博客《 使用live555实现实时流的推流服务器》
Windows下利用live555实现H264H265实时流RTSP发送,利用本地文件读入模拟,环境为VS2010。这是对大神代码的整理,可以直接编译运行。源于https://blog.csdn.net/weixinhum/article/details/38067743#comments 环境从...
1、使用FFMPEG进行编码(ffmpeg版本为ffmpeg-5.0) 2、使用LIVE555建立RTSP服务器(live555版本为live.2022.02.07) 实现实时桌面视频流,Visual Studio为Visual Studio 2022版本
live555实现TS码流RTSP传输,工程为VS2008工程
hahaha主要描写的是文档主页的内容,其余的见下期。传资料送积分
live2d.js live2d.js
微软的LiveMesh客户端。LiveMesh提供免费的5G网络存储空间,可实时上传共享,且可以添加多个共享用户,即时修改,即时更新,方便于在不同的办公地点、不同的电脑上办公。
读内存live555读内存(直播)实现,主要是两个修改的cpp文件
V4L2+FFMPEG+live555实现流媒体服务端
live555实现h264码流RTSP传输
微信小程序直播播放页面代码live-player标签,可用于微信小程序直播开发
定制Linux LiveCD的研究与实现.pdf
If you’ve been putting off the idea of getting your business on the Web or are just getting started in the business world and want a fast, inexpensive starting point, Microsoft Office Live Small ...
live555开源的代码只能用于视频的点播,不能用于直播,这里进行了详细的实现直播进行的修改
Windows下利用live555实现H264实时流RTSP发送,利用本地文件读入模拟,环境为VS2013。
中控 指纹仪 ZKFinger SDK live10R、live20R、live20M二次开发,包含windows版本与linux版本
采用live555和 ffmpeg结合,通过ffmpeg获取文件视频流(mp4等)或者网络流(rtsp,rtmp等),利用live555 rtsp服务器进行转发。 本例通过ffmpeg实现了两路流的接收和转发,音话同步。 1.获取本地文件1.mp4,然后转发成:...