<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 閱讀(106) 評論(0)  編輯  收藏

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


          網站導航:
           

          常用鏈接

          留言簿(5)

          隨筆分類

          隨筆檔案

          搜索

          •  

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 崇州市| 诏安县| 新田县| 高碑店市| 泗阳县| 石屏县| 余庆县| 建昌县| 行唐县| 清水河县| 桂阳县| 长葛市| 罗定市| 龙川县| 延吉市| 井冈山市| 勐海县| 通山县| 渑池县| 开原市| 沽源县| 南和县| 长子县| 邓州市| 正蓝旗| 县级市| 巢湖市| 子洲县| 武陟县| 宣化县| 长沙市| 神池县| 建阳市| 贵定县| 锡林郭勒盟| 左权县| 根河市| 清新县| 新化县| 钟山县| 武汉市|