更多>
最新下载
24小时阅读排行榜
- 1 SQL 窗口函数能否完全替代子查询?
- 2 SQL 如何实现分位数统计?
- 3 SQL 如何实现“热点数据”缓存与预热避免冷启动慢
- 4 SQL 外连接的执行过程解析
- 5 SQL 使用窗口函数计算滑动窗口统计
- 6 SQL 留存分析中常见的统计陷阱
- 7 Mapbox GL JS 实现标记点动画与跟随视角效果
- 8 Linux 时区错误的常见原因
- 9 rsync 同步报 "some files could not be transferred" 的权限/时间戳坑
- 10 Linux 定时任务失败的常见原因
- 11 ntp monlist 放大攻击的 iptables -A INPUT -p udp --dport 123 -m limit
- 12 如何在 PHP 中正确处理 ASCII 与 UTF-8 编码转换及全宽字符映射
- 13 Linux 进程状态转换的真实场景
- 14 SQL 中表达式是如何计算的?
- 15 Linux 进程生命周期完整解析
更多>
最新教程
-
- Node.js 教程
- 16154 2025-08-28
-
- CSS3 教程
- 1546637 2025-08-27
-
- Rust 教程
- 23286 2025-08-27
-
- Vue 教程
- 25752 2025-08-22
-
- PostgreSQL 教程
- 22238 2025-08-21
-
- Git 教程
- 9214 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
