Mercurial > hg > digilib-old
comparison client/digitallibrary/greyskin/diginew.jsp @ 445:6154dfc67615
pageWidth (not yet working in IE)
author | hertzhaft |
---|---|
date | Fri, 13 Jan 2006 12:31:00 +0100 |
parents | 089adc9e2a5f |
children | 4255c09a8147 |
comparison
equal
deleted
inserted
replaced
444:5827dd2d3ccc | 445:6154dfc67615 |
---|---|
57 var isOriginalSize = false; | 57 var isOriginalSize = false; |
58 var isPixelByPixel = false; | 58 var isPixelByPixel = false; |
59 var dlTarget = window.name; | 59 var dlTarget = window.name; |
60 var baseUrl = '<%= dlRequest.getAsString("base.url") %>'; | 60 var baseUrl = '<%= dlRequest.getAsString("base.url") %>'; |
61 var toolbarEnabledURL = window.location.href; | 61 var toolbarEnabledURL = window.location.href; |
62 var timeOut; | 62 var waited = 0; |
63 | 63 |
64 function toggleOptionDiv() { | 64 function toggleOptionDiv() { |
65 isOptionDivVisible = !isOptionDivVisible; | 65 isOptionDivVisible = !isOptionDivVisible; |
66 cookie.addbool("isOptionDivVisible", isOptionDivVisible); | 66 cookie.addbool("isOptionDivVisible", isOptionDivVisible); |
67 showOptions(isOptionDivVisible); | 67 showOptions(isOptionDivVisible); |
120 if (hasParameter("rot")) | 120 if (hasParameter("rot")) |
121 setOnImage("rot", "rotate-on.png", getParameter("rot")); | 121 setOnImage("rot", "rotate-on.png", getParameter("rot")); |
122 if (hasParameter("rgb")) | 122 if (hasParameter("rgb")) |
123 setOnImage("rgb", "rgb-on.png", getParameter("rgb")); | 123 setOnImage("rgb", "rgb-on.png", getParameter("rgb")); |
124 } | 124 } |
125 | 125 function onImgLoad() { |
126 // initialize image; called by body.onload | 126 // make sure the image is loaded so we know its size |
127 if (defined(scalerImg.complete) && !scalerImg.complete && !browserType.isN4 ) { | |
128 setTimeout("onImgLoad()", 100); | |
129 waited += 100; | |
130 return; | |
131 } | |
132 reflectImageStatus(); // adjust icons | |
133 showOptions(isOptionDivVisible); | |
134 showBirdDiv(isBirdDivVisible); | |
135 showArrows(); // show arrow overlays for zoom navigation | |
136 moveCenter(true); // click to move point to center | |
137 // new Slider("sizes", 1, 5, 2); | |
138 } | |
139 | |
140 // initialize digilib; called by body.onload | |
127 function onBodyLoad() { | 141 function onBodyLoad() { |
128 document.id = 'digilib'; | 142 document.id = 'digilib'; |
129 initParameters(); // load default values and detail | 143 initParameters(); // load default values and detail |
130 dl_param_init(); // parse parameter values | 144 dl_param_init(); // parse parameter values |
131 loadScalerImage(); // ruft auch dl_init() / initScaler auf | 145 loadScalerImage(); // ruft auch dl_init() / initScaler auf |
132 loadBirdImage(); // lädt das Bird's Eye Bild | 146 loadBirdImage(); // lädt das Bird's Eye Bild |
133 reflectImageStatus(); // adjust icons | 147 onImgLoad(); |
134 showOptions(isOptionDivVisible); | |
135 showBirdDiv(isBirdDivVisible); | |
136 showArrows(); // show arrow overlays for zoom navigation | |
137 moveCenter(true); // click to move point to center | |
138 } | 148 } |
139 | 149 |
140 function onBodyUnload() { | 150 function onBodyUnload() { |
141 // alert(strObject(cookie)); | 151 // alert(strObject(cookie)); |
142 cookie.store(); | 152 cookie.store(); |
198 <div id="sizes"> | 208 <div id="sizes"> |
199 <p><a href="javascript:resize(1)">1 x</a></p> | 209 <p><a href="javascript:resize(1)">1 x</a></p> |
200 <p><a href="javascript:resize(1.41)">1.41 x</a></p> | 210 <p><a href="javascript:resize(1.41)">1.41 x</a></p> |
201 <p><a href="javascript:resize(2)">2 x</a></p> | 211 <p><a href="javascript:resize(2)">2 x</a></p> |
202 <p><a href="javascript:resize(3)">3 x</a></p> | 212 <p><a href="javascript:resize(3)">3 x</a></p> |
213 <div id="sizes-bar"> | |
214 <div id="sizes-slider"></div> | |
215 </div> | |
216 <p id="sizes-value"></p> | |
203 </div> | 217 </div> |
204 | 218 |
205 <!-- the buttons --> | 219 <!-- the buttons --> |
206 <div id="buttons"> | 220 <div id="buttons"> |
207 <div class="separator"> | 221 <div class="separator"> |