
更多>
最新下载
24小时阅读排行榜
- 1 小红书蒲公英入口快速定位_小红书蒲公英官网链接分享
- 2 中暑了有什么症状?怎么办?
- 3 Linux搜索文件命令find常用参数
- 4 Java中final类和final方法使用注意事项
- 5 拷贝漫画ios官网入口 拷贝漫画ios官网进入网站
- 6 你的设备遇到问题需要重启win10
- 7 win10系统语言怎么修改成中文_系统显示语言更改与中文语言包安装
- 8 解决React中map渲染组件beforeunload事件的数据捕获问题
- 9 PHP源码session管理机制_PHP源码session管理机制讲解
- 10 WhatsApp深色模式切换指南-WhatsApp界面设置中文官网教程
- 11 Go 方法定义与结构体分离的优势
- 12 使用 scipy.integrate.quad 积分指示函数:陷阱与解决方案
- 13 DescriptAI如何编辑民间故事音频_DescriptAI编辑民间故事音频全面操作教程
- 14 phpcms上传附件大小限制修改
- 15 JS 深拷贝实现方案对比 - 处理循环引用的结构化克隆算法解析
更多>
最新教程
-
- Node.js 教程
- 2519 2025-08-28
-
- CSS3 教程
- 225970 2025-08-27
-
- Rust 教程
- 2978 2025-08-27
-
- Vue 教程
- 3656 2025-08-22
-
- PostgreSQL 教程
- 3820 2025-08-21
-
- Git 教程
- 3082 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