Javascript: light light lightbox script

I am looking for lightweight javascript to display images like a lightbox does. it should be small + simple, without the jquery / mootools plugin, without animation.

I just have to be able to display the image when I click on its thumbnail.

thank

+3
source share
2 answers

You can use, for example, Lytebox . This script does not have any dependencies on external libraries and integrating it with your page is as simple as using Lightbox

+3
source

If you are looking for something really easy, you can take a look at this script .

, URL- .jpg, .png .gif, :

<script src="minibox.js" type="text/javascript"></script>
<script type="text/javascript">
minibox.borderSize = 5;
minibox.borderType = 'solid red';
minibox.img.title = 'click to close image window';
minibox();
</script>

, .

0

Source: https://habr.com/ru/post/1732728/


All Articles