<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)

          隨筆分類

          隨筆檔案

          搜索

          •  

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 玉环县| 酒泉市| 莱芜市| 南昌市| 赣榆县| 冀州市| 和平区| 溧水县| 睢宁县| 龙川县| 宁河县| 郎溪县| 琼结县| 游戏| 高青县| 内乡县| 美姑县| 渭南市| 维西| 富宁县| 乐业县| 遂平县| 伊金霍洛旗| 明光市| 新巴尔虎右旗| 广昌县| 新宾| 罗平县| 浙江省| 台江县| 永康市| 紫阳县| 和龙市| 图木舒克市| 施甸县| 千阳县| 繁峙县| 永顺县| 米林县| 于田县| 乌兰察布市|