Click here to Skip to main content
15,890,512 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
function onComplete1(e) {
$.each(e, function (eachItem) {
myImgPath = 'http://' + location.host + '/EventGallery/' + e[eachItem].Gallery_img;
document.getElementById('brk').innerHTML += "<img src=" + myImgPath + " style='width:150px;height:150px'/>" + '  ';
});
}

Posted
Updated 8-Dec-15 1:23am
v3
Comments
Prasad Khandekar 8-Dec-15 7:41am    
Hello Member,

Please have a look at PhotoSwipe (http://photoswipe.com/) or Visual Lightbox (http://visuallightbox.com/lightbox-for-photo-noble-demo.html), may be this is what you are looking for.

Regards,

1 solution

Use a link directly -
HTML
<a href="img/floor.jpg"><img src="img/gallery/5.jpg"></a>
 
Share this answer
 
Comments
Member 10735337 8-Dec-15 8:18am    
i'm using <span id="brk"></span>tag.not use & <img> tag

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900