annotate client/digitallibrary/digimage_tbl_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 152ad1e1ca27
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
239
2f4764230089 new digimage with red triangles for moving the zoomed area
robcast
parents:
diff changeset
1 <%@ page language="java" %><%
2f4764230089 new digimage with red triangles for moving the zoomed area
robcast
parents:
diff changeset
2 // retrieve objects from context
2f4764230089 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);
2f4764230089 new digimage with red triangles for moving the zoomed area
robcast
parents:
diff changeset
4 digilib.servlet.DigilibRequest dlRequest = docBean.getRequest();
2f4764230089 new digimage with red triangles for moving the zoomed area
robcast
parents:
diff changeset
5 %>
2f4764230089 new digimage with red triangles for moving the zoomed area
robcast
parents:
diff changeset
6 <table border="0" cellpadding="0" cellspacing="0">
2f4764230089 new digimage with red triangles for moving the zoomed area
robcast
parents:
diff changeset
7 <tr>
2f4764230089 new digimage with red triangles for moving the zoomed area
robcast
parents:
diff changeset
8 <td></td>
2f4764230089 new digimage with red triangles for moving the zoomed area
robcast
parents:
diff changeset
9 <td align="center"><%
2f4764230089 new digimage with red triangles for moving the zoomed area
robcast
parents:
diff changeset
10 if (docBean.canMoveUp()) {
2f4764230089 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><%
2f4764230089 new digimage with red triangles for moving the zoomed area
robcast
parents:
diff changeset
12 }
2f4764230089 new digimage with red triangles for moving the zoomed area
robcast
parents:
diff changeset
13 %></td>
2f4764230089 new digimage with red triangles for moving the zoomed area
robcast
parents:
diff changeset
14 <td></td>
2f4764230089 new digimage with red triangles for moving the zoomed area
robcast
parents:
diff changeset
15 </tr>
2f4764230089 new digimage with red triangles for moving the zoomed area
robcast
parents:
diff changeset
16 <tr>
2f4764230089 new digimage with red triangles for moving the zoomed area
robcast
parents:
diff changeset
17 <td valign="center"><%
2f4764230089 new digimage with red triangles for moving the zoomed area
robcast
parents:
diff changeset
18 if (docBean.canMoveLeft()) {
2f4764230089 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><%
2f4764230089 new digimage with red triangles for moving the zoomed area
robcast
parents:
diff changeset
20 }
2f4764230089 new digimage with red triangles for moving the zoomed area
robcast
parents:
diff changeset
21 %></td>
2f4764230089 new digimage with red triangles for moving the zoomed area
robcast
parents:
diff changeset
22 <td>
2f4764230089 new digimage with red triangles for moving the zoomed area
robcast
parents:
diff changeset
23 <div id="scaler" style="visibility:visible">
2f4764230089 new digimage with red triangles for moving the zoomed area
robcast
parents:
diff changeset
24 <script type="text/javascript">
2f4764230089 new digimage with red triangles for moving the zoomed area
robcast
parents:
diff changeset
25 var ps = bestPicSize(getElement('scaler'), 10);
2f4764230089 new digimage with red triangles for moving the zoomed area
robcast
parents:
diff changeset
26 document.write('<img id="pic" src="<%=
2f4764230089 new digimage with red triangles for moving the zoomed area
robcast
parents:
diff changeset
27 dlRequest.getAsString("base.url") + "/servlet/Scaler?" + dlRequest.getAsString()
2f4764230089 new digimage with red triangles for moving the zoomed area
robcast
parents:
diff changeset
28 %>&dw='+ps.width+'&dh='+ps.height+'" />');
2f4764230089 new digimage with red triangles for moving the zoomed area
robcast
parents:
diff changeset
29 </script>
2f4764230089 new digimage with red triangles for moving the zoomed area
robcast
parents:
diff changeset
30 </div>
2f4764230089 new digimage with red triangles for moving the zoomed area
robcast
parents:
diff changeset
31 </td>
2f4764230089 new digimage with red triangles for moving the zoomed area
robcast
parents:
diff changeset
32 <td valign="center"><%
2f4764230089 new digimage with red triangles for moving the zoomed area
robcast
parents:
diff changeset
33 if (docBean.canMoveRight()) {
2f4764230089 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><%
2f4764230089 new digimage with red triangles for moving the zoomed area
robcast
parents:
diff changeset
35 }
2f4764230089 new digimage with red triangles for moving the zoomed area
robcast
parents:
diff changeset
36 %></td>
2f4764230089 new digimage with red triangles for moving the zoomed area
robcast
parents:
diff changeset
37 </tr>
2f4764230089 new digimage with red triangles for moving the zoomed area
robcast
parents:
diff changeset
38 <tr>
2f4764230089 new digimage with red triangles for moving the zoomed area
robcast
parents:
diff changeset
39 <td></td>
2f4764230089 new digimage with red triangles for moving the zoomed area
robcast
parents:
diff changeset
40 <td align="center"><%
2f4764230089 new digimage with red triangles for moving the zoomed area
robcast
parents:
diff changeset
41 if (docBean.canMoveDown()) {
2f4764230089 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><%
2f4764230089 new digimage with red triangles for moving the zoomed area
robcast
parents:
diff changeset
43 }
2f4764230089 new digimage with red triangles for moving the zoomed area
robcast
parents:
diff changeset
44 %></td>
2f4764230089 new digimage with red triangles for moving the zoomed area
robcast
parents:
diff changeset
45 <td></td>
2f4764230089 new digimage with red triangles for moving the zoomed area
robcast
parents:
diff changeset
46 </tr>
2f4764230089 new digimage with red triangles for moving the zoomed area
robcast
parents:
diff changeset
47 </table>