Einrücken würde die Lesbarkeit z.B. enorm erhöhen :)
Irgendwie schon ;-)
var toggle = " ";
function is_user() {
if (user_id) {
if (display == 'none') {
container = document.getElementById('kein_user');
container.style.position = "absolute";
container.style.left = (width - 480) / 2 + "px";
container.style.top = 200 + "px";
container.style.display = 'block';
toggle = window.setTimeout("hideNoUser()", 5000)
}
return false
} else {
return true
}
}
function hideNoUser() {
clearTimeout(toggle);
document.getElementById("kein_user").style.display = "none";
toggle = " ";
return false
}