Mercurial > hg > digilib-old
comparison client/digitallibrary/digimage_img_inc.jsp @ 243:4dbff786ff50
new digimage with red triangles for moving the zoomed area
(can be switched off with "clop=noarrows")
author | robcast |
---|---|
date | Wed, 04 Aug 2004 20:35:35 +0200 |
parents | |
children | 07aac99066bf |
comparison
equal
deleted
inserted
replaced
242:e2c455c2a0d0 | 243:4dbff786ff50 |
---|---|
1 <%@ page language="java" %><% | |
2 // retrieve objects from context | |
3 digilib.servlet.DocumentBean docBean = (digilib.servlet.DocumentBean) pageContext.getAttribute("docBean", pageContext.REQUEST_SCOPE); | |
4 digilib.servlet.DigilibRequest dlRequest = docBean.getRequest(); | |
5 %> | |
6 <div id="scaler" style="position:absolute; left:10px; top:10px; visibility:visible"> | |
7 <script type="text/javascript"> | |
8 var ps = bestPicSize(getElement('scaler'), 10); | |
9 document.write('<img id="pic" src="<%= | |
10 dlRequest.getAsString("base.url") + "/servlet/Scaler?" + dlRequest.getAsString() | |
11 %>&dw='+ps.width+'&dh='+ps.height+'" />'); | |
12 </script> | |
13 </div> |