lokesh / lightbox2

THE original Lightbox script (v2).
http://lokeshdhakar.com/projects/lightbox2/
MIT License
6.14k stars 1.77k forks source link

click on the link and open the attached image #741

Open susl16c opened 9 months ago

susl16c commented 9 months ago

click on the link and open the attached image ?

faisalnjs commented 8 months ago

Yes. Lightbox 2 is used to open the image in a lightbox as an alternative to opening the image in a new tab (by simply visiting the image source URL). Lightbox 2 uses the HTML link tag <a> and utilizes it's href property, so that when you click on the link it opens the lightbox instead of the link. This is useful for simulating a cursor change on link hover (like cursor: pointer), or other CSS you have applied for links.

Creekmore108 commented 2 months ago

I'm having the same issue in a Laravel11 Livewire3 project. I've included the JS & CSS files as well as trying the CDN approach with the same results. I get the image in a new screen with a black background.