如何更改灯箱中的选项? [英] how change options from lightbox?

查看:101
本文介绍了如何更改灯箱中的选项?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用lightbox2.我经历了这个例子,它工作正常.此外,还有一个画廊! 但是,当我更改lightbox2的某些选项(例如labelImage)时,更容易的选项是更改ligthbox2.js中的代码.

I'm using lightbox2. i went through the example and it works fine. furthermore, a gallery! But when I change some options for lightbox2, for example, labelImage , the option more easy is change code from ligthbox2.js.

我尝试如下更改选项:

$.LightboxOptions.labelImage="My image";

但这不起作用.

设置选项的正确方法应该是什么?

What should be the right way to set the option?

推荐答案

您不能在不修改 lightbox2 脚本的情况下修改选项.

You can't modify the options without modifying the lightbox2 script.

这篇关于如何更改灯箱中的选项?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆