Mercurial > hg > digilib
comparison client/digitallibrary/digimage_img_inc.jsp @ 239:2f4764230089
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 | 93b9bd7cbb20 |
comparison
equal
deleted
inserted
replaced
238:20c43a06076a | 239:2f4764230089 |
---|---|
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> |