开发者

Portable lightbox for use in userscripts

开发者 https://www.devze.com 2023-04-10 17:56 出处:网络
I have tried to implement various lightboxes into my userscripts, but I have never gotten them to work. The most common problem is some of them require\'s you to modify a css/js file, setting where va

I have tried to implement various lightboxes into my userscripts, but I have never gotten them to work. The most common problem is some of them require's you to modify a css/js file, setting where various image files located. If this is not the case, the image must be located on a specific location on the current server. This is of source not possible, when I don't own the servers I wish to modify.

The lighbox should be able to:

  • Display one image at once with forward/back arrows.

Not required, but would be nice:

  • A numbering of the images at the bottom of the lightbox, allowing to jump to a specific image number.

Please provide an example of it being imp开发者_JS百科lemented in an userscript. The script may use the // @require and // @resource fields.


Lightbox2, coincidentally the first Google result for "lightbox", doesn't mention the need to edit any CSS / JS files or do anything besides include their scripts on the page, and wrapping the thumbnails with a link to the full sized images. If you've tried this, was there any specific problem with it?

0

精彩评论

暂无评论...
验证码 换一张
取 消