Share via


Image pop up in SharePoint after clicking it

Question

Thursday, August 22, 2013 11:49 PM

Hi,

I have a set of 6 images in a SharePoint 2010 Page which are displayed in a tabular fashion. I want to make these images clickable so that when the user clicks on them, a pop up window is opened showing the original image from the document library.

Thes images displayed on the page are resized according to the requirement.

I know that it can be done via java Script or JQuery. But not sure form where to start with as I am not much well versed with JQuery.

If anyone knows about this, kindly share your knowledge.

Thanks,

K.V.N.PAVAN

All replies (2)

Friday, August 23, 2013 12:49 AM

LightBox is a very popular one for this.

http://leandrovieira.com/projects/jquery/lightbox/

All you do is put your images inside of anchors and then run a js command like 

$(function() {
    $('#gallery a').lightBox({fixedNavigation:true});
});

this is after adding a reference to both jquery and lightbox

Please mark my response as an answer if appropriate.
Learn.SharePoint.com


Friday, August 23, 2013 6:52 AM

Try this http://kyleschaeffer.com/sharepoint/sharepoint-2010-pop-up-dialogs/

#RoHsTr