![]() |
Javascript |
|||
![]() |
||||
![]() |
||||
|
Dieser Javascript-Text muss nach der Steuersequenz
// Zählvariable
var i=0;
while (1) {
i += 1;
var menuhead = "menuhead" + i.toString();
var menubody = "menubody" + i.toString();
// properties
if (document.all) {
var menuheadstr = "document.all." + menuhead;
var menubodystr = "document.all." + menubody;
} else if (document.getElementById) {
var menuheadstr="document.getElementById('"+menuhead+"')";
var menubodystr="document.getElementById('"+menubody+"')";
} else {
break
}
// no more menuhead
if (!(eval(menuheadstr))) {
break;
}
// no menu body here
if (!(eval(menubodystr))) {
continue;
}
// local vars
var hidefunc = new Function
(menubodystr + ".style.visibility = 'hidden'");
var showfunc = new Function
(menubodystr + ".style.visibility = 'visible'");
// events
eval(menuheadstr).onmouseover = showfunc;
eval(menuheadstr).onmouseout = hidefunc;
eval(menubodystr).onmouseover = showfunc;
eval(menubodystr).onmouseout = hidefunc;
}
Erläuterung:Die Steuersequenz
© Wolf Busch | Home | Inhalt | A-Z |
||||