茄子在线看片免费人成视频,午夜福利精品a在线观看,国产高清自产拍在线观看,久久综合久久狠狠综合

    <s id="ddbnn"></s>
  • <sub id="ddbnn"><ol id="ddbnn"></ol></sub>

  • <legend id="ddbnn"></legend><s id="ddbnn"></s>

    仿163郵件提示
    來源:易賢網(wǎng) 閱讀:1217 次 日期:2014-08-13 16:07:12
    溫馨提示:易賢網(wǎng)小編為您整理了“仿163郵件提示”,方便廣大網(wǎng)友查閱!

    查看效果:仿163郵件提示

    代碼如下:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    <html xmlns="http://www.w3.org/1999/xhtml">

    <head>

    <meta http-equiv="Content-Type" content="text ml; charset=gb2312" />

    <title>仿163郵件提示-網(wǎng)站制作學習網(wǎng)</title>

    <meta content="仿163郵箱,提示,javascript,特效,新信息提示,右下角信息提示,網(wǎng)站制作學習網(wǎng)" http-equiv="keywords">

    <meta content="通過jquery做了一個仿163郵件提示,通過事件來控制,也可以自行修改事件" http-equiv="description">

    </head>

    <script language="javascript" src="js/jquery-1.4.4.min.js"></script>

    <script language="javascript" >

    var d_h = 120;//定義顯示窗口高度

    var d_w = 170;//定義顯示窗口寬度

    var delay_t = 3;//設子默認的隱藏時間

    var k;//定義框架對象

    var show_o;//定義時間對象

    var hide_o;//定義時間對象

    $(function(){

    var msg = "網(wǎng)站制作學習網(wǎng)提醒你:你有新信息";//定義顯示內(nèi)容

    $("#foraspcn").html(msg+"<br><br><a href='#' onclick='delay_();'>我知道了<a></div>");

    $("#foraspcn").css({"top":$(window).height()-15,"left":$(window).width()-d_w-20,"width":d_w,"height":1,"z-index":999,"border":'solid #000 1px',"position":'absolute',"overflow":'hidden',"text-align":'center',"padding-top":10}).show();//這里的15 和20減量是為了做偏移,不同的瀏覽器下的偏移

    show_o = setInterval(s_k,20);//

    });

    function s_k(){//定義顯示窗口函數(shù)

     var obj =$("#foraspcn");

     var height_ =parseInt(obj.css("height"));

     var top_ =parseInt(obj.offset().top)

     $("#te").html(height_);

     obj.css("height",height_+1).css("top",top_-1);

     if(height_>=d_h){clearInterval(show_o);setTimeout(delay_,delay_t*1000);}

    }

    function delay_(){clearInterval(show_o);hide_o=setInterval(h_k,20);}

    function h_k(){//定義隱藏窗口函數(shù)

     var obj =$("#foraspcn");

     var height_ =parseInt(obj.css("height"));

     var top_ =parseInt(obj.offset().top)

      obj.css("height",height_-1).css("top",top_+1);

      if(height_<=0){clearInterval(hide_o);obj.hide();}

    }

    </script>

    <body>

    這做了一個仿163有新郵件提醒,在右下角顯示提示窗口。<br>

    如果改為觸發(fā)的提醒,則將$(function(){});改改為一個函數(shù),調用函數(shù)即可<br>

    網(wǎng)站制作學習網(wǎng)原創(chuàng)轉載請注明http://www.forasp.cn

    <div id='foraspcn' style=" display:none;"></div>

    </body>

    </html>

    更多信息請查看IT技術專欄

    更多信息請查看腳本欄目
    易賢網(wǎng)手機網(wǎng)站地址:仿163郵件提示

    2026國考·省考課程試聽報名

    • 報班類型
    • 姓名
    • 手機號
    • 驗證碼
    關于我們 | 聯(lián)系我們 | 人才招聘 | 網(wǎng)站聲明 | 網(wǎng)站幫助 | 非正式的簡要咨詢 | 簡要咨詢須知 | 新媒體/短視頻平臺 | 手機站點 | 投訴建議
    工業(yè)和信息化部備案號:滇ICP備2023014141號-1 云南省教育廳備案號:云教ICP備0901021 滇公網(wǎng)安備53010202001879號 人力資源服務許可證:(云)人服證字(2023)第0102001523號
    聯(lián)系電話:0871-65099533/13759567129 獲取招聘考試信息及咨詢關注公眾號:hfpxwx
    咨詢QQ:1093837350(9:00—18:00)版權所有:易賢網(wǎng)