最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

JQUERY THICKBOX彈出層插件

 更新時間:2008年08月30日 19:29:22   作者:  
JQUERY插件THICKBOX的功能很強大,但是它的基本使用卻很簡單容易.但是要研究的更深,運用得更加靈活的話,還是有點難度,根據(jù)其官方站點介紹
.THICKBOX支持一下瀏覽器:
Windows IE 6.0, Windows IE 7+, Windows FF 2.0.0.6+, Windows Opera 9.0+, Macintosh Safari 2.0.4+, Macintosh FF 2.0.0.6+, Macintosh Opera 9.10……但是據(jù)我的使用,IE6還是有點問題的!下面我們首先來看它的調(diào)用:
1.肯定你先要下載jquery.js和thickbox.js了.還有thickbox.css也不能少!
復(fù)制代碼 代碼如下:

<script type="text/javascript" src="path-to-file/jquery.js"></script>
<script type="text/javascript" src="path-to-file/thickbox.js"></script>
<link rel="stylesheet" href="path-to-file/thickbox.css" type="text/css" media="screen" />
//path-to-file 就是你放這三個文件的路徑

2.彈出單張圖片的方法:
復(fù)制代碼 代碼如下:

<a href="images/single.jpg" title="add a caption to title attribute / or leave blank" class="thickbox"><img src="images/single_t.jpg" alt="Single Image"/></a>

3.多張圖片實現(xiàn)分頁也很簡單:
復(fù)制代碼 代碼如下:

<a href="images/plant1.jpg" title="add a caption to title attribute / or leave blank" class="thickbox" rel="gallery-plants"><img src="images/plant1_t.jpg" alt="Plant 1" /></a>
<a href="images/plant2.jpg" title="add a caption to title attribute / or leave blank" class="thickbox" rel="gallery-plants"><img src="images/plant2_t.jpg" alt="Plant 2" /></a>
<a href="images/plant3.jpg" title="add a caption to title attribute / or leave blank" class="thickbox" rel="gallery-plants"><img src="images/plant3_t.jpg" alt="Plant 3" /></a>
<a href="images/plant4.jpg" title="add a caption to title attribute / or leave blank" class="thickbox" rel="gallery-plants"><img src="images/plant4_t.jpg" alt="Plant 4" /></a>

4.彈出網(wǎng)頁inLINECONTENT
復(fù)制代碼 代碼如下:

<input alt="#TB_inline?height=300&width=400&inlineId=myOnPageContent" title="add a caption to title attribute / or leave blank" class="thickbox" type="button" value="Show" />
//重要的是 #TB_inline?

5.iFRAME形式的
復(fù)制代碼 代碼如下:

<a href="ajax.PHP?keepThis=true&TB_iframe=true&height=250&width=400" title="add a caption to title attribute / or leave blank" class="thickbox">Example</a>

所有調(diào)用的樣式都得加上class=”thickbox”.這是控制彈出的效果,具體可以參照JQUERY的官方站點對THICKBOX的介紹,里面有具體效果:http://jquery.com/demo/thickbox/

相關(guān)文章

最新評論

法库县| 定日县| 图木舒克市| 武陟县| 库车县| 左云县| 崇明县| 乌拉特前旗| 城固县| 柳河县| 潞西市| 古蔺县| 建瓯市| 云阳县| 新密市| 徐州市| 潼南县| 望城县| 吉木萨尔县| 玉门市| 谷城县| 新竹县| 安陆市| 茶陵县| 南华县| 洪洞县| 水富县| 浮梁县| 武宣县| 铜川市| 河津市| 藁城市| 常州市| 曲阜市| 安阳县| 汪清县| 昭苏县| 岱山县| 寻乌县| 冀州市| 莱芜市|