Revision db53fb4b
Von Moritz Bunkus vor fast 18 Jahren hinzugefügt
bin/mozilla/menunew.pl | ||
---|---|---|
263 | 263 |
this.target = target; |
264 | 264 |
this.ref = null; |
265 | 265 |
} |
266 |
function go(link) { |
|
267 |
top.main_window.location=link; |
|
268 |
} |
|
269 | 266 |
function writeMenus() { |
270 | 267 |
if (!isDOM && !isIE4 && !isNS4) return; |
271 | 268 |
for (currMenu = 0; currMenu < menu.length; currMenu++) with (menu[currMenu][0]) { |
... | ... | |
285 | 282 |
} |
286 | 283 |
if (borderClass) str += 'class="' + borderClass + '" '; |
287 | 284 |
str += 'onMouseOver="popOver(' + currMenu + ',' + currItem + ')" onMouseOut="popOut(' + currMenu + ',' + currItem + ')">'; |
288 |
str += '<table width="' + (w - 8) + '" border="0" cellspacing="0" cellpadding="' + (!isNS4 && borderClass ? 3 : 0) + '">'; |
|
289 |
if (href!="#") { |
|
290 |
str +='<tr><td align="left" height="' + (h - 7) + '" onClick=\\'go("' + href + '")\\'><a class="' + textClass + '" href="' + href + '"' + (frame ? ' target="' + frame + '">' : '>') + text + '</a></td>'; |
|
291 |
} else { |
|
292 |
str +='<tr><td align="left" height="' + (h - 7) + '"><a class="' + textClass + '" href="' + href + '"' + (frame ? ' target="' + frame + '">' : '>') + text + '</a></td>'; |
|
293 |
} |
|
285 |
str += '<table width="' + (w - 8) + '" border="0" cellspacing="0" cellpadding="' + (!isNS4 && borderClass ? 3 : 0) + '"><tr><td align="left" height="' + (h - 7) + '">' + '<a class="' + textClass + '" href="' + href + '"' + (frame ? ' target="' + frame + '">' : '>') + text + '</a></td>'; |
|
294 | 286 |
if (target > 0) { |
295 | 287 |
menu[target][0].parentMenu = currMenu; |
296 | 288 |
menu[target][0].parentItem = currItem; |
Auch abrufbar als: Unified diff
Änderungen von Holger: ein Fehler und mehr Komfort