jQuery Image GalleryjQuery UI 图片库

联合创作 · 2023-10-02 08:39

具有 Lightbox 效果和幻灯片功能的 jQuery UI 图片库。

示例代码:

$('a[rel=gallery]').imagegallery({
    open: function (event, ui) {/* called on dialogopen */},
    title: 'Image Gallery', // Sets the dialog title
    show: 'scale', // The effect to be used when the dialog is opened
    hide: 'explode', // The effect to be used when the dialog is closed
    offsetWidth: 50, // Offset of image width to viewport width
    offsetHeight: 50, // Offset of image height to viewport height
    slideshow: 5000, // Shows the next image after 5000 ms
    fullscreen: true, // Displays images fullscreen (overrides offsets)
    canvas: true, // Displays images as canvas elements
    namespace: 'myimagegallery' // event handler namespace
});
浏览 3
点赞
评论
收藏
分享

手机扫一扫分享

编辑 分享
举报
评论
图片
表情
推荐
点赞
评论
收藏
分享

手机扫一扫分享

编辑 分享
举报