小男孩‘自慰网亚洲一区二区,亚洲一级在线播放毛片,亚洲中文字幕av每天更新,黄aⅴ永久免费无码,91成人午夜在线精品,色网站免费在线观看,亚洲欧洲wwwww在线观看

分享

右下角彈框代碼

 悟靜 2013-04-17
<style type="text/css">
        *
        {
            margin: 0px;
            padding: 0px;
        }
        html, body
        {
            height: 100%;
        }
        body
        {
            font-size: 14px;
            line-height: 24px;
        }
        #tip
        {
            position: absolute;
            right: 0px;
            bottom: 0px;
            height: 0px;
            width: 280px;
            border: 1px solid #CCCCCC;
            background-color: #eeeeee;
            padding: 1px;
            overflow: hidden;
            display: none;
            font-size: 12px;
            z-index: 10;
        }
        #tip p
        {
            padding: 6px;
        }
        #tip h1, #detail h1
        {
            font-size: 14px;
            height: 25px;
            line-height: 25px;
            background-color: #0066CC;
            color: #FFFFFF;
            padding: 0px 3px 0px 3px;
            filter: Alpha(Opacity=100);
        }
        #tip h1 a, #detail h1 a
        {
            float: right;
            text-decoration: none;
            color: #FFFFFF;
        }
    </style>
///////////////////////////////////////////////////////////////////
<script type="text/javascript">
    window.onload=function()
    {
       var divTip = document.createElement("div");
       divTip.id="tip";
       divTip.innerHTML="<h1><a href='javascript:void(0)' onclick='start()'>×</a>您有1條新消息</h1><p><a href='javascript:void(0)' onclick='showwin()'>點(diǎn)擊這里查看詳細(xì)</a></p>";
       divTip.style.height='0px';
       divTip.style.bottom='0px';
       divTip.style.position='fixed'; 
       document.body.appendChild(divTip);
  start();
    }   
     var handle;
    function start(count)//參數(shù)為新短信個(gè)數(shù)
    {
        var obj = document.getElementById("tip");   
        obj.innerHTML=obj.innerHTML.replace("msgCount",count);        
        
        if (parseInt(obj.style.height)==0)
        { obj.style.display="block";
          handle = setInterval("changeH('up')",20); //調(diào)用該方法 參數(shù)為循環(huán)調(diào)用的時(shí)間
        }else
        {
             handle = setInterval("changeH('down')",20) 
        }
    } 
    function changeH(str)//逐步改變窗體的高一次遞增 或 遞減8px
    {
        var obj=document.all?document.all["tip"] : document.getElementById("tip");
        if(str=="up")
        {
          if (parseInt(obj.style.height)>100)
           clearInterval(handle);
          else
           obj.style.height=(parseInt(obj.style.height)+8).toString()+"px";
        }
        if(str=="down")
        {
          if (parseInt(obj.style.height)<8)
          { 
           clearInterval(handle);
           obj.style.display="none";
          }
          else  
           obj.style.height=(parseInt(obj.style.height)-8).toString()+"px"; 
        } 
    function showwin()
    {
    document.getElementsByTagName("html")[0].style.overflow = "hidden";
    start();    
    window.open("/member/managemsg.aspx");
    }    
    </script>

    本站是提供個(gè)人知識(shí)管理的網(wǎng)絡(luò)存儲(chǔ)空間,所有內(nèi)容均由用戶發(fā)布,不代表本站觀點(diǎn)。請(qǐng)注意甄別內(nèi)容中的聯(lián)系方式、誘導(dǎo)購(gòu)買等信息,謹(jǐn)防詐騙。如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請(qǐng)點(diǎn)擊一鍵舉報(bào)。
    轉(zhuǎn)藏 分享 獻(xiàn)花(0

    0條評(píng)論

    發(fā)表

    請(qǐng)遵守用戶 評(píng)論公約

    類似文章 更多