javascript - Rotate image in browse popup window? -
i have page image thumbnails enclosed in anchor tags, such when clicked, bigger image shown in separate browser popup window.
jsp:
<a href="#"><img id="<c:out value='${theimg.imgid}'/>" src="<c:out value="${pagecontext.request.contextpath}"/>/imageservlet?imgid=<c:out value='${theimg.imgid}'/>" width="50" height="50" onclick='showimage("<c:out value='${pagecontext.request.contextpath}'/>/imageservlet?imgid=<c:out value='${theimg.imgid}'/>","<c:out value='${theimg.imgid}'/>");' border="0" alt=""/></a>
javascript:
win = window.open(url, "", "width=500, height=350, toolbar=yes, menubar=yes, scrollbars=yes, resizable=no, location=no, top=285, left=575");
now want add rotate functionality image in popup window (by default, browsers provide zoom functionality). know can use jqueryrotate add functionality img element. problem not know how handle or id of img element shown in popup. ideas?
you can't handle img element because window opened shows image passed url, contains no html markup.
a better option might open html page , manipulate it's dom. here's link similar: js open popup window , acces it's element in page
Comments
Post a Comment