更多>
最新下载
24小时阅读排行榜
- 1 css 布局中 footer 无法贴底怎么办_使用 css 布局实现底部固定
- 2 php二维转一维保留首次键_php二维转一维首键优先法【步骤】
- 3 C# 日期时间格式化方法 C#如何格式化DateTime
- 4 html5能直接播放rtsp吗_html5不能直接播rtsp原因【原理】
- 5 javascript函数如何定义_它们怎样提升代码复用性【教程】
- 6 C++ socket编程怎么做 C++网络编程TCP通信代码实现【网络】
- 7 GraphQL如何处理文件上传 与XML数据结合的最佳实践
- 8 css 外链样式表路径写错怎么排查_排查 css 引入失败方法
- 9 php页面渐变能配合表单高亮吗_php页面表单渐变高亮法【教程】
- 10 ebXML电子商务XML标准介绍
- 11 CircleCI/Travis CI如何配置XML测试报告的上传
- 12 c++中如何判断一个数是否为奇数_c++按位与运算判断奇偶性【详解】
- 13 C++ 智能指针shared_ptr C++引用计数与自动内存管理【C++11】
- 14 mysql事务和锁有什么关系_mysql事务锁机制说明
- 15 ios如何调用html5推送通知_ios调用html5推送设置法【技巧】
更多>
最新教程
-
- Node.js 教程
- 16113 2025-08-28
-
- CSS3 教程
- 1546528 2025-08-27
-
- Rust 教程
- 23247 2025-08-27
-
- Vue 教程
- 25718 2025-08-22
-
- PostgreSQL 教程
- 22200 2025-08-21
-
- Git 教程
- 9188 2025-08-21
jQuery+CSS3弹窗放大图片展示插件
代码片段:
js代码
<script type="text/javascript" src="js/jquery.galpop.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$('.galpop-single').galpop();
$('.galpop-multiple').galpop();
$('.galpop-info').galpop();
var callback = function() {
var wrapper = $('#galpop-wrapper');
var info = $('#galpop-info');
var count = wrapper.data('count');
var index = wrapper.data('index');
var current = index + 1;
var string = 'Image '+ current +' of '+ count;
info.append('<p>'+ string +'</p>').fadeIn();
};
$('.galpop-callback').galpop({
callback: callback
});
$('.manual-open').change(function(e) {
var image = $(this).val();
if (image) {
var settings = {};
$.fn.galpop('openBox',settings,image);
}
});
$('.manual-open-group').change(function(e) {
var v = $(this).val();
var images = [
'images/gallery/large/apocalypse.jpg',
'images/gallery/large/vintage.jpg',
'images/gallery/large/magicLake.jpg',
'images/gallery/large/underwater.jpg',
'images/gallery/large/goodBoy.jpg',
'images/gallery/large/darkroad.jpg',
'images/gallery/large/roadkill.jpg',
'images/gallery/large/wolfMarine.jpg',
'images/gallery/large/alice.jpg',
'images/gallery/large/reflection.jpg',
];
var settings = {};
$.fn.galpop('openBox',settings,images,v);
});
$('.click-open-iframe').galpop({
contentType: 'iframe',
});
$('.click-open-ajax').galpop({
contentType: 'AJAX',
});
});
</script>
本站所有资源都是由网友投搞发布,或转载各大下载站,请自行检测软件的完整性!本站所有资源仅供学习与参考,请勿用于商业用途,否则产生的一切后果将由您自己承担!如有侵权请联系我们删除下架,联系方式:admin@php.cn
