annotate client/digitallibrary/digimage_tbl_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 610c7ee770cb
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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 <table border="0" cellpadding="0" cellspacing="0">
4dbff786ff50 new digimage with red triangles for moving the zoomed area
robcast
parents:
diff changeset
7 <tr>
4dbff786ff50 new digimage with red triangles for moving the zoomed area
robcast
parents:
diff changeset
8 <td></td>
4dbff786ff50 new digimage with red triangles for moving the zoomed area
robcast
parents:
diff changeset
9 <td align="center"><%
4dbff786ff50 new digimage with red triangles for moving the zoomed area
robcast
parents:
diff changeset
10 if (docBean.canMoveUp()) {
4dbff786ff50 new digimage with red triangles for moving the zoomed area
robcast
parents:
diff changeset
11 %><a href="javascript:moveBy(0, -0.5)"><img src="img/up.gif" border="0" /></a><%
4dbff786ff50 new digimage with red triangles for moving the zoomed area
robcast
parents:
diff changeset
12 }
4dbff786ff50 new digimage with red triangles for moving the zoomed area
robcast
parents:
diff changeset
13 %></td>
4dbff786ff50 new digimage with red triangles for moving the zoomed area
robcast
parents:
diff changeset
14 <td></td>
4dbff786ff50 new digimage with red triangles for moving the zoomed area
robcast
parents:
diff changeset
15 </tr>
4dbff786ff50 new digimage with red triangles for moving the zoomed area
robcast
parents:
diff changeset
16 <tr>
4dbff786ff50 new digimage with red triangles for moving the zoomed area
robcast
parents:
diff changeset
17 <td valign="center"><%
4dbff786ff50 new digimage with red triangles for moving the zoomed area
robcast
parents:
diff changeset
18 if (docBean.canMoveLeft()) {
4dbff786ff50 new digimage with red triangles for moving the zoomed area
robcast
parents:
diff changeset
19 %><a href="javascript:moveBy(-0.5, 0)"><img src="img/left.gif" border="0" /></a><%
4dbff786ff50 new digimage with red triangles for moving the zoomed area
robcast
parents:
diff changeset
20 }
4dbff786ff50 new digimage with red triangles for moving the zoomed area
robcast
parents:
diff changeset
21 %></td>
4dbff786ff50 new digimage with red triangles for moving the zoomed area
robcast
parents:
diff changeset
22 <td>
4dbff786ff50 new digimage with red triangles for moving the zoomed area
robcast
parents:
diff changeset
23 <div id="scaler" style="visibility:visible">
4dbff786ff50 new digimage with red triangles for moving the zoomed area
robcast
parents:
diff changeset
24 <script type="text/javascript">
4dbff786ff50 new digimage with red triangles for moving the zoomed area
robcast
parents:
diff changeset
25 var ps = bestPicSize(getElement('scaler'), 10);
4dbff786ff50 new digimage with red triangles for moving the zoomed area
robcast
parents:
diff changeset
26 document.write('<img id="pic" src="<%=
4dbff786ff50 new digimage with red triangles for moving the zoomed area
robcast
parents:
diff changeset
27 dlRequest.getAsString("base.url") + "/servlet/Scaler?" + dlRequest.getAsString()
4dbff786ff50 new digimage with red triangles for moving the zoomed area
robcast
parents:
diff changeset
28 %>&dw='+ps.width+'&dh='+ps.height+'" />');
4dbff786ff50 new digimage with red triangles for moving the zoomed area
robcast
parents:
diff changeset
29 </script>
4dbff786ff50 new digimage with red triangles for moving the zoomed area
robcast
parents:
diff changeset
30 </div>
4dbff786ff50 new digimage with red triangles for moving the zoomed area
robcast
parents:
diff changeset
31 </td>
4dbff786ff50 new digimage with red triangles for moving the zoomed area
robcast
parents:
diff changeset
32 <td valign="center"><%
4dbff786ff50 new digimage with red triangles for moving the zoomed area
robcast
parents:
diff changeset
33 if (docBean.canMoveRight()) {
4dbff786ff50 new digimage with red triangles for moving the zoomed area
robcast
parents:
diff changeset
34 %><a href="javascript:moveBy(0.5, 0)"><img src="img/right.gif" border="0" /></a><%
4dbff786ff50 new digimage with red triangles for moving the zoomed area
robcast
parents:
diff changeset
35 }
4dbff786ff50 new digimage with red triangles for moving the zoomed area
robcast
parents:
diff changeset
36 %></td>
4dbff786ff50 new digimage with red triangles for moving the zoomed area
robcast
parents:
diff changeset
37 </tr>
4dbff786ff50 new digimage with red triangles for moving the zoomed area
robcast
parents:
diff changeset
38 <tr>
4dbff786ff50 new digimage with red triangles for moving the zoomed area
robcast
parents:
diff changeset
39 <td></td>
4dbff786ff50 new digimage with red triangles for moving the zoomed area
robcast
parents:
diff changeset
40 <td align="center"><%
4dbff786ff50 new digimage with red triangles for moving the zoomed area
robcast
parents:
diff changeset
41 if (docBean.canMoveDown()) {
4dbff786ff50 new digimage with red triangles for moving the zoomed area
robcast
parents:
diff changeset
42 %><a href="javascript:moveBy(0, 0.5)"><img src="img/down.gif" border="0" /></a><%
4dbff786ff50 new digimage with red triangles for moving the zoomed area
robcast
parents:
diff changeset
43 }
4dbff786ff50 new digimage with red triangles for moving the zoomed area
robcast
parents:
diff changeset
44 %></td>
4dbff786ff50 new digimage with red triangles for moving the zoomed area
robcast
parents:
diff changeset
45 <td></td>
4dbff786ff50 new digimage with red triangles for moving the zoomed area
robcast
parents:
diff changeset
46 </tr>
4dbff786ff50 new digimage with red triangles for moving the zoomed area
robcast
parents:
diff changeset
47 </table>