js登錄彈出層 登錄框特效

  • <!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/html; charset=utf-8" />
    <title>js登錄彈出層 登錄框特效</title>
    <script type="text/javascript" src="/ajaxjs/jquery-1.6.2.min.js"></script>
    <script type="text/javascript" src="/jscss/demoimg/201310/thickbox_plus.js"></script>
    <style>
    body{background-color: #fff;}
    html, body{height: 100%;}
    html body{font: 12px Arial, Helvetica, sans-serif;color: #333333}
    html>body{font: 12px Arial, Helvetica, sans-serif;color: #333333}
    #TB_overlay{position: absolute;top: 0;left: 0;z-index: 100;width: 100%;height: 100%;background-color: #CCC;filter: alpha(opacity=60);-moz-opacity: 0.6;opacity: 0.6;}
    #TB_window{top: 0px;left: 0px;position: fixed;_position: absolute;background: #fff;z-index: 102;color: #000000;display: none;border: 5px solid #666;}
    #TB_caption{height: 25px;padding: 10px 30px 10px 25px;}
    #TB_closeWindow{height: 25px;padding: 10px 25px 10px 0;float: right;}
    #TB_closeAjaxWindow{padding: 5px 10px 7px 0;margin-bottom: 1px;text-align: right;background-color: #e8e8e8;}
    #TB_ajaxContent{padding: 2px 15px 15px 15px;overflow: auto;}
    #TB_load{text-align: center;position: absolute;top: 50%;left: 0px;width: 100%;overflow: visible;visibility: visible;display: block;z-index: 101;}
    #TB_loadContent{margin-left: -125px;position: absolute;top: -50px;left: 50%;width: 250px;height: 100px;visibility: visible;}
    </style>
    </head>
    <body>
    <a href="/jscss/demoimg/201310/ShowLogin.html?height=160;width=400" title="登錄後方可進行操作" class="thickbox" >馬上登錄</a>
    </body>
    </html>

    JavaScript點擊彈出層,點擊後彈出一個登錄層,jQuery版本1.6.2,在這個層內的內容調用了一個示例頁面,原理基於thickbox_plus.js,thickbox大多被用於顯示放大圖片,用在這裏也挺新穎哦,請注意文件路徑,所需要的js文件一般在jscss/demoimg/201310目錄下,圖片可在頁面上點擊右鍵另存爲。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章