vb.net - How to show Previous and next images using javascript -
in code show images using repeater
<asp:repeater id="rptconvention" runat="server" > <itemtemplate> <div style="float:left; width:200px;height:180px" > <a href="pop-ups/viewimage.aspx?lightbox[width]=510&lightbox[height]=415&imgid=<%#eval("id")%>" class="lightbox textcolorblue"> <img src='<%= settings.fransupporturl %><%# "convension/images/" & eval("img")%>' alt='<%#eval("name")%>' width="180px" height="120px" style="border:0px;" /> </a> <div style="text-align:center;float:left; padding-top:5px; width:180px; font-size:12px;"> <%# if(eval("description").tostring().length < 25, eval("description"), eval("description").substring(0, 25))%> </div> <div style="text-align:center;float:left; padding-top:5px; width:180px; font-size:13px; "> <a style="width: 81px!important;" href="pop-ups/viewimage.aspx?lightbox[width]=510&lightbox[height]=415&imgid=<%#eval("id")%>" class="lightbox textcolorblue">view</a> | <asp:linkbutton class="textcolorblue" id="btndownload" commandname="download" commandargument='<%#eval("downloadimg")%>' runat="server" >download </asp:linkbutton> </div> </div> <div class="dvspacingconv"> </div> </itemtemplate> <footertemplate> </footertemplate> </asp:repeater>
on click show image using light box popup , open new page here html of that
<div class="popup_con_ph nopad"> <img id="imgconvention" style="width: 500px; height: 308px;" runat="server" /> <div style="margin-top:8px; text-align:center;"> <input type="button" id="btndownload" value="download" onclick="downloadimage();" style="height: 28px !important; line-height: 10px !important;" tabindex="2" /> <input type="button" id="btnclose" value="close" onclick="closepopup();" style="height: 28px !important; line-height: 10px !important;" tabindex="2" /> </div> </div>
i want put here previous , next button , show previous , next images. how can this..
add onclick function in previous , next button
in function, can below
$('#id').attr('src', 'imgpath');
Comments
Post a Comment