📄 js1.js
字号:
//+++++++++++++++++++++++++++++++++++++++版权信息+++++++++++++++++++++++++++++++++++++++++++++
// SKYMUSIC.CMS(IV) v4.0 Build 0706
// (C)Copyright 1999-2007 SkyMusic.Cms , Design by Liu.
// Homepage : http://www.verycode.cn
// E-Mail : exobud@hanmail.net
// QQ : 497533769 (注明:购买音乐程序)
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
function songword(id)
{
window.open('../User/Geci.asp?id='+id,'263musicword','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=yes,width=350,height=450,top=130,left=300');
}
function down(id)
{
window.open('../User/Down.asp?id='+id,'263musicdown','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=yes,width=488,height=510,top=180,left=300');
}
function CheckOthers(form)
{
for (var i=0;i<form.elements.length;i++)
{
var e = form.elements[i];
if (e.checked==false)
{
e.checked = true;
}
else
{
e.checked = false;
}
}
}
function CheckAll(form)
{
for (var i=0;i<form.elements.length;i++)
{
var e = form.elements[i];
e.checked = true
}
}
//加入以下代码
function dismusic(id)
{
var val = "";
if(isNaN(document.all.id.length)==true)
{
if (document.getElementById("id").checked)
val = document.getElementById("id").value;
}
else
{
for(var i=0;i<document.all.id.length;i++)
{
var chk = document.all.id[i];
if(chk.checked)
val += chk.value+",";
}
}
if(val=='')
{
alert("没有选择任何音乐!");
}
else
{
var ourl="../../player/?id="+val;
window.open(ourl,'xPlayer');
}
}
function dismusic_index()
{
var val = "";
for(var i=0;i<document.all.id.length;i++)
{
var chk = document.all.id[i];
if(chk.checked)
val += chk.value+",";
}
var ourl="../../player/?id="+val;
window.open(ourl,'xPlayer');
}
function UtfToGb(xBody)
{
var Rec=new ActiveXObject("ADODB.RecordSet");
Rec.Fields.Append("DDD",201,1);
Rec.Open();
Rec.AddNew();
Rec(0).AppendChunk(xBody);
Rec.Update();
var HTML=Rec(0).Value;
Rec.Close();
delete Rec;
return(HTML);
}
//ajax
function sendRequest(sndStr) {
var httpRequest=null;
if(window.XMLHttpRequest)
{
//Mozilla 浏览器
httpRequest = new XMLHttpRequest();
}
else if (window.ActiveXObject)
{
var msxmls = new Array('Msxml2.XMLHTTP.5.0','Msxml2.XMLHTTP.4.0','Msxml2.XMLHTTP.3.0','Msxml2.XMLHTTP','Microsoft.XMLHTTP');
for (var i = 0; i < msxmls.length; i++)
{
try
{
httpRequest = new ActiveXObject(msxmls[i]);
}catch (e){}
}
}
if (httpRequest != null)
{
httpRequest.open("GET", sndStr, false);
httpRequest.send(null);
if (httpRequest.readyState == 4)
{
// 判断对象状态
if (httpRequest.status == 200)
{
// 信息已经成功返回,开始处理信息
return(httpRequest.responseBody);
}
else
{
//页面不正常
//alert("您所请求的页面有异常。");
return (false);
}
}
else
{
//alert("loading...")
}
}
else
{
alert("你的浏览器不支持XMLHttpRequest对象");
return (false);
}
}
//取得传值的函数
function QueryString(qs)
{
s = location.href;
s = s.replace("?","?&").split("&");
re = "";
for(i=1;i<s.length;i++)
{
if(s[i].indexOf(qs+"=")==0)
{
re = s[i].replace(qs+"=","");
}
}
return re;
}
function Trim(strValue)
{
return strValue.replace(/^\s*|\s*$/g,"");
}
function SetCookie(CookieName,oValue,oTime)
{
var expireDate = new Date();
var lefttime = 1000 * (3600 * 24) * oTime;
expireDate.setTime (expireDate.getTime() + lefttime);
oValue = oValue.replace(/\=/g,"-");
document.cookie = Trim(CookieName +"="+oValue+"" + ";expires = "+expireDate.toGMTString()+";");
}
function GetCookie(sName)
{
var aCookie = document.cookie.split(";");
for (var i=0; i < aCookie.length; i++)
{
var aCrumb = aCookie[i].split("=");
if (sName == Trim(aCrumb[0]))
{
return unescape(aCrumb[1]);
}
}
return null;
}
try{
var UserID = QueryString("UserID");
if (UserID!==""&&isNaN(UserID)==false)
{
var expireDate = new Date();
var EpURL = "http://"+document.domain+"/user/ep.asp?UserID="+UserID+"&t="+expireDate.getTime();
sendRequest(EpURL);
}
}
catch(e){}
try{
var uUserID = GetCookie("UserID");
if (uUserID!==""&&isNaN(uUserID)==false)
{
uUserID = "&UserID=" + uUserID;
}
else
{
uUserID = "";
}
}
catch(e){}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -