|
var strCookie=new String();
strCookie=unescape(document.cookie);
strTT="cookie1="
if(strCookie.indexOf(strTT)>=0)
{
var strT1=new String();
var strS=new String();
var arrStr=new Array()
strT1=strCookie.substring(strCookie.indexOf(strTT) + strTT.length)
arrStr=strT1.split("&");
for(var i=0;i<arrStr.length;i++)
{
strS=arrStr[i];
switch(strS.substring(0,strS.indexOf("=")))
{
case "mm1": alert("Username===" + strS.substring(strS.indexOf("=")));break
case "mm2": alert("The nickname is ===" + strS.substring(strS.indexOf("=")));break
case "mm3": alert("Pen name is ===" + strS.substring(strS.indexOf("=")));break
}
}
} |
|