<Script language="javascript">
          document.write('<DIV id=eMeng style="BORDER-RIGHT: #455690 1px solid; BORDER-TOP: #a6b4cf 1px solid; Z-INDEX:99999; LEFT: 120px; VISIBILITY: hidden; BORDER-LEFT: #a6b4cf 1px solid; WIDTH: 265px; BORDER-BOTTOM: #455690 1px solid; POSITION: absolute; TOP: 100px; HEIGHT: 255px; BACKGROUND-COLOR: #c9d3f3"><span title=關閉 style="CURSOR: hand;color:white;font-size:12px;font-weight:bold;margin-right:4px;" style="CURSOR: hand;color:white;font-size:12px;font-weight:bold;margin-right:4px;" onclick=disDiv() >×</span><span title=關閉 style="CURSOR: hand;color:white;font-size:12px;font-weight:bold;margin-right:4px;" style="CURSOR: hand;color:white;font-size:12px;font-weight:bold;margin-right:4px;" onclick=appDiv() >開</span></div>');

          <!--
          window.onload = getMsg;
          window.onresize = resizeDiv;
          window.onerror = function(){}
          //短信提示使用(asilas添加)
          var divTop,divLeft,divWidth,divHeight,docHeight,docWidth,objTimer,i = 0;
          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.body.clientWidth;
          docHeight = document.body.clientHeight;
          document.getElementById("eMeng").style.top = parseInt(document.body.scrollTop,10) +
          docHeight + 10;// divHeight
          document.getElementById("eMeng").style.left = parseInt(document.body.scrollLeft,10) +
          docWidth - divWidth
          document.getElementById("eMeng").style.visibility="visible"
          objTimer = window.setInterval("moveDiv()",10)
          }
          catch(e){}
          }
          function resizeDiv()
          {
          i+=1
          //if(i>1300) closeDiv() //客戶想不用自動消失由用戶來自己關閉所以屏蔽這句
          try{
          divHeight = parseInt(document.getElementById("eMeng").offsetHeight,10)
          divWidth = parseInt(document.getElementById("eMeng").offsetWidth,10)
          docWidth = document.body.clientWidth;
          docHeight = document.body.clientHeight;
          document.getElementById("eMeng").style.top = docHeight - divHeight + parseInt
          (document.body.scrollTop,10)
          document.getElementById("eMeng").style.left = docWidth - divWidth + parseInt
          (document.body.scrollLeft,10)
          }
          catch(e){}
          }
          function moveDiv()
          {
          try
          {
          if(parseInt(document.getElementById("eMeng").style.top,10) <= (docHeight - divHeight +parseInt(document.body.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;

          }
          catch(e){}
          }
          function disDiv()
          {
          document.getElementById("eMeng").style.top=docHeight+parseInt(document.body.scrollTop,10);
          document.getElementById("eMeng").style.height="12px";
          }
          function appDiv()
          {
          document.getElementById("eMeng").style.height="255px";
          document.getElementById("eMeng").style.top=docHeight-divHeight+parseInt(document.body.scrollTop,10);

          }

          function closeDiv()
          {
          document.getElementById('eMeng').innerHTML='';
          //document.getElementById('eMeng').style.visibility='hidden';
          document.getElementById('eMeng').style.height="12px";
          if(objTimer) window.clearInterval(objTimer)
          }
          -->
          </Script>

          posted on 2009-12-17 18:14 sanmao 閱讀(108) 評論(0)  編輯  收藏

          只有注冊用戶登錄后才能發(fā)表評論。


          網站導航:
           

          常用鏈接

          留言簿(5)

          隨筆分類

          隨筆檔案

          搜索

          •  

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 贡嘎县| 九龙城区| 梧州市| 岢岚县| 巴中市| 衡水市| 深圳市| 碌曲县| 吴堡县| 鞍山市| 金乡县| 迁安市| 英超| 临夏县| 平罗县| 新平| 小金县| 祁阳县| 海兴县| 宽甸| 开阳县| 昭觉县| 贺州市| 延寿县| 苏尼特左旗| 安图县| 扬州市| 团风县| 磐安县| 迁西县| 昌都县| 惠安县| 昭苏县| 原平市| 乌兰浩特市| 天水市| 静乐县| 本溪市| 阿巴嘎旗| 大悟县| 厦门市|