﻿
lastScrollY1 = 0;
function heartBeat() {
	var diffY;
	if (document.documentElement && document.documentElement.scrollTop)
		diffY = document.documentElement.scrollTop;
	else if (document.body)
		diffY = document.body.scrollTop
	else
	{ }
	//alert(diffY);
	percent = .1 * (diffY - lastScrollY1);
	if (percent > 0) percent = Math.ceil(percent);
	else percent = Math.floor(percent);
	document.getElementById("LeftAd").style.top = parseInt(document.getElementById("LeftAd").style.top) + percent + "px";
	lastScrollY1 = lastScrollY1 + percent;
}
function Show() {//显示层
document.getElementById("LeftAd").style.display = "block";
}
function ShowNo1() {//隐藏两个层
	document.getElementById("LeftAd").style.display = "none";
}
suspendcode12 = "<div id=\"LeftAd\" style=\"position: absolute; display: none;z-index:10000; top: 250px; float: left;text-align: left; left: 10px; width: 300px;\"><div style=\"height: 330px; width: 300px; background-image: url(http://www.milanzx.com/swt/zx.png)!important;background-repeat: no-repeat; _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\'http://www.milanzx.com/swt/zx.png\');_ background-image: none;\"><div style=\"margin-left: 230px; height: 30px; padding-top: 30px;\"><a onclick=\"ShowNo1()\" style=\"position: relative;display: block;cursor:hand; width: 30px; height: 28px;text-indent: -9999px;\">关闭</a></div><div style=\"display: block; margin-left: 10px; line-height: 20px; font-size: 12px;width:260px;margin-top: 80px;\"><font color=\"#000000\" style=\"width: 240px;font-weight:bold;margin-left:10px;font-size: 13px;\">米兰针美 闪耀新颜</font><br /> <font style=\"font-size: 12px; color: #000000;\">&nbsp;&nbsp;米兰针美 闪耀新颜!更多优惠点击详询!</font></div><div style=\"display: block; width: 234px; margin-top: 75px; text-align: left; margin-left: 32px; height: 35px;\"><div style=\"float: left; width: 115px; text-align: left;\"><a href=\'http://zoossoft.milanzx.com/LR/chatwin.aspx?id=LDS50306539\' style=\"position: relative;display: block; width: 115px; height: 35px; text-indent: -9999px;\" target=\"_blank\">接收咨询</a></div><div style=\"float: left; width: 115px; text-align: left;\"><a onclick=\"ShowNo1()\" style=\"position: relative;display: block;cursor:pointer; width: 115px; height: 35px;text-indent: -9999px;\">暂不咨询</a></div></div></div></div>"
document.write(suspendcode12);
window.setInterval("heartBeat()", 1);

lastScrollY = 0;
function phone() {
	var diffY;
	if (document.documentElement && document.documentElement.scrollTop)
		diffY = document.documentElement.scrollTop;
	else if (document.body)
		diffY = document.body.scrollTop
	else
	{ }
	//alert(diffY);
	percent = .1 * (diffY - lastScrollY);
	if (percent > 0) percent = Math.ceil(percent);
	else percent = Math.floor(percent);
	document.getElementById("float_div_1237874225864_679507137").style.top = parseInt(document.getElementById("float_div_1237874225864_679507137").style.top) + percent + "px";
	lastScrollY = lastScrollY + percent;
}
function ShowNo() {//隐藏层 
	document.getElementById("float_div_1237874225864_679507137").style.display = "none";
}

lastScrollYhei = 0;
function hei() {
	var diffY;
	if (document.documentElement && document.documentElement.scrollTop)
		diffY = document.documentElement.scrollTop;
	else if (document.body)
		diffY = document.body.scrollTop
	else
	{ }
	//alert(diffY);
	percent = .1 * (diffY - lastScrollY);
	if (percent > 0) percent = Math.ceil(percent);
	else percent = Math.floor(percent);
	document.getElementById("heiy").style.top = parseInt(document.getElementById("heiy").style.top) + percent + "px";
	lastScrollYhei = lastScrollYhei + percent;
}
function ShowheiNo() {//隐藏层 
	document.getElementById("heiy").style.display = "none";
}



document.writeln('<div id="float_div_1237874225864_679507137" style="position: absolute; display:block;z-index:100000;top:300px;right:0px;width:127px;height:211px;background-image: url(http://www.milanzx.com/swt/phone.jpg);background-repeat: no-repeat;">');
document.writeln('<form name="f" id="f" method="post" action="http://tel.kuaishang.cn/calld.php" target="aa">');
document.writeln('<input type="hidden" name="fromurl" id="call_fromurl" value="http://www.milanzx.com/" />');
document.writeln('<input type="hidden" name="sid" value="2010200912" />');
document.writeln('<input type="hidden" name="did" value="451" />');
document.writeln('<div style="margin-left:105px;"><a href="http://zoossoft.milanzx.com/LR/chatwin.aspx?id=LDS50306539" target="_blank" style="position: relative; display: block; cursor: hand;width:20px; height:17px;text-indent: -9999px;"></a></div>');
document.writeln('<div style=" margin-left:0px;"><a href="http://myself.milanzx.com/" target="_blank" style="position: relative; display: block; cursor: hand;width:127px; height:87px;text-indent: -9999px;"></a></div>');
document.writeln('<div style="margin-top:0px; margin-left:9px!important;margin-left:5px;"><input name="tel" type="text" id="tel" style="width:110px;color:#999;border:0px;background:;cursor:pointer;" onfocus="this.value=\'\'" value="输入电话号码"/></div>');
document.writeln('<div style="margin-left:10px; margin-top:7px !important;margin-top:5px;"><input type="image" src="http://www.milanzx.com/swt/btn.jpg" style="width:108px;" /></div>');
document.writeln('<div style="margin-top:8px;"><a href="http://zoossoft.milanzx.com/LR/chatwin.aspx?id=LDS50306539" target="_blank" style="position: relative; display: block; cursor: hand;width:127px; height:30px;text-indent: -9999px;"></a></div>');
document.writeln('</form><iframe name="aa" id="aa" frameborder="0" width="0" height="0"></iframe>');
document.writeln('</div>');
window.setInterval("phone()", 1);


document.writeln('<script language="javascript" src="http://zoossoft.milanzx.com/js/lsjs.aspx?siteid=lds50306539&amp;float=1"></script>');

window.setTimeout("Show()",15000);/// 15秒显示这个div


