comparison client/digitallibrary/dllib.js @ 238:1ccda61967b2

initial parameter parsing now earlier
author robcast
date Tue, 20 Jul 2004 15:29:25 +0200
parents 786c27786281
children 264c55606a4e
comparison
equal deleted inserted replaced
237:786c27786281 238:1ccda61967b2
191 * ******************************************** */ 191 * ******************************************** */
192 192
193 var elemScaler = null; 193 var elemScaler = null;
194 var picElem = null; 194 var picElem = null;
195 195
196
197 function dl_param_init() {
198 // parameter initialisation before onload
199
200 // put the query parameters (sans "?") in the parameters array
201 parseParameters(location.search.slice(1));
202 // treat special parameters
203 dlMarks = parseMarks();
204 dlArea = parseArea();
205 dlFlags = parseFlags();
206 }
207
208
196 function dl_init() { 209 function dl_init() {
210 // initalisation on load
197 elemScaler = getElement("scaler", true); 211 elemScaler = getElement("scaler", true);
198 picElem = getElement("pic", true); 212 picElem = getElement("pic", true);
199 if (picElem == null && elemScaler) { 213 if (picElem == null && elemScaler) {
200 // in N4 pic is in the scaler layer 214 // in N4 pic is in the scaler layer
201 picElem = elemScaler.document.images[0]; 215 picElem = elemScaler.document.images[0];
420 deleteMark(); 434 deleteMark();
421 renderMarks(); 435 renderMarks();
422 } 436 }
423 437
424 438
425 function getRef(select) { 439 function getRef() {
426 // returns a reference to the current digilib set 440 // returns a reference to the current digilib set
427 if (! baseUrl) { 441 if (! baseUrl) {
428 var baseUrl = location.protocol + "//" + location.host + location.pathname; 442 var baseUrl = location.protocol + "//" + location.host + location.pathname;
429 } 443 }
430 var hyperlinkRef = baseUrl; 444 var hyperlinkRef = baseUrl;