<!--QQ在线交谈代码开始 -->
function SendMSNMessage(name)
{
 //Send a message through MSN , only for IE
 //and you must have installed MSN or Window Message
 MsgrObj.InstantMessage(name); 
}
function AddMSNContact(name)
{
 //Add a people to MSN , only for IE
 //and you must have installed MSN or Window Message
 MsgrObj.AddContact(0, name);
}
<!--MSN在线交谈代码结束,后台直接调用,问题:MSN自己会出错 -->

var imgheight
document.ns = navigator.appName == "Netscape"
window.screen.width>800 ? imgheight=200:imgheight=200	//广告与页面顶部的距离

var rightAd=170	//右边广告与页面右边的距离
var leftAd=3	//左边广告与页面左边的距离

function myload()
{
	if (navigator.appName == "Netscape")
	{
		document.dangdang.pageY=pageYOffset+imgheight;
		document.dangdang.pageX=+window.innerWidth-rightAd;
		mymove();
	}
	else
	{
		dangdang.style.top=document.body.scrollTop+imgheight;
		dangdang.style.left=document.body.offsetWidth-rightAd;
		mymove();
	}
}

function mymove()
{
	if(document.ns)
	{
		document.dangdang.top=pageYOffset+imgheight;
		document.dangdang.left=pageXOffset+window.innerWidth-rightAd;
		setTimeout("mymove();",50)
	}
	else
	{
		dangdang.style.top=document.body.scrollTop+imgheight;
		dangdang.style.left=document.body.scrollLeft+document.body.offsetWidth-rightAd;
		setTimeout("mymove();",50)
	}
}

function myload2()
{
	if (navigator.appName == "Netscape")
	{
		document.dangdang2.pageY=pageYOffset+imgheight;
		document.dangdang2.pageX=+leftAd;
		mymove2();
	}
	else
	{
		dangdang2.style.top=document.body.scrollTop+imgheight;
		dangdang2.style.left=document.body.scrollLeft+leftAd;
		mymove2();
	}
}

function mymove2()
{
	if(document.ns)
	{
		document.dangdang2.top=pageYOffset+imgheight;
		document.dangdang2.left=pageXOffset+leftAd;
		setTimeout("mymove2();",50)
	}
	else
	{
		dangdang2.style.top=document.body.scrollTop+imgheight;
		dangdang2.style.left=document.body.scrollLeft+leftAd;
		setTimeout("mymove2();",50)
	}
}



function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true)

function closeADS(Obj)
{
	eval(Obj).innerHTML="";
}




if (navigator.appName == "Netscape")//如果浏览器是 Netscape
{
	//document.write("<layer id=dangdang top=300 width=80 height=88><EMBED src='http://ad4.sina.com.cn/zhlx/lg-0417-hpright.swf' quality=high  WIDTH=80 HEIGHT=80 TYPE='application/x-shockwave-flash' wmode=opaque></EMBED></layer>");//最右边
	//document.write("<layer id=dangdang2 top=300 width=80 height=88><EMBED src='http://ad4.sina.com.cn/zhlx/lg-0417-hpright.swf' quality=high  WIDTH=80 HEIGHT=80 TYPE='application/x-shockwave-flash' wmode=opaque></EMBED></layer>");//最左边
	//myload();
	//myload2();
}
else//如果浏览器是 IE
{
	document.write("<div id='dangdang' style='position: absolute;width:100;top:0;left:0;visibility: visible;z-index: 1'>")
	document.write("<TABLE WIDTH=150 BORDER=0 CELLPADDING=0 CELLSPACING=0>")
	document.write("<TR>")
	document.write("<TD>")
	document.write("<IMG SRC='images/quickLink_01.jpg' WIDTH=150 HEIGHT=31 ALT=''></TD>")
	document.write("</TR>")
	document.write("<TR>")
	document.write("<TD height='100' background='images/quickLink_02.jpg'><div align='center'>MSN<br><a href='msnim:chat?contact=bayerlu@hotmail.com' target='_blank'><img src=images/msn.jpg border='0'></a><br>SKYPE<br><a href='skype:mfwear?call' onclick='return skypeCheck();'><img src=http://mystatus.skype.com/smallclassic/mfwear style='border: none;' alt='Call me!' /></a><br><br><a href='skype:mfunderwear?call' onclick='return skypeCheck();'><img src=http://mystatus.skype.com/smallclassic/mfunderwear style='border: none;' alt='Call me!' /></a></a>")
	document.write("</div><br></TD>")
	document.write("</TR>")
	document.write("<TR>")
	document.write("<TD>")
	document.write("<IMG SRC='images/quickLink_03.jpg' WIDTH=150 HEIGHT=12 ALT=''></TD>")
	document.write("</TR>")
	document.write("</TABLE>");
	document.write("</div>");//最右边


	
	myload();
	//myload2();
}


