hi,
var obj = document.getElementById("test");
obj.style.display = (obj.style.display == "none") ? obj.style.display = "block" : obj.style.display = "none";
wenn wir schon am tipparbeit sparen sind, warum dann nicht gleich so:
var obj = document.getElementById("test").style.display;
obj = (obj == "none") ? obj = "block" : obj = "none";
;-)
gruss,
wahsaga