Lightbox 2.04 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.
Lightbox 2.04 preview image onmouseover Lightbox 2.04 preview image onmouseover Reviewed by Edward Legaspi on Sunday, November 07, 2010 Rating: 5

No comments:

Powered by Blogger.