More in this section

Forums / Developing with Sitefinity / mouse over feature in image gallery module.

mouse over feature in image gallery module.

2 posts, 0 answered
  1. Anuj
    Anuj avatar
    13 posts
    Registered:
    12 Dec 2008
    22 Dec 2008
    Link to this post
    I m using image gallery control for my portfolio in sitefinity v 3.5.
    I want to show a bigger image on mouse over on all those images.I have seen all the options given in the image gallery options in admin but not found any solution for mouse over.
    Please tell me the solution for that.
  2. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    22 Dec 2008
    Link to this post
    Hi Anuj,

    We are using Lighbox for the image gallery. Here's is how you could show the images onMouseOver instead of onClick:
    1. Open the file lightbox.js file located in \[YourProject]\Sitefinity\ExternalLibraries\lightbox\js
    2. Find the line:
    anchor.onclick = function () {myLightbox.start(this); return false;} 
    and change it to:
    anchor.onmouseover = function () {myLightbox.start(this); return false;} 

    Basically the change is related to which to event is handled.

    You will see the change with the option List & Lightbox of the ImageGallery control.

    I hope this helps.

    Kind regards,
    Georgi
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
2 posts, 0 answered