function QueryString(sName)
{
var sSource = String(window.document.location);
var sReturn = "";
var sQUS = "?";
var sAMP = "&";
var sEQ = "=";
var iPos;
iPos = sSource.indexOf(sQUS);
var strQuery = sSource.substr(iPos, sSource.length - iPos);
var strLCQuery = strQuery.toLowerCase();
var strLCName = sName.toLowerCase();
iPos = strLCQuery.indexOf(sQUS + strLCName + sEQ);
if (iPos == -1)
{
iPos = strLCQuery.indexOf(sAMP + strLCName + sEQ);
if (iPos == -1)
return "";
}
sReturn = strQuery.substr(iPos + sName.length + 2,strQuery.length-(iPos + sName.length + 2));
var iPosAMP = sReturn.indexOf(sAMP);
if (iPosAMP == -1)
return sReturn;
else
{
sReturn = sReturn.substr(0, iPosAMP);
}
return sReturn;
}
Function str2asc(strstr)
str2asc = hex(asc(strstr))
End Function
Function asc2str(ascasc)
asc2str = chr(ascasc)
End Function
function UrlEncode(str){
var ret="";
var strSpecial="!#$%&''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''()*+,/:;<=>?[]^`{|}~%";
for(var i=0;i 0x7f){
ret+="%"+c.slice(0,2)+"%"+c.slice(-2);
}else{
if(chr==" ")
ret+="+";
else if(strSpecial.indexOf(chr)!=-1)
ret+="%"+c.toString(16);
else
ret+=chr;
}
}
return ret;
}
function UrlDecode(str){
var ret="";
for(var i=0;i0x7f){
ret+=asc2str(parseInt("0x"+asc+str.substring(i+4,i+6)));
i+=5;
}else{
ret+=asc2str(parseInt("0x"+asc));
i+=2;
}
}else{
ret+= chr;
}
}
return ret;
}
function www_helpor_net(offset)
{
var endstr=document.cookie.indexOf("&",offset);
if(endstr==-1){
endstr=document.cookie.indexOf(";",offset);
if(endstr==-1)
endstr=document.cookie.length;
}
return UrlDecode(document.cookie.substring(offset,endstr));
}
function GetCookie(name)
{
var arg=name+"=";
var alen=arg.length;
var clen=document.cookie.length;
var i=0;while(i
| |
|
带着新年的祝福 迎来了元宵佳节
在这花好月圆夜 送给你一轮明月
邀君共饮太平酒 元宵良景须尽欢
| |
var flag=0;
function abc(){
flag=1;
}
function check(obj){
if (obj.stra.value.length>20) {
alert(''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''太长'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''');
return false;
}
if (obj.stra.value.length==0) {
alert(''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''还没填姓名呀'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''');
return false;
}
if (obj.stra1.value.length>20) {
alert(''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''太长'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''');
return false;
}
if (obj.stra1.value.length==0) {
obj.stra1.value="人到中年";
}
var url ="http://zhaoyadong88.hongbage.net/auto/data/19537/detail.php?thisid=45614"+"?name="+escape(obj.stra.value)+"&cname="+escape(obj.stra1.value);
obj.stra2.value=url;
window.clipboardData.setData("Text",url);
if(flag==0)
alert(''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''网址已生成并替您复制好了,快发给您的朋友吧!'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''');
else if(flag==1)
window.location.replace(url);
return false;
}
|
|
| |
| | |
document.oncontextmenu=new Function("event.returnValue=false;");
| |
|
|