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

📄 huakuan.js.bak

📁 音乐小偷,免维护版,,, ,,,功能强大
💻 BAK
字号:
var Ofx;
var move_obj = false;
var m_o_fx;
var move_obj_cod;
var move_obj_codt;

function document_onmousemove()
{
 if(!move_obj) return;
 var judger,max;
 if(m_o_fx==1)
 {
   judger = event.clientY-Math.round(move_obj.offsetHeight/2)-Ofx;
   max = move_obj.parentElement.offsetHeight-move_obj.offsetHeight;
 }
 else
 {
   judger = event.clientX-Math.round(move_obj.offsetWidth/2)-Ofx;
   max = move_obj.parentElement.offsetWidth-move_obj.offsetWidth;
 }
 if(judger<0) judger = 0;
 if(judger>max) judger = max;
 if(m_o_fx==1)
 {
   move_obj.style.pixelTop = judger;
 }else
 {
   move_obj.style.pixelLeft = judger;
 }
 if(move_obj_codt!=null)
 {
   eval(move_obj_codt);
 }

}

function document_onmouseup()
{
	document.onmouseup = null;
	document.onmousemove = null;
	move_obj.releaseCapture();
	move_obj = false;
	if(move_obj_cod!=null)
	{
		eval(move_obj_cod);
	}
}

function start_move(b_obj,m_fx,cod,codt)
{
	move_obj = b_obj;
	m_o_fx = m_fx;
	move_obj_cod = cod;
	move_obj_codt = codt;
	if(m_o_fx==1)
	{
		Ofx = event.clientY-event.offsetY;
	}else
	{
		Ofx = event.clientX-event.offsetX;
	}
	move_obj.setCapture(); 
	document.onmouseup = document_onmouseup;
	document.onmousemove = document_onmousemove;
	document_onmousemove();
}

⌨️ 快捷键说明

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