Learn Lightbox Preview Image Onmouseover

Usually the image is being previewed with anchor's onclick event. But what if we want to change the event to onmouseover. Here's what to do: 1.) Open lightbox.js 2.) On line 190 document.observe('click', (function(event) TO document.observe('mouseover', (function(event) And that should do it.

0 Comments

Post a Comment

Post a Comment (0)

Previous Post Next Post
NERV Open Source
Building production Spring Boot systems?

Explore NERV — open-source Java libraries for audit trails, persistence, exception handling, and reliable event-driven architecture.