comparison client/digitallibrary/navigation_n4.js @ 38:44f653ae5df5

opera support done, bugfixes
author luginbue
date Tue, 21 May 2002 02:29:41 +0200
parents 930413351738
children 866e798e2bef
comparison
equal deleted inserted replaced
37:79f1deeb18c4 38:44f653ae5df5
65 // 1 -> zoomout 65 // 1 -> zoomout
66 // 2 -> zoomarea, zoompoint, moveto, scaledef 66 // 2 -> zoomarea, zoompoint, moveto, scaledef
67 67
68 function loadPicture(detailGrade, keepArea) { 68 function loadPicture(detailGrade, keepArea) {
69 69
70 var newURL = "dlImage.jsp?" 70 var newQuery = "fn=" + att[0] + "&pn=" + att[1] + "&ws=" + att[2] + "&mo=" + att[3];
71 newURL += "fn=" + att[0] + "&pn=" + att[1] + "&ws=" + att[2] + "&mo=" + att[3];
72 71
73 if (detailGrade == 0) { 72 if (detailGrade == 0) {
74 att[4] = "0/0"; 73 att[4] = "0/0";
75 } 74 }
76 75
79 att[6] = 0; 78 att[6] = 0;
80 att[7] = 1; 79 att[7] = 1;
81 att[8] = 1; 80 att[8] = 1;
82 } 81 }
83 82
84 newURL += "&mk=" + att[4] + "&wx=" + att[5] + "&wy=" + att[6] + "&ww=" + att[7] + "&wh=" + att[8]; 83 newQuery += "&mk=" + att[4] + "&wx=" + att[5] + "&wy=" + att[6] + "&ww=" + att[7] + "&wh=" + att[8];
85 newURL += "&dw=" + (innerWidth-30) + "&dh=" + (innerHeight-30); 84 newQuery += "&dw=" + (innerWidth-30) + "&dh=" + (innerHeight-30);
86 85
87 // debug window - checking the parameters passed to the next image 86 // debug window - checking the parameters passed to the next image
88 //alert ("DEBUG MESSAGE (complete URL in loadPicture):\n\n" + newURL); 87 //alert ("DEBUG MESSAGE (query-string in loadPicture):\n\n" + newQuery);
89 88
90 location.href = newURL; 89 location.href = location.pathname + "?" + newQuery;
91 } 90 }
92 91
93 92
94 // constructor holding different values of a point 93 // constructor holding different values of a point
95 function Point(event) { 94 function Point(event) {