Jquery插件Thickbox的使用总结及自定义设置

本文介绍了Jquery插件Thickbox的使用,包括下载所需文件、引入资源和基本配置。通过添加class='thickbox'属性实现图片弹窗展示。还详细讲解了如何进行自定义设置,如修改关闭按钮文字、添加自定义关闭功能、处理关闭层刷新父页面等问题,以及解决updatepanel回发后Thickbox失效的方法。
摘要由CSDN通过智能技术生成

ThickBox运行需要的文件

官方下载:

Download thickbox.js or thickbox-compressed.js, ThickBox.css, and the loading graphic (loadingAnimation.gif) to your local machine (or cut and paste the code from the tabs). Along with these three files, a copy of the jQuery JavaScript library is needed. For this site, and ThickBox, I am using the compressed version of jQuery.

首先在 HTML 文件的 head中导入jquery.js 和thickbox.js文件,导入 thickbox.css 文件;并且jquery.js 文件放在前面:

<script src="../Scripts/jquery-latest.pack.js" mce_src="Scripts/jquery-latest.pack.js" type="text/javascript">
   
   script>  
    <script src="../Scripts/thickbox.js" mce_src="Scripts/thickbox.js" type="text/javascript">
    
    script>  
<link href="../Styles/thickbox.css" mce_href=
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值