﻿// JavaScript Document
			
window.onload = getMsg;
window.onresize = resizeDiv;
window.onerror = function(){}
var divTop,divLeft,divWidth,divHeight,docHeight,docWidth,objTimer,i = 0;
function getMsg()
{
try{
divTop = parseInt(document.getElementById("eMeng1").style.top,10)
divLeft = parseInt(document.getElementById("eMeng1").style.left,10)
divHeight = parseInt(document.getElementById("eMeng1").offsetHeight,10)
divWidth = parseInt(document.getElementById("eMeng1").offsetWidth,10)
docWidth = document.body.clientWidth;
docHeight = document.body.clientHeight;
document.getElementById("eMeng1").style.top = parseInt(document.body.scrollTop,10) + docHeight + 10;//  divHeight
document.getElementById("eMeng1").style.left = parseInt(document.body.scrollLeft,10) + docWidth - divWidth
document.getElementById("eMeng1").style.visibility="visible"
objTimer = window.setInterval("moveDiv()",5)
}
catch(e){}
}
function resizeDiv()
{
i+=1
//if(i>1800) closeDiv()   //如果想不自动消失由用户来自己关闭就删除这句
try{
divHeight = parseInt(document.getElementById("eMeng1").offsetHeight,10)
divWidth = parseInt(document.getElementById("eMeng1").offsetWidth,10)
docWidth = document.body.clientWidth;
docHeight = document.body.clientHeight;
document.getElementById("eMeng1").style.top = docHeight - divHeight + parseInt(document.body.scrollTop,10)
document.getElementById("eMeng1").style.left = docWidth - divWidth + parseInt(document.body.scrollLeft,10)
}
catch(e){}
}
function moveDiv()
{
try
{
if(parseInt(document.getElementById("eMeng1").style.top,10) <= (docHeight - divHeight + parseInt(document.body.scrollTop,10)))
{
window.clearInterval(objTimer)
objTimer = window.setInterval("resizeDiv()",1)
}
divTop = parseInt(document.getElementById("eMeng1").style.top,10)
document.getElementById("eMeng1").style.top = divTop - 1
}
catch(e){}
}
function closeDiv()
{
document.getElementById('eMeng1').style.visibility='hidden';
if(objTimer) window.clearInterval(objTimer)
}
document.write("<DIV id='eMeng1' style='BORDER-RIGHT: #455690 1px solid; BORDER-TOP: #a6b4cf 1px solid; Z-INDEX:99999; LEFT: 0px; VISIBILITY: hidden; BORDER-LEFT: #a6b4cf 1px solid; WIDTH: 200px; BORDER-BOTTOM: #455690 1px solid; POSITION: absolute; TOP: 0px; HEIGHT:auto; BACKGROUND-COLOR: #c9d3f3'>");
document.write("<TABLE style='BORDER-TOP: #ffffff 1px solid; BORDER-LEFT: #ffffff 1px solid' cellSpacing=0 cellPadding=0 width=100% HEIGHT=100% bgColor=#ffffff border=0>");
document.write("<TBODY><TR bgColor=#6699cc><TD style='font-size: 12px; background-image: url(''); color: #0f2c8c' width=30 height=10></TD>");
document.write("<TD style='font-weight: normal; font-size: 12px; background-image: url(''); color: #ffffff; padding-left: 6px; padding-top: 2px' vAlign=bottom width=100% align=left><font color=#ffffff>&nbsp;网站温馨提示</font></TD>");
document.write("<TD style='background-image: url(''); padding-right: 2px; padding-top: 2px' vAlign=center align=right width=19><span title=关闭 style='CURSOR: hand;color:white;font-size:16px;font-weight:bold;margin-right:4px;' onclick=closeDiv() >×</span><!--<IMG title=关闭 style='CURSOR: hand' onclick=closeDiv() hspace=3 src=''>--></TD>");
document.write("</TR><TR><TD style='background-image: url(''); padding-right: 1px; padding-bottom: 1px' colSpan=3  align=left>");
document.write("<DIV style='BORDER-RIGHT: #b9c9ef 1px solid; PADDING-RIGHT: 2px; BORDER-TOP: #728eb8 1px solid; PADDING-LEFT: 8px; FONT-SIZE: 12px; PADDING-BOTTOM: 13px; BORDER-LEFT: #728eb8 1px solid; WIDTH: 100%; COLOR: #1f336b; PADDING-TOP: 12px; BORDER-BOTTOM: #b9c9ef 1px solid; HEIGHT: 100%'>");
document.write("<P align=center><img src=/images/serviesonline.gif  onClick=\"javascript:window.open(\'http:\/\/b.qq.com\/webc.htm?new=0&amp;sid=800015523&amp;o=b.qq.com&amp;q=1\', \'_blank\', \'height=502, width=644,toolbar=no,scrollbars=no,menubar=no,status=no\');\" ></p>");
document.write("<p>①.汇款后编辑<br><FONT color=#3300ff>汇款银行</FONT><FONT color=#ff0033>+</FONT><FONT color=#6600ff>金额</FONT><FONT color=#ff0033>+</FONT><FONT color=#3300ff>定单号</FONT>短信发送到:<FONT color=#ff3300>13818932008</FONT>(不回复)当晚发货</p>");
document.write("<P>②.能搜索到的编号有货,可购买</p>");
document.write("<P>③.当晚8点发货,9点后登陆会员帐号,在我的订单中看到货运单号</p>");
document.write("<P>④.<FONT color=red>好消息！春节促销活动:</FONT>从1月22日起,购物你将就有机会免运费-<a href=http://www.mty.org.cn/Dress-News-433.html><font color=red>请点击这里查看</font></a></p>");
document.write("<P>⑤.网店<a href=http://www.mty.org.cn/Dress-News-63.html><font color=red>数据包下载</font></a>请点击这里查看下载.</p>");
document.write("<p>021-51877273&nbsp;&nbsp;欢迎新老客户光临.</P>");
document.write("</div></TD></TR></TBODY></TABLE></DIV>");