拖拽图层删除效果 |
|
发起人:piaoling 回复数:1 浏览数:5899 最后更新:2009/3/31 22:45:16 by piaoling |
选择查看 | 搜索更多相关主题 帖子排序: |
piaoling 发表于 2009/3/31 22:44:07
|
拖拽图层删除效果 播放器.html <html> body { } body { <script language="javascript"> var music_list_length=0//播放列表当前位置 //初始化列表 music_all_list[0]='<td id=mu_0 align=left><img src=images/yp03.GIF id="自定义" width=40 height=40 border=0 alt="123自定义"></td>'; </script> <SCRIPT Language ="JAVAScript" src=media.js></script> <tr> <table width="96%" border="0" align="center" cellpadding="0" cellspacing="0"> <tr><td height="1" bgcolor="#D3D4D6"></td></tr> <tr><td height="1" bgcolor="#D3D4D6"></td></tr> <tr> <tr><td height="1" colspan="2" bgcolor="#016F92"></td></tr> <tr> music_show_Marquee(); function music_Marquee() if (music_mar.scrollLeft>(music_all_list.length*45+10)) if (music_mar.scrollLeft%45==0 && music_mar.scrollLeft!=0) music_k++; music_mar.onmousemove=function() var str1 str1="<table height=43 border=0 cellpadding=0 cellspacing=5><tr id=mu>"; music_show.style.enabled = true; music_show.onmouseleave=function music_leave() for (var j=0; j<3; j++) music_all_list.length--; function music_show_Marquee()//滚动加载 music_mar.style.enabled = true; music_mar.innerHTML=str; function showSet(obj) //显示与隐藏层
|
piaoling 发表于 2009/3/31 22:45:16
|
media.js /* 拖拽代码段 */ function creatediv()//建立虚拟层 function _gel(a) function my_move(media,md_all_list) var Frameid = Array()//外层列表 if (media=='MUSIC') if(_gel("mu"))//id为music的外层 if(k) } function drag_move(Fid,md_all_list)//加载层信息 dragid.module = dragid; dragid.onDragStart=function(af,ag) var Mydiv=this.module; Positioning(Mydiv);//确定要移动对象的全屏位置 Mydiv.origNextSibling = Mydiv.nextSibling;//移动到新位置 var VirtualDIV=creatediv(); VirtualDIV.style.left = event.clientX-Mydiv.offsetWidth/2; VirtualDIV.style.height = Mydiv.offsetHeight; VirtualDIV.style.display = "block"; dragid.onDrag=function(af,ag) dragid.onDragEnd=function(af,ag) if (TrashX+25 > DivX && TrashX-5 < DivX && DivY < TrashY+29 && DivY > TrashY-5)//垃圾桶触发范围 } var my_drag= a=my_drag.fixE(a); aa.onDragStart(ac,ab,a.clientX,a.clientY); a=my_drag.fixE(a); creatediv().style.left=af+"px"; function Positioning(a) function Queue(div,m_x,m_y,doi)//队列操作 for(var a=0;a<Frameid.length;a++) if(ai<ad) function div_display(a) function Release(div,aa,ab) var ae=(ac-PagePos(div,true))/ab; return setInterval(function() function PagePos(a,aa)//屏幕位置读取 /* 音频播放代码段 */ function WMPlayer_Next() function WMPlayer_Previous() //保存代码 function getXMLHTTPRequest()
var i=0; |
返回页首↑ |