annotate client/digitallibrary/digimage_tbl_inc.jsp @ 596:3af9878e268f stream

very small fix
author robcast
date Tue, 11 Jan 2011 21:08:12 +0100
parents 93b9bd7cbb20
children
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
596
3af9878e268f very small fix
robcast
parents: 327
diff changeset
3 digilib.servlet.DocumentBean docBean = (digilib.servlet.DocumentBean) pageContext.getAttribute("docBean", PageContext.REQUEST_SCOPE);
239
2f4764230089 new digimage with red triangles for moving the zoomed area
robcast
parents:
diff changeset
4 digilib.servlet.DigilibRequest dlRequest = docBean.getRequest();
327
93b9bd7cbb20 fixed problems with Netscape4 (silly error by me partly :-)
robcast
parents: 313
diff changeset
5 String ua = request.getHeader("User-Agent");
93b9bd7cbb20 fixed problems with Netscape4 (silly error by me partly :-)
robcast
parents: 313
diff changeset
6 boolean isN4 = ((ua.indexOf("Mozilla/4.") > -1)&&(ua.indexOf("MSIE") == -1));
239
2f4764230089 new digimage with red triangles for moving the zoomed area
robcast
parents:
diff changeset
7 %>
2f4764230089 new digimage with red triangles for moving the zoomed area
robcast
parents:
diff changeset
8 <table border="0" cellpadding="0" cellspacing="0">
2f4764230089 new digimage with red triangles for moving the zoomed area
robcast
parents:
diff changeset
9 <tr>
2f4764230089 new digimage with red triangles for moving the zoomed area
robcast
parents:
diff changeset
10 <td></td>
2f4764230089 new digimage with red triangles for moving the zoomed area
robcast
parents:
diff changeset
11 <td align="center"><%
2f4764230089 new digimage with red triangles for moving the zoomed area
robcast
parents:
diff changeset
12 if (docBean.canMoveUp()) {
2f4764230089 new digimage with red triangles for moving the zoomed area
robcast
parents:
diff changeset
13 %><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
14 }
2f4764230089 new digimage with red triangles for moving the zoomed area
robcast
parents:
diff changeset
15 %></td>
2f4764230089 new digimage with red triangles for moving the zoomed area
robcast
parents:
diff changeset
16 <td></td>
2f4764230089 new digimage with red triangles for moving the zoomed area
robcast
parents:
diff changeset
17 </tr>
2f4764230089 new digimage with red triangles for moving the zoomed area
robcast
parents:
diff changeset
18 <tr>
2f4764230089 new digimage with red triangles for moving the zoomed area
robcast
parents:
diff changeset
19 <td valign="center"><%
2f4764230089 new digimage with red triangles for moving the zoomed area
robcast
parents:
diff changeset
20 if (docBean.canMoveLeft()) {
2f4764230089 new digimage with red triangles for moving the zoomed area
robcast
parents:
diff changeset
21 %><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
22 }
2f4764230089 new digimage with red triangles for moving the zoomed area
robcast
parents:
diff changeset
23 %></td>
327
93b9bd7cbb20 fixed problems with Netscape4 (silly error by me partly :-)
robcast
parents: 313
diff changeset
24 <td>
93b9bd7cbb20 fixed problems with Netscape4 (silly error by me partly :-)
robcast
parents: 313
diff changeset
25 <%
93b9bd7cbb20 fixed problems with Netscape4 (silly error by me partly :-)
robcast
parents: 313
diff changeset
26 if(isN4) {
93b9bd7cbb20 fixed problems with Netscape4 (silly error by me partly :-)
robcast
parents: 313
diff changeset
27 %><ilayer name="scaler"><%
93b9bd7cbb20 fixed problems with Netscape4 (silly error by me partly :-)
robcast
parents: 313
diff changeset
28 } else {
93b9bd7cbb20 fixed problems with Netscape4 (silly error by me partly :-)
robcast
parents: 313
diff changeset
29 %><div id="scaler" style="visibility:visible"><%
93b9bd7cbb20 fixed problems with Netscape4 (silly error by me partly :-)
robcast
parents: 313
diff changeset
30 }
93b9bd7cbb20 fixed problems with Netscape4 (silly error by me partly :-)
robcast
parents: 313
diff changeset
31 %>
239
2f4764230089 new digimage with red triangles for moving the zoomed area
robcast
parents:
diff changeset
32 <script type="text/javascript">
2f4764230089 new digimage with red triangles for moving the zoomed area
robcast
parents:
diff changeset
33 var ps = bestPicSize(getElement('scaler'), 10);
2f4764230089 new digimage with red triangles for moving the zoomed area
robcast
parents:
diff changeset
34 document.write('<img id="pic" src="<%=
313
152ad1e1ca27 big autumn cleaning :-)
robcast
parents: 239
diff changeset
35 dlRequest.getAsString("base.url") + "/servlet/Scaler?" + dlRequest.getAsString('s')
239
2f4764230089 new digimage with red triangles for moving the zoomed area
robcast
parents:
diff changeset
36 %>&dw='+ps.width+'&dh='+ps.height+'" />');
2f4764230089 new digimage with red triangles for moving the zoomed area
robcast
parents:
diff changeset
37 </script>
327
93b9bd7cbb20 fixed problems with Netscape4 (silly error by me partly :-)
robcast
parents: 313
diff changeset
38 <%
93b9bd7cbb20 fixed problems with Netscape4 (silly error by me partly :-)
robcast
parents: 313
diff changeset
39 if(isN4) {
93b9bd7cbb20 fixed problems with Netscape4 (silly error by me partly :-)
robcast
parents: 313
diff changeset
40 %></ilayer><%
93b9bd7cbb20 fixed problems with Netscape4 (silly error by me partly :-)
robcast
parents: 313
diff changeset
41 } else {
93b9bd7cbb20 fixed problems with Netscape4 (silly error by me partly :-)
robcast
parents: 313
diff changeset
42 %></div><%
93b9bd7cbb20 fixed problems with Netscape4 (silly error by me partly :-)
robcast
parents: 313
diff changeset
43 }
93b9bd7cbb20 fixed problems with Netscape4 (silly error by me partly :-)
robcast
parents: 313
diff changeset
44 %>
239
2f4764230089 new digimage with red triangles for moving the zoomed area
robcast
parents:
diff changeset
45 </td>
2f4764230089 new digimage with red triangles for moving the zoomed area
robcast
parents:
diff changeset
46 <td valign="center"><%
2f4764230089 new digimage with red triangles for moving the zoomed area
robcast
parents:
diff changeset
47 if (docBean.canMoveRight()) {
2f4764230089 new digimage with red triangles for moving the zoomed area
robcast
parents:
diff changeset
48 %><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
49 }
2f4764230089 new digimage with red triangles for moving the zoomed area
robcast
parents:
diff changeset
50 %></td>
2f4764230089 new digimage with red triangles for moving the zoomed area
robcast
parents:
diff changeset
51 </tr>
2f4764230089 new digimage with red triangles for moving the zoomed area
robcast
parents:
diff changeset
52 <tr>
2f4764230089 new digimage with red triangles for moving the zoomed area
robcast
parents:
diff changeset
53 <td></td>
2f4764230089 new digimage with red triangles for moving the zoomed area
robcast
parents:
diff changeset
54 <td align="center"><%
2f4764230089 new digimage with red triangles for moving the zoomed area
robcast
parents:
diff changeset
55 if (docBean.canMoveDown()) {
2f4764230089 new digimage with red triangles for moving the zoomed area
robcast
parents:
diff changeset
56 %><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
57 }
2f4764230089 new digimage with red triangles for moving the zoomed area
robcast
parents:
diff changeset
58 %></td>
2f4764230089 new digimage with red triangles for moving the zoomed area
robcast
parents:
diff changeset
59 <td></td>
2f4764230089 new digimage with red triangles for moving the zoomed area
robcast
parents:
diff changeset
60 </tr>
2f4764230089 new digimage with red triangles for moving the zoomed area
robcast
parents:
diff changeset
61 </table>