comparison client/digitallibrary/navcat_ie.js @ 120:cbfc008b4245

digicat takes mode argument as fourth argument (needed for speedy thumbnails with mo=fit,lores)
author robcast
date Wed, 11 Jun 2003 22:40:06 +0200
parents 866e798e2bef
children
comparison
equal deleted inserted replaced
119:8afac7d7c1e6 120:cbfc008b4245
36 for (i = 0; i < att[2]; i++) { 36 for (i = 0; i < att[2]; i++) {
37 whichFrame.document.write('<tr>'); 37 whichFrame.document.write('<tr>');
38 for (j = 0; j < att[3]; j++) { 38 for (j = 0; j < att[3]; j++) {
39 indexNr = parseInt(att[1])+i*parseInt(att[3])+j; 39 indexNr = parseInt(att[1])+i*parseInt(att[3])+j;
40 thumb = parent.baseUrl + "/servlet/Scaler/"; 40 thumb = parent.baseUrl + "/servlet/Scaler/";
41 thumb += att[0] + "?" + "pn=" + indexNr + "&ws=1.0&mo=fit&dw=" + cellWidth + "&dh=" + (cellHeight-25); 41 thumb += att[0] + "?" + "pn=" + indexNr + "&ws=1.0&mo=" + att[4] + "&dw=" + cellWidth + "&dh=" + (cellHeight-25);
42 whichFrame.document.write('<td align="center" valign="middle" width="' + cellWidth + '" height="' + cellHeight + '" class="myFont">'); 42 whichFrame.document.write('<td align="center" valign="middle" width="' + cellWidth + '" height="' + cellHeight + '" class="myFont">');
43 whichFrame.document.write('<a href="javascript:loadDigilib(' + indexNr + ')">'); 43 whichFrame.document.write('<a href="javascript:loadDigilib(' + indexNr + ')">');
44 whichFrame.document.write('<img src="' + thumb + '" border="0">'); 44 whichFrame.document.write('<img src="' + thumb + '" border="0">');
45 whichFrame.document.write('</a><br>'); 45 whichFrame.document.write('</a><br>');
46 whichFrame.document.write(indexNr + '</td>'); 46 whichFrame.document.write(indexNr + '</td>');