ok, kein prob.
hier:
<script type="text/javascript">
<!--
// Configuration
bgColor = "#A4A4A4";
borderColor = "#FFFFFF";
fontFace = "Arial";
fontSize = "2";
fontColor = "#6E6E6E";
normalItem = "#A4A4A4";
hilightItem = "#FFFFFF";
// -------------
var Item = new Array();
// Menuitems
Item[0] = ["Startseite", "index.htm", "News", "news.htm"];
Item[1] = ["Auftrag", "auftrag.htm", "Progr. Sprach.", "progr_spr.htm", "Grafikdesign", "grafikdesign.htm"];
Item[2] = ["JS FADE", "js_fade.htm", "JS MENU", "js_menu.htm"];
Item[3] = ["Demovorlagen", "demovorlagen.htm", "Referenzliste", "referenzliste.htm"];
Item[4] = ["Kontaktformular", "kontaktformular.htm", "Impressum", "impressum.htm"];
// ---------
for(i = 0; i < Item.length; i++) {
Menu = new Array();
Menu[i] = "<div id="Menu" style="position: absolute; top: 200px; left: 10px"; onMouseOut="closeMenu();"><table width="102" bgcolor="" + bgColor + "" cellspacing="0" cellpadding="3" style="border-bottom: 1px solid " + borderColor + "; border-left: 1px solid " + borderColor + "; border-right: 1px solid " + borderColor + ";">";
for(var j = 1; j < Item[i].length; j+=2) {
Menu[i] += "<tr><td style="cursor: hand" onMouseOver="this.style.backgroundColor='" + hilightItem + "';" onMouseOut="this.style.backgroundColor='" + normalItem + "';" onClick="window.location.href='" + Item[i][j] + "';"><font face="" + fontFace + "" size="" + fontSize + "" color="" + fontColor + "">" + Item[i][j-1] + "</font></td></tr>";
}
Menu[i] += "</table></div>";
}
ie4up = document.all ? 1 : 0;
ns6 = (document.getElementById && !document.all) ? 1 : 0;
if(ie4up) {
for(var j = 0; i < Menu.length; i++) {
document.write("<div id="Menu[j]" style="position:absolute; top:-200px; left:10px; background-color:#FFFFFF; z-index:2">" + Menu[j] + "</div>\n");
}
}
if(ns6) {
for(var j = 0; i < Menu.length; i++) {
document.write("<div id="Menu[j]" style="position:absolute; top:-200px; left:10px; background-color:#FFFFFF; z-index:2">" + Menu[j] + "</div>\n");
}
}
function showMenu(menuNo) {
if(ie4up) {
Menu[menuNo].style.pixelTop = document.body.scrollTop;
}
if(ns6) {
document.getElementById("Menu[menuNo]").style.top=0;
}
}
//-->
</script>
und mit dem hier: <a href="index.htm" onMouseOver="changePic(1, Startseite); showMenu(4);" onMouseOut="changePic(0, Startseite);"><img src="pictures/startseite_1.bmp" border="0" name="Startseite"></a>
rufe ich die funktion auf. funktion changePic is ne andere (schon funktionierende funktion ;) ), die das bild wechselt. erreichen möchte ich mit funktion showMenu, dass sich ein dyn. menü aufklappt.
gruss dsf