comparison client/digitallibrary/modules/pagesTotal.js @ 45:81f5e75718ac

bugfixes and new module
author luginbue
date Sun, 07 Jul 2002 18:03:54 +0200
parents e918bd61084d
children 56ff1711e367
comparison
equal deleted inserted replaced
44:9a3fc958fb43 45:81f5e75718ac
80 // the different detailGrades: 80 // the different detailGrades:
81 // 0 -> back, next, page 81 // 0 -> back, next, page
82 // 1 -> zoomout 82 // 1 -> zoomout
83 // 2 -> zoomarea, zoompoint, moveto, scaledef 83 // 2 -> zoomarea, zoompoint, moveto, scaledef
84 84
85 var newURL = "dlImage.jsp?" 85 var newQuery = "fn=" + att[0] + "&pn=" + att[1] + "&ws=" + att[2] + "&mo=" + att[3];
86 newURL += "fn=" + att[0] + "&pn=" + att[1] + "&ws=" + att[2] + "&mo=" + att[3];
87 86
88 if (detailGrade == 0) { 87 if (detailGrade == 0) {
89 att[4] = "0/0"; 88 att[4] = "0/0";
90 } 89 }
91 90
94 att[6] = 0; 93 att[6] = 0;
95 att[7] = 1; 94 att[7] = 1;
96 att[8] = 1; 95 att[8] = 1;
97 } 96 }
98 97
99 newURL += "&mk=" + att[4] + "&wx=" + att[5] + "&wy=" + att[6] + "&ww=" + att[7] + "&wh=" + att[8]; 98 newQuery += "&mk=" + att[4] + "&wx=" + att[5] + "&wy=" + att[6] + "&ww=" + att[7] + "&wh=" + att[8];
100 99
101 if (navigator.appName.toLowerCase() == "netscape") { // mozilla-browsers (netscape 4.xx, netscape 6.xx, etc.) 100 if (navigator.appName.toLowerCase() == "netscape") { // mozilla-browsers (netscape 4.xx, netscape 6.xx, etc.)
102 newURL += "&dw=" + (innerWidth-30) + "&dh=" + (innerHeight-30); 101 newQuery += "&dw=" + (innerWidth-30) + "&dh=" + (innerHeight-30);
103 } else { // ie 102 } else { // ie, opera
104 newURL += "&dw=" + (document.body.clientWidth-30) + "&dh=" + (document.body.clientHeight-30); 103 newQuery += "&dw=" + (document.body.clientWidth-30) + "&dh=" + (document.body.clientHeight-30);
105 } 104 }
106 105
107 newURL += "&pt=" + att[9]; 106 newQuery += "&pt=" + att[9];
108 107
109 // debug window - checking the parameters passed to the next image 108 // debug window - checking the parameters passed to the next image
110 //alert ("DEBUG MESSAGE (complete URL in loadPicture):\n\n" + newURL); 109 //alert ("DEBUG MESSAGE (query-string in loadPicture):\n\n" + newQuery);
111 110
112 location.href = newURL; 111 location.href = location.pathname + "?" + newQuery;
113 } 112 }