Mercurial > hg > digilib-old
changeset 137:4f1752d80560
more unnecessary files 'removed'
author | luginbue |
---|---|
date | Tue, 08 Jul 2003 03:05:07 +0200 |
parents | 829cab910c99 |
children | d18b0ff52b07 |
files | client/digitallibrary/buttons/menu.js client/digitallibrary/dlMenu.html |
diffstat | 2 files changed, 245 insertions(+), 254 deletions(-) [+] |
line wrap: on
line diff
--- a/client/digitallibrary/buttons/menu.js Tue Jul 08 03:05:07 2003 +0200 +++ b/client/digitallibrary/buttons/menu.js Tue Jul 08 03:05:07 2003 +0200 @@ -1,9 +1,9 @@ function checkBrowser() { - this.ua = navigator.userAgent; - this.ver = navigator.appVersion; + this.ua = navigator.userAgent; + this.ver = navigator.appVersion; this.dom = ( document.getElementById ); - this.opera = ( this.dom ) && ( this.ua.toLowerCase().indexOf("opera") > -1 ); + this.opera = ( this.dom ) && ( this.ua.toLowerCase().indexOf("opera") > -1 ); this.ie4 = ( document.all ) && ( !this.dom ); this.ie5 = ( this.ver.indexOf("MSIE 5") > -1 ) && ( this.dom ); this.ie6 = ( this.ver.indexOf("MSIE 6") > -1 ) && ( this.dom ); @@ -11,231 +11,230 @@ this.ns6 = ( this.dom ) && ( parseInt(this.ver) >= 5 ) && ( !this.opera ); this.ns = this.ns4 || this.ns6; this.ie = this.ie4 || this.ie5 || this.ie6; - + + return this; +} + +browser = new checkBrowser(); + +function changeBc(obj, color){ + var div; + + if (color == '' && browser.ns4) color = null; + + if (browser.ns4) div = document.layers[obj]; + else if (browser.dom) div = document.getElementById(obj).style; + else if (browser.ie) div = document.all[obj].style; + + if (browser.dom || browser.ie) div.backgroundColor = color; + if (browser.ns4) div.bgColor = color; +} + +function makeArray(n){ + this.length = n; + for (var i = 0; i < n; i++) { + this[i] = new Image(); + } + return this; } - -browser = new checkBrowser(); - -function changeBc(obj, color){ - var div; - - if (color == '' && browser.ns4) color = null; - - if (browser.ns4) div = document.layers[obj]; - else if (browser.dom) div = document.getElementById(obj).style; - else if (browser.ie) div = document.all[obj].style; - - if (browser.dom || browser.ie) div.backgroundColor = color; - if (browser.ns4) div.bgColor = color; -} - -function makeArray(n){ - this.length = n; - for (var i = 0; i < n; i++) { - this[i] = new Image(); - } - - return this; -} - -function preloadImages() { - over = new makeArray(document.images.length); - away = new makeArray(document.images.length); - - for (i = 0; i < document.images.length; i++) { - currName = document.images[i].src.slice(0, document.images[i].src.lastIndexOf('.')-1); - away[i].src = currName + "0.gif"; - over[i].src = currName + "1.gif"; - } -} - -function overButton(n) { - currButton = document.images[n]; - - currButton.src = over[n].src; - if (showHelp) contextHelp(n); -} - -function awayButton(n) { - currButton = document.images[n]; - - currButton.src = away[n].src; -} - -function overItem(obj) { - changeBc("menu" + obj, '#770000'); - clearTimeout(timeID); -} - -function awayItem(obj) { - changeBc("menu" + obj, '#666666'); - timeID = setTimeout("hideMenu()", 700); -} - -var timeID = null; - -function changeMark(obj) { - var object; - - if (browser.ns4) object = document.layers["menu" + obj].document.images[0]; - else if (browser.dom) object = document.getElementById("mark" + obj); - else if (browser.ie) object = document.all["mark" + obj]; - - var path = object.src.slice(0, object.src.lastIndexOf('/')+1); - - object.src = (object.src.indexOf("nomark") > -1) ? path + "mark.gif" : path + "nomark.gif"; -} - -function showMenu(obj) { - menu(obj, true); -} - -function menu(obj, show) { - var currObj = "menu" + obj; - var idx = 0; - while(true) { - if (browser.ns4 && document.layers[currObj]) document.layers[currObj].visibility = (show) ? "show" : "hide"; - else if (browser.dom && document.getElementById(currObj)) document.getElementById(currObj).style.visibility = (show) ? "visible" : "hidden"; - else if (browser.ie && document.all[currObj]) document.all[currObj].style.visibility = (show) ? "visible" : "hidden"; - else break; - - currObj = "menu" + obj + (++idx); - } - if (!show) activeMenu = ''; - else activeMenu = obj; - - timeID = setTimeout("hideMenu()", 2000); -} - -function hideMenu() { - if (activeMenu != '') menu(activeMenu, false); - clearTimeout(timeID); -} - -var activeMenu = ''; - - -// just to be sure, that no buffer overflow can arrive -var semaphor = true; - -function contextHelp(n) { - - if (helpWindow.closed) { - changeMark(31); - changeHelp(); - return; - } - - if ((navigator.appVersion.indexOf("Macintosh") < 0) && semaphor) { - semaphor = false; - var help = helpText[n].split("|"); - - helpWindow.focus(); - helpWindow.document.open(); - helpWindow.document.write('<html><head><title>Context Help</title>'); - helpWindow.document.write('<style type="text/css">'); - helpWindow.document.write('.title {font-family: Verdana, sans-serif, Arial; font-size: 12px; font-weight: bold; color: #FFFFFF}'); - helpWindow.document.write('.text {font-family: Verdana, sans-serif, Arial; font-size: 10px; color: #000000}'); - helpWindow.document.write('</style></head><body bgcolor="#CCCCCC" leftmargin="7" topmargin="7" marginwidth="7" marginheight="7" onload="opener.semaphor = true;">'); - helpWindow.document.write('<table width="99%" border="0" cellspacing="0" cellpadding="3"><tr><td bgcolor="#666666" class="title">'); - helpWindow.document.write(help[0] + '</tr><tr><td class="text">'); - helpWindow.document.write(help[1] + '</tr></td></table></body></html>'); - helpWindow.document.close(); - - // stupid workaround because of netscape 6, that doesen't know the opener property - // this workaround is still ok because netscape 6 has eventbuffer checks so no overflow - if (browser.ns6) { - semaphor = true; - } - - // next stupid workaround because of opera 6, that somehow don't start the 'onLoad'- - // attribute in the body tag (the helpwindow does not finish loading) - if (browser.opera) { - setTimeout("semaphor = true;", 50); - } - - } - -} - -function openContextHelp() { - if (navigator.appVersion.indexOf("Macintosh") > -1) { - openContextHelpMac(); - return; - } - - semaphor = false; - - var winWidth = 270; - var winHeight = 130; - - var xScreen = 0.9*(screen.width-winWidth); - var yScreen = 0.8*(screen.height-winHeight); - - helpWindow = window.open("", "ContextHelp", "width=" + winWidth + ",height=" + winHeight + ",screenX=" + xScreen + ",screenY=" + yScreen + ",left=" + xScreen + ",top=" + yScreen); - - helpWindow.focus(); - helpWindow.document.open(); - helpWindow.document.write('<html><head><title>Context Help</title>'); - helpWindow.document.write('<style type="text/css">'); - helpWindow.document.write('.title {font-family: Verdana, sans-serif, Arial; font-size: 12px; font-weight: bold; color: #FFFFFF}'); - helpWindow.document.write('.text {font-family: Verdana, sans-serif, Arial; font-size: 10px; color: #000000}'); - helpWindow.document.write('</style></head><body bgcolor="#CCCCCC" leftmargin="7" topmargin="7" marginwidth="7" marginheight="7">'); - helpWindow.document.write('<table width="99%" border="0" cellspacing="0" cellpadding="3"><tr><td bgcolor="#666666" class="title">'); - helpWindow.document.write('Context Help</tr><tr><td class="text">'); - helpWindow.document.write('Move over any button to get some more information about its function</tr></td></table></body></html>'); - helpWindow.document.close(); - - // for some safety reason help-requests have to be blocked while opening the window - setTimeout("semaphor = true;", 200); -} - -// because macs have a strange window focus behaviour we have to go a special -// way for them - just opening a window that contains all button-descriptions -function openContextHelpMac() { - - var winWidth = 270; - var winHeight = 600; - - var xScreen = 0.9*(screen.width-winWidth); - var yScreen = 0.8*(screen.height-winHeight); - - helpWindow = window.open("", "ContextHelp", "width=" + winWidth + ",height=" + winHeight + ",screenX=" + xScreen + ",screenY=" + yScreen + ",left=" + xScreen + ",top=" + yScreen + ",scrollbars"); - - helpWindow.focus(); - helpWindow.document.open(); - helpWindow.document.write('<html><head><title>Context Help Macintosh</title>'); - helpWindow.document.write('<style type="text/css">'); - helpWindow.document.write('.title {font-family: Verdana, sans-serif, Arial; font-size: 12px; font-weight: bold; color: #FFFFFF}'); - helpWindow.document.write('.text {font-family: Verdana, sans-serif, Arial; font-size: 10px; color: #000000}'); - helpWindow.document.write('</style></head><body bgcolor="#CCCCCC" leftmargin="7" topmargin="7" marginwidth="7" marginheight="7">'); - helpWindow.document.write('<table width="99%" border="0" cellspacing="0" cellpadding="3">'); - - for (n = 0; n < helpText.length; n++) { - - help = helpText[n].split("|"); - helpWindow.document.write('<tr><td bgcolor="#666666" class="title">'); - helpWindow.document.write(help[0] + '</tr><tr><td class="text">'); - helpWindow.document.write('<p>' + help[1] + '<br> </p></tr></td>'); - } - helpWindow.document.write('</table></body></html>'); - helpWindow.document.close(); -} - - -function closeContextHelp() { - if (helpWindow != '' && !helpWindow.closed) { - helpWindow.close(); - } - helpWindow = ''; -} - -function changeHelp() { - showHelp = !showHelp; - showHelp ? openContextHelp() : closeContextHelp(); -} - - -// variable containing the contextwindow + +function preloadImages() { + over = new makeArray(document.images.length); + away = new makeArray(document.images.length); + + for (i = 0; i < document.images.length; i++) { + currName = document.images[i].src.slice(0, document.images[i].src.lastIndexOf('.')-1); + away[i].src = currName + "0.gif"; + over[i].src = currName + "1.gif"; + } +} + +function overButton(n) { + currButton = document.images[n]; + + currButton.src = over[n].src; + if (showHelp) contextHelp(n); +} + +function awayButton(n) { + currButton = document.images[n]; + + currButton.src = away[n].src; +} + +function overItem(obj) { + changeBc("menu" + obj, '#770000'); + clearTimeout(timeID); +} + +function awayItem(obj) { + changeBc("menu" + obj, '#666666'); + timeID = setTimeout("hideMenu()", 700); +} + +var timeID = null; + +function changeMark(obj) { + var object; + + if (browser.ns4) object = document.layers["menu" + obj].document.images[0]; + else if (browser.dom) object = document.getElementById("mark" + obj); + else if (browser.ie) object = document.all["mark" + obj]; + + var path = object.src.slice(0, object.src.lastIndexOf('/')+1); + + object.src = (object.src.indexOf("nomark") > -1) ? path + "mark.gif" : path + "nomark.gif"; +} + +function showMenu(obj) { + menu(obj, true); +} + +function menu(obj, show) { + var currObj = "menu" + obj; + var idx = 0; + while(true) { + if (browser.ns4 && document.layers[currObj]) document.layers[currObj].visibility = (show) ? "show" : "hide"; + else if (browser.dom && document.getElementById(currObj)) document.getElementById(currObj).style.visibility = (show) ? "visible" : "hidden"; + else if (browser.ie && document.all[currObj]) document.all[currObj].style.visibility = (show) ? "visible" : "hidden"; + else break; + + currObj = "menu" + obj + (++idx); + } + if (!show) activeMenu = ''; + else activeMenu = obj; + + timeID = setTimeout("hideMenu()", 2000); +} + +function hideMenu() { + if (activeMenu != '') menu(activeMenu, false); + clearTimeout(timeID); +} + +var activeMenu = ''; + + +// just to be sure, that no buffer overflow can arrive +var semaphor = true; + +function contextHelp(n) { + + if (helpWindow.closed) { + changeMark(31); + changeHelp(); + return; + } + + if ((navigator.appVersion.indexOf("Macintosh") < 0) && semaphor) { + semaphor = false; + var help = helpText[n].split("|"); + + helpWindow.focus(); + helpWindow.document.open(); + helpWindow.document.write('<html><head><title>Context Help</title>'); + helpWindow.document.write('<style type="text/css">'); + helpWindow.document.write('.title {font-family: Verdana, sans-serif, Arial; font-size: 12px; font-weight: bold; color: #FFFFFF}'); + helpWindow.document.write('.text {font-family: Verdana, sans-serif, Arial; font-size: 10px; color: #000000}'); + helpWindow.document.write('</style></head><body bgcolor="#CCCCCC" leftmargin="7" topmargin="7" marginwidth="7" marginheight="7" onload="opener.semaphor = true;">'); + helpWindow.document.write('<table width="99%" border="0" cellspacing="0" cellpadding="3"><tr><td bgcolor="#666666" class="title">'); + helpWindow.document.write(help[0] + '</tr><tr><td class="text">'); + helpWindow.document.write(help[1] + '</tr></td></table></body></html>'); + helpWindow.document.close(); + + // stupid workaround because of netscape 6, that doesen't know the opener property + // this workaround is still ok because netscape 6 has eventbuffer checks so no overflow + if (browser.ns6) { + semaphor = true; + } + + // next stupid workaround because of opera 6, that somehow don't start the 'onLoad'- + // attribute in the body tag (the helpwindow does not finish loading) + if (browser.opera) { + setTimeout("semaphor = true;", 50); + } + + } +} + +function openContextHelp() { + if (navigator.appVersion.indexOf("Macintosh") > -1) { + openContextHelpMac(); + return; + } + + semaphor = false; + + var winWidth = 270; + var winHeight = 130; + + var xScreen = 0.9*(screen.width-winWidth); + var yScreen = 0.8*(screen.height-winHeight); + + helpWindow = window.open("", "ContextHelp", "width=" + winWidth + ",height=" + winHeight + ",screenX=" + xScreen + ",screenY=" + yScreen + ",left=" + xScreen + ",top=" + yScreen); + + helpWindow.focus(); + helpWindow.document.open(); + helpWindow.document.write('<html><head><title>Context Help</title>'); + helpWindow.document.write('<style type="text/css">'); + helpWindow.document.write('.title {font-family: Verdana, sans-serif, Arial; font-size: 12px; font-weight: bold; color: #FFFFFF}'); + helpWindow.document.write('.text {font-family: Verdana, sans-serif, Arial; font-size: 10px; color: #000000}'); + helpWindow.document.write('</style></head><body bgcolor="#CCCCCC" leftmargin="7" topmargin="7" marginwidth="7" marginheight="7">'); + helpWindow.document.write('<table width="99%" border="0" cellspacing="0" cellpadding="3"><tr><td bgcolor="#666666" class="title">'); + helpWindow.document.write('Context Help</tr><tr><td class="text">'); + helpWindow.document.write('Move over any button to get some more information about its function</tr></td></table></body></html>'); + helpWindow.document.close(); + + // for some safety reason help-requests have to be blocked while opening the window + setTimeout("semaphor = true;", 200); +} + +// because macs have a strange window focus behaviour we have to go a special +// way for them - just opening a window that contains all button-descriptions +function openContextHelpMac() { + + var winWidth = 270; + var winHeight = 600; + + var xScreen = 0.9*(screen.width-winWidth); + var yScreen = 0.8*(screen.height-winHeight); + + helpWindow = window.open("", "ContextHelp", "width=" + winWidth + ",height=" + winHeight + ",screenX=" + xScreen + ",screenY=" + yScreen + ",left=" + xScreen + ",top=" + yScreen + ",scrollbars"); + + helpWindow.focus(); + helpWindow.document.open(); + helpWindow.document.write('<html><head><title>Context Help Macintosh</title>'); + helpWindow.document.write('<style type="text/css">'); + helpWindow.document.write('.title {font-family: Verdana, sans-serif, Arial; font-size: 12px; font-weight: bold; color: #FFFFFF}'); + helpWindow.document.write('.text {font-family: Verdana, sans-serif, Arial; font-size: 10px; color: #000000}'); + helpWindow.document.write('</style></head><body bgcolor="#CCCCCC" leftmargin="7" topmargin="7" marginwidth="7" marginheight="7">'); + helpWindow.document.write('<table width="99%" border="0" cellspacing="0" cellpadding="3">'); + + for (n = 0; n < helpText.length; n++) { + + help = helpText[n].split("|"); + helpWindow.document.write('<tr><td bgcolor="#666666" class="title">'); + helpWindow.document.write(help[0] + '</tr><tr><td class="text">'); + helpWindow.document.write('<p>' + help[1] + '<br> </p></tr></td>'); + } + helpWindow.document.write('</table></body></html>'); + helpWindow.document.close(); +} + + +function closeContextHelp() { + if (helpWindow != '' && !helpWindow.closed) { + helpWindow.close(); + } + helpWindow = ''; +} + +function changeHelp() { + showHelp = !showHelp; + showHelp ? openContextHelp() : closeContextHelp(); +} + + +// variable containing the contextwindow var helpWindow = ''; \ No newline at end of file
--- a/client/digitallibrary/dlMenu.html Tue Jul 08 03:05:07 2003 +0200 +++ b/client/digitallibrary/dlMenu.html Tue Jul 08 03:05:07 2003 +0200 @@ -32,8 +32,7 @@ helpText[8] = "'zoom out'-button|To gain the original unzoomed picture, click on 'zoom out'.<br>Note that any set marks are still saved at their positions."; helpText[9] = "'move to'-button|This button allows you change the center of a zoomed picture, while not changing the current zoom-factor.<br>Use: Click on the point in the picture you want to be the new center of the image."; helpText[10] = "'scale'-button|By clicking on one of the menu entries you can select the factor the currently displayed picture will be scaled.<br>Note: a scale factor of '1.0' means that the picture fits right into the working area, while '2.0' means that it will be twice as high and large."; -//helpText[11] = "'make pdf'-button|You can make a PDF with several pictures from this directory in it. Click the button and follow the instructions."; -helpText[12] = "'?'-button|In its menu you are able change options like the visibility of this contextsensitive help, with 'Keep area' the program keeps its current area when changing to another page or with 'Fit GIFs' you can force to program to adjust the size of GIF-images to the working area."; +helpText[11] = "'?'-button|In its menu you are able change options like the visibility of this contextsensitive help, with 'Keep area' the program keeps its current area when changing to another page or with 'Fit GIFs' you can force to program to adjust the size of GIF-images to the working area."; // boolean variable to eighter show or not show the additional help @@ -41,18 +40,17 @@ var showHelp = false; // variable to tell if while changing to another page it should keep the area -// change in the menuitem its original mark -var keepArea = true; +// change in the menuitem its original mark (1 = false, 2 = true) +var keepArea = 2; + +function page() { -// changes to the correct mark of menu33 (fit GIFs) -// I know it is not very nice to do it this way -function checkAtt3() { - if (parent.mainFrame && parent.mainFrame.att) { - if (parent.mainFrame.att.length >= 3) { - if (parent.mainFrame.att[3].indexOf('f') > -1) changeMark(33); - } - } else { - setTimeout("checkAtt3()", 100); + do { + p = prompt("Goto Page:", 1); + } while ((p != null) && (p < 1)); + + if (p != null && p != parseInt(parent.mainFrame.getParameter('pn'))) { + parent.mainFrame.page(p, keepArea); } } @@ -60,21 +58,18 @@ </head> <body bgcolor="#CCCCCC" leftmargin="8" marginwidth="8" topmargin="5" marginheight="5" onload="preloadImages();" onunload="closeContextHelp()"> -<a href="javascript:parent.mainFrame.backPage(keepArea)" onmouseover="overButton(0)" onmouseout="awayButton(0)"><img src="buttons/back0.gif" width="73" height="30" border="0"></a><br> -<a href="javascript:parent.mainFrame.nextPage(keepArea)" onmouseover="overButton(1)" onmouseout="awayButton(1)"><img src="buttons/next0.gif" width="73" height="30" border="0"></a><br> -<a href="javascript:parent.mainFrame.page(keepArea)" onmouseover="overButton(2)" onmouseout="awayButton(2)"><img src="buttons/page0.gif" width="73" height="30" border="0"></a><br> +<a href="javascript:parent.mainFrame.page('-1', keepArea)" onmouseover="overButton(0)" onmouseout="awayButton(0)"><img src="buttons/back0.gif" width="73" height="30" border="0"></a><br> +<a href="javascript:parent.mainFrame.page('+1', keepArea)" onmouseover="overButton(1)" onmouseout="awayButton(1)"><img src="buttons/next0.gif" width="73" height="30" border="0"></a><br> +<a href="javascript:page()" onmouseover="overButton(2)" onmouseout="awayButton(2)"><img src="buttons/page0.gif" width="73" height="30" border="0"></a><br> <a href="javascript:parent.mainFrame.digicat()" onmouseover="overButton(3)" onmouseout="awayButton(3)"><img src="buttons/digicat0.gif" width="73" height="30" border="0"></a><br><br> <a href="javascript:parent.mainFrame.mark()" onmouseover="overButton(4)" onmouseout="awayButton(4)"><img src="buttons/mark0.gif" width="73" height="30" border="0"></a><br> <a href="javascript:hideMenu(); showMenu(1)" onmouseover="overButton(5)" onmouseout="awayButton(5)"><img src="buttons/reference0.gif" width="73" height="30" border="0"></a><br><br> <a href="javascript:parent.mainFrame.zoomArea()" onmouseover="overButton(6)" onmouseout="awayButton(6)"><img src="buttons/zoomarea0.gif" width="73" height="30" border="0"></a><br> <a href="javascript:parent.mainFrame.zoomPoint()" onmouseover="overButton(7)" onmouseout="awayButton(7)"><img src="buttons/zoompoint0.gif" width="73" height="30" border="0"></a><br> -<a href="javascript:parent.mainFrame.zoomOut()" onmouseover="overButton(8)" onmouseout="awayButton(8)"><img src="buttons/zoomout0.gif" width="73" height="30" border="0"></a><br> +<a href="javascript:parent.mainFrame.zoomExtends()" onmouseover="overButton(8)" onmouseout="awayButton(8)"><img src="buttons/zoomout0.gif" width="73" height="30" border="0"></a><br> <a href="javascript:parent.mainFrame.moveTo()" onmouseover="overButton(9)" onmouseout="awayButton(9)"><img src="buttons/moveto0.gif" width="73" height="30" border="0"></a><br><br> <a href="javascript:hideMenu(); showMenu(2)" onmouseover="overButton(10)" onmouseout="awayButton(10)"><img src="buttons/scale0.gif" width="73" height="30" border="0"></a><br><br> -<!-- -<a href="javascript:parent.mainFrame.makePDF()" onmouseover="overButton(11)" onmouseout="awayButton(11)"><img src="buttons/makepdf0.gif" width="73" height="30" border="0"></a><br><br> ---> -<a href="javascript:hideMenu(); showMenu(3)" onmouseover="overButton(12)" onmouseout="awayButton(12)"><img src="buttons/questionmark0.gif" width="73" height="30" border="0"></a> +<a href="javascript:hideMenu(); showMenu(3)" onmouseover="overButton(11)" onmouseout="awayButton(11)"><img src="buttons/questionmark0.gif" width="73" height="30" border="0"></a> <div id="menu1" class="menu" style="top:201; left:31; width:54; height:33; clip:rect(0,54,33,0)"></div> <div id="menu11" class="item1" style="top:203"><center><a href="#" class="text" onClick="hideMenu(); parent.mainFrame.ref(0); return false;" onmouseover="overItem(11)" onmouseout="awayItem(11)">LaTeX</a></center></div> @@ -88,10 +83,9 @@ <div id="menu25" class="item2" style="top:441"><center><a href="#" class="text" onClick="hideMenu(); parent.mainFrame.scale(2.5); return false;" onmouseover="overItem(25)" onmouseout="awayItem(25)">2.5</a></center></div> <div id="menu26" class="item2" style="top:456"><center><a href="#" class="text" onClick="hideMenu(); parent.mainFrame.scale(3.0); return false;" onmouseover="overItem(26)" onmouseout="awayItem(26)">3.0</a></center></div> -<div id="menu3" class="menu" style="top:430; left:1; width:84; height:48; clip:rect(0,84,48,0)"></div> +<div id="menu3" class="menu" style="top:430; left:1; width:84; height:33; clip:rect(0,84,33,0)"></div> <div id="menu31" class="item3" style="top:432"><center><a href="#" class="text" onclick="changeMark(31); hideMenu(); changeHelp(); return false;" onmouseover="overItem(31)" onmouseout="awayItem(31)"><img id="mark31" src="buttons/nomark.gif" border="0">Contexthelp</a></center></div> - <div id="menu32" class="item3" style="top:447"><center><a href="#" class="text" onclick="changeMark(32); keepArea = !keepArea; return false;" onmouseover="overItem(32)" onmouseout="awayItem(32)"><img id="mark32" src="buttons/mark.gif" border="0">Keep area</a></center></div> - <div id="menu33" class="item3" style="top:462"><center><a href="#" class="text" onclick="changeMark(33); (parent.mainFrame.att[3].indexOf('f') > -1) ? parent.mainFrame.att[3] = '' : parent.mainFrame.att[3] = 'fit'; parent.mainFrame.loadPicture(2, keepArea); return false;" onmouseover="overItem(33)" onmouseout="awayItem(33)"><img id="mark33" src="buttons/nomark.gif" border="0">Fit GIFs</a></center></div> + <div id="menu32" class="item3" style="top:447"><center><a href="#" class="text" onclick="changeMark(32); keepArea = (keepArea == 1) ? 2 : 1; return false;" onmouseover="overItem(32)" onmouseout="awayItem(32)"><img id="mark32" src="buttons/mark.gif" border="0">Keep area</a></center></div> <script language="Javascript"> @@ -101,8 +95,6 @@ changeBc("menu2", "#666666"); changeBc("menu3", "#666666"); -// launch the initial check of att[3] (fit gifs) and change to the correct mark -checkAtt3(); </script> </body> </html>