Mercurial > hg > digilib-old
annotate client/digitallibrary/digimage_img_inc.jsp @ 273:d4c0c4d858a9
Servlet version 1.21b3
- searching in directories got faster (real binarySearch now!)
- cached file lists get disposed
- some code cleaning (Map types instead of HashMap)
author | robcast |
---|---|
date | Tue, 12 Oct 2004 16:06:43 +0200 |
parents | 4dbff786ff50 |
children | 07aac99066bf |
rev | line source |
---|---|
243
4dbff786ff50
new digimage with red triangles for moving the zoomed area
robcast
parents:
diff
changeset
|
1 <%@ page language="java" %><% |
4dbff786ff50
new digimage with red triangles for moving the zoomed area
robcast
parents:
diff
changeset
|
2 // retrieve objects from context |
4dbff786ff50
new digimage with red triangles for moving the zoomed area
robcast
parents:
diff
changeset
|
3 digilib.servlet.DocumentBean docBean = (digilib.servlet.DocumentBean) pageContext.getAttribute("docBean", pageContext.REQUEST_SCOPE); |
4dbff786ff50
new digimage with red triangles for moving the zoomed area
robcast
parents:
diff
changeset
|
4 digilib.servlet.DigilibRequest dlRequest = docBean.getRequest(); |
4dbff786ff50
new digimage with red triangles for moving the zoomed area
robcast
parents:
diff
changeset
|
5 %> |
4dbff786ff50
new digimage with red triangles for moving the zoomed area
robcast
parents:
diff
changeset
|
6 <div id="scaler" style="position:absolute; left:10px; top:10px; visibility:visible"> |
4dbff786ff50
new digimage with red triangles for moving the zoomed area
robcast
parents:
diff
changeset
|
7 <script type="text/javascript"> |
4dbff786ff50
new digimage with red triangles for moving the zoomed area
robcast
parents:
diff
changeset
|
8 var ps = bestPicSize(getElement('scaler'), 10); |
4dbff786ff50
new digimage with red triangles for moving the zoomed area
robcast
parents:
diff
changeset
|
9 document.write('<img id="pic" src="<%= |
4dbff786ff50
new digimage with red triangles for moving the zoomed area
robcast
parents:
diff
changeset
|
10 dlRequest.getAsString("base.url") + "/servlet/Scaler?" + dlRequest.getAsString() |
4dbff786ff50
new digimage with red triangles for moving the zoomed area
robcast
parents:
diff
changeset
|
11 %>&dw='+ps.width+'&dh='+ps.height+'" />'); |
4dbff786ff50
new digimage with red triangles for moving the zoomed area
robcast
parents:
diff
changeset
|
12 </script> |
4dbff786ff50
new digimage with red triangles for moving the zoomed area
robcast
parents:
diff
changeset
|
13 </div> |