﻿document.write('<div id="eMeng" style="width:150px;height:150px;border:1px solid #455690;z-index:99999;left:0px;top:0px;position: absolute;background-color: #c9d3f3;visibility:hidden;overflow:hidden;">')
document.write('	<table style="border:1px solid #ffffff" cellspacing=0 cellpadding=0 width="100%" bgcolor="#afdcf3" border=0>')
document.write('		<tbody>')
document.write('			<tr bgcolor="#6699cc">')
document.write('				<td style="font-weight:normal;font-size:12px;color: #ffffff;padding-left:10px;height:22px;" width="100%" valign="middle">御芳轩女子减肥温馨提示：</td>')
document.write('				<td style="height:22px;" valign="center" align="right" width="19"><span title="关闭" style="cursor:pointer;color:white;font-size:12px;font-weight:bold;margin-right:4px;" onclick="closeDiv()">×</span></td>')
document.write('			</tr>')
document.write('			<tr>')
document.write('				<td colspan="2" style="border:1px solid #6699cc; background:#FFFFFF;height:114px" align="center" valign="top">')
document.write('					<div style="font-size: 12px; padding-bottom: 5px;width: 95%; color: #1f336b;padding-top:5px;height:100%; line-height:1.3;">御芳轩女子减肥美容机构网站正式成立，欢迎大家光临！减肥热线：85776127/13596496773&nbsp; QQ：923817273')
document.write('					</div>')
document.write('				</td>')
document.write('			</tr>')
document.write('		</tbody>')
document.write('	</table>')
document.write('</div>')
<!--
	//alert(document.getElementById("emeng").style.visibility);
	window.onload = getMsg;
	window.onresize = resizeDiv;
	window.onerror = function(){}
//短信提示使用(asilas添加)
	var divTop,divLeft,divWidth,divHeight,docHeight,docWidth,objTimer,i = 0;
	var sSuffix = /msie/.test( navigator.userAgent.toLowerCase() ) ? 'ie' : 'gecko' ;
	var flagWidth;
	function getMsg()
	{
		try{
			divTop = parseInt(document.getElementById("eMeng").style.top,10)
			divLeft = parseInt(document.getElementById("eMeng").style.left,10)
			divHeight = parseInt(document.getElementById("eMeng").offsetHeight,10)
			divWidth = parseInt(document.getElementById("eMeng").offsetWidth,10)
			docWidth = document.documentElement.clientWidth;
			docHeight = document.documentElement.clientHeight;
			if(sSuffix=='ie')
			{
			}
			else
			{
				docWidth=docWidth - 17;
			}
			document.getElementById("eMeng").style.top = parseInt(document.documentElement.scrollTop,10) + docHeight + 10 + 'px';
			document.getElementById("eMeng").style.left = parseInt(document.documentElement.scrollLeft,10) + docWidth - divWidth  + 'px'
			document.getElementById("eMeng").style.visibility="visible"
			objTimer = window.setInterval("moveDiv()",10)
		}
		catch(e){
		}
	}

	function resizeDiv()
	{
		i+=1
		if(i>400) closeDiv() //客户想不用自动消失由用户来自己关闭所以屏蔽这句
		try{
			divHeight = parseInt(document.getElementById("eMeng").offsetHeight,10)
			divWidth = parseInt(document.getElementById("eMeng").offsetWidth,10)
			docWidth = document.documentElement.clientWidth;
			docHeight = document.documentElement.clientHeight;
			document.getElementById("eMeng").style.top = docHeight - divHeight + parseInt(document.documentElement.scrollTop,10) + 'px'
			document.getElementById("eMeng").style.left = docWidth - divWidth + parseInt(document.documentElement.scrollLeft,10) + 'px'
		}
		catch(e){}
	}

	function moveDiv()
	{
		try
		{
			if(parseInt(document.getElementById("eMeng").style.top,10) <= (docHeight - divHeight + parseInt(document.documentElement.scrollTop,10)))
			{
				window.clearInterval(objTimer)
				objTimer = window.setInterval("resizeDiv()",1)
			}
			divTop = parseInt(document.getElementById("eMeng").style.top,10)
			document.getElementById("eMeng").style.top = divTop - 1 + 'px'
		}
		catch(e){}
	}

	function closeDiv()
	{
		document.getElementById('eMeng').style.visibility='hidden';
		if(objTimer) window.clearInterval(objTimer)
	}
-->
