js登錄彈出層特效
更新時(shí)間:2014年03月07日 15:07:30 作者:
點(diǎn)擊彈出層,點(diǎn)擊后彈出一個(gè)登錄層,在這個(gè)層內(nèi)的內(nèi)容調(diào)用了一個(gè)示例頁面
復(fù)制代碼 代碼如下:
<!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="登錄后方可進(jìn)行操作" class="thickbox" >馬上登錄</a>
</body>
</html>
JavaScript點(diǎn)擊彈出層,點(diǎn)擊后彈出一個(gè)登錄層,jQuery版本1.6.2,在這個(gè)層內(nèi)的內(nèi)容調(diào)用了一個(gè)示例頁面,原理基于thickbox_plus.js,thickbox大多被用于顯示放大圖片,用在這里也挺新穎哦,請(qǐng)注意文件路徑,所需要的js文件一般在jscss/demoimg/201310目錄下,圖片可在頁面上點(diǎn)擊右鍵另存為。
您可能感興趣的文章:
- JS實(shí)現(xiàn)常見的TAB、彈出層效果(TAB標(biāo)簽,斑馬線,遮罩層等)
- JS實(shí)現(xiàn)仿微博可關(guān)閉彈出層效果
- js實(shí)現(xiàn)仿Discuz文本框彈出層效果
- js控制div彈出層實(shí)現(xiàn)方法
- JS實(shí)用的動(dòng)畫彈出層效果實(shí)例
- JS簡單實(shí)現(xiàn)動(dòng)畫彈出層效果
- js與css實(shí)現(xiàn)彈出層覆蓋整個(gè)頁面的方法
- js實(shí)現(xiàn)div彈出層的方法
- Js Jquery創(chuàng)建一個(gè)彈出層可加載一個(gè)頁面
- 使用js實(shí)現(xiàn)關(guān)閉js彈出層的窗口
- JS實(shí)現(xiàn)可自定義大小,可雙擊關(guān)閉的彈出層效果
相關(guān)文章
js實(shí)現(xiàn)截取某個(gè)字符串前面的內(nèi)容
這篇文章主要介紹了js實(shí)現(xiàn)截取某個(gè)字符串前面的內(nèi)容,具有很好的參考價(jià)值,希望對(duì)大家有所幫助。如有錯(cuò)誤或未考慮完全的地方,望不吝賜教2023-04-04淺談JavaScript函數(shù)參數(shù)的可修改性問題
這篇文章主要是對(duì)JavaScript函數(shù)參數(shù)的可修改性進(jìn)行了詳細(xì)的介紹,需要的朋友可以過來參考下,希望對(duì)大家有所幫助2013-12-12JavaScript事件Event對(duì)象詳解(屬性、方法、自定義事件)
Event對(duì)象代表事件的狀態(tài),比如事件在其中發(fā)生的元素、鍵盤按鍵的狀態(tài)、鼠標(biāo)的位置、鼠標(biāo)按鈕的狀態(tài),這篇文章主要給大家介紹了關(guān)于JavaScript事件Event對(duì)象(屬性、方法、自定義事件)的相關(guān)資料,需要的朋友可以參考下2024-01-01