Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 836399e0

Von Moritz Bunkus vor mehr als 17 Jahren hinzugefügt

  • ID 836399e0b0c5b281fa3ec3046d7baec456a0bbe4
  • Vorgänger 4ff0cb66
  • Nachfolger 2fc0c33e

Farbgebung des Javascript-Menüs an die Farbgebung des CSS-Menüs angepasst.

Unterschiede anzeigen:

bin/mozilla/menunew.pl
132 132
  $| = 1;
133 133

  
134 134
  print qq|
135
<style>
136
<!--
137

  
138
.itemBorder {
139
  border: 1px solid black
140
}
141

  
142
.itemText {
143
  text-decoration: none;
144
  color: #000000;
145
  font: 12px Arial, Helvetica
146
}
147

  
148
.rootItemText {
149
  text-decoration: none;
150
  color: #ffffff;
151
  font: 12px Arial, Helvetica
152
}
153

  
154
.menu {
155
  color:#ffffff;
156
  background:url(image/bg_css_menu.png) repeat bottom;
157
  border:1px solid;
158
  border-color:#ccc #888 #555 #bbb;
159
}
160

  
161
-->
162
</style>
163

  
135 164
<script type="text/javascript">
136 165
<!--
137 166
var isDOM = (document.getElementById ? true : false); 
......
249 278
			if (borderClass) str += 'class="' + borderClass + '" "';
250 279
			str += 'onMouseOver="popOver(' + currMenu + ',' + currItem + ')" onMouseOut="popOut(' + currMenu + ',' + currItem + ')">';
251 280
			str += '<table width="' + (w - 8) + '" border="0" cellspacing="0" cellpadding="' + (!isNS4 && borderClass ? 3 : 0) + '">';
252
			str +='<tr><td style="cursor:pointer;" align="left" height="' + (h - 7) + '" onClick=\\'go("' + href + '","' + frame + '")\\'>' + text + '</a></td>';
281
			str +='<tr><td class="' + textClass + '" style="cursor:pointer;" align="left" height="' + (h - 7) + '" onClick=\\'go("' + href + '","' + frame + '")\\'>' + text + '</a></td>';
253 282
			if (target > 0) {
254 283
				menu[target][0].parentMenu = currMenu;
255 284
				menu[target][0].parentItem = currItem;
......
289 318
   }
290 319
}
291 320
var menu = new Array();
292
var defOver = '#AAAAFF', defBack = '#8888DD';
321
var defOver = '#cccccc';
322
var defBack = '#dddddd';
293 323
var defLength = 22;
294 324
menu[0] = new Array();
295
menu[0][0] = new Menu(false, '', 5, 18, 19, '#AAAAFF', '#AAAAFF', '', 'itemText');
325
menu[0][0] = new Menu(false, '', 5, 18, 19, '#cccccc', '', '', 'rootItemText');
296 326

  
297 327
|;
298 328

  
299
  #
300 329
  &section_menu($menu);
301 330

  
302 331
  print qq|
......
314 343
}
315 344
//  End -->
316 345
</script>
317
<style>
318
<!--
319 346

  
320
.itemBorder { border: 1px solid black }
321
.itemText { text-decoration: none; color: #FFFFFF; font: 12px Arial, Helvetica }
322

  
323
-->
324
</style>
325

  
326
<!--body bgcolor="#AAAAff" text="#ffffff" link="#ffffff" vlink="#ffffff" alink="#ffffff" topmargin="0" leftmargin="0"  marginwidth="0" marginheight="0"-->
327 347
<BODY scrolling="no" topmargin="0" leftmargin="0"  marginwidth="0" marginheight="0" style="margin: 0" onLoad="writeMenus(); clockon();" onResize="if (isNS4) nsResizeHandler()">
328
<!--BODY marginwidth="0" marginheight="0" style="margin: 0" onLoad="writeMenus()" onResize="if (isNS4) nsResizeHandler()"-->
329 348

  
330 349

  
331
<table bgcolor="#AAAAFF" width="100%" border="0" cellpadding="0" cellspacing="0">
350
<table class="menu" width="100%" border="0" cellpadding="0" cellspacing="0">
332 351
<tr><td height="21"><font size="1"> </font></td></tr></table>
333 352

  
353

  
334 354
|;
335 355

  
336 356
  print qq|

Auch abrufbar als: Unified diff