Revision 101a5e1f
Von Holger Lindemann vor fast 18 Jahren hinzugefügt
bin/mozilla/menunew.pl | ||
---|---|---|
151 | 151 |
</script> |
152 | 152 |
<table border="0" width="100%" background="image/bg_titel.gif" cellpadding="0" cellspacing="0"> |
153 | 153 |
<tr> |
154 |
<td style="color:white; font-family:verdana,arial,sans-serif; font-size: 12px;"> [<a href="JavaScript:top.main_window.print()">drucken</a>]</td> |
|
154 | 155 |
<td align="right" style="vertical-align:middle; color:white; font-family:verdana,arial,sans-serif; font-size: 12px;" nowrap>| |
155 | 156 |
. $login . $datum . qq| <script>writeclock()</script> |
156 | 157 |
</td> |
... | ... | |
262 | 263 |
this.target = target; |
263 | 264 |
this.ref = null; |
264 | 265 |
} |
266 |
function go(link) { |
|
267 |
top.main_window.location=link; |
|
268 |
} |
|
265 | 269 |
function writeMenus() { |
266 | 270 |
if (!isDOM && !isIE4 && !isNS4) return; |
267 | 271 |
for (currMenu = 0; currMenu < menu.length; currMenu++) with (menu[currMenu][0]) { |
... | ... | |
281 | 285 |
} |
282 | 286 |
if (borderClass) str += 'class="' + borderClass + '" '; |
283 | 287 |
str += 'onMouseOver="popOver(' + currMenu + ',' + currItem + ')" onMouseOut="popOut(' + currMenu + ',' + currItem + ')">'; |
284 |
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>'; |
|
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 | 294 |
if (target > 0) { |
286 | 295 |
menu[target][0].parentMenu = currMenu; |
287 | 296 |
menu[target][0].parentItem = currItem; |
... | ... | |
379 | 388 |
$main = 0; |
380 | 389 |
|
381 | 390 |
#$pm=0; |
391 |
$shlp=0; |
|
382 | 392 |
while (@menuorder) { |
383 | 393 |
$item = shift @menuorder; |
384 | 394 |
$label = $item; |
... | ... | |
392 | 402 |
if ($menu->{$item}{submenu}) { |
393 | 403 |
$menu->{$item}{$item} = !$form->{$item}; |
394 | 404 |
|
395 |
# Untermenü |
|
396 |
if ($mlz{"s$ml"} > 1) { $z = $mlz{"s$ml"}++; $sm = 1; } |
|
397 |
else { $z = $sm; $mlz{"s$ml"}++; } |
|
405 |
# Untermen |
|
406 |
if ($mlz{"s$ml"} > 1) { |
|
407 |
$z++; |
|
408 |
$sm = 1; |
|
409 |
} else { |
|
410 |
$z = $sm; |
|
411 |
$mlz{"s$ml"}++; |
|
412 |
} |
|
398 | 413 |
|
399 | 414 |
qq|menu[$mlz{$ml}][$z] = new Item('$label', '#', '', defLength, 0, | |
400 | 415 |
. ++$pm |
... | ... | |
422 | 437 |
$mm++; |
423 | 438 |
$pm++; |
424 | 439 |
%mlz = ($ml, $pm, "s$ml", 1); |
440 |
$shlp = $sm; |
|
425 | 441 |
$sm = 1; |
426 | 442 |
$breit = 15 + length($label) * 6; |
427 | 443 |
|
Auch abrufbar als: Unified diff
Fehler bei mehreren Untermenüs
Zur Auswahl muß nicht mehr direkt der Text angeklickt werden.