hi,
sag mal, was veranstaltest du eigentlich für Kapriolen mit deinem Nick?
Der Grund ist ziemlich einfach. Ich habe mich vertippt man oder was glaubst, dass es sein könnte. Und nachdem ich meine Zugangsdaten für speziefische Ansicht über meine EMail-Adress nicht mehr bekam, musste ich einen neuen Account mit dem Namen: Mssmar erstellen.
Mehr ist es nicht.
Ja, oder in dem du per dafür vorgesehener DOM-Methoden ein neues Div erzeugst und einhängst.
Ich habe fast die Lösung, aber eine Fehlermeldung (Syntaxfehler) lässt mich nicht weitermachen.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled</title>
<script>
<!--
function hideDiv(divName) {
//alert("!!!!" + divName);
if (document.getElementById) { // DOM3 = IE5, NS6
document.getElementById(divName).style.display = 'none';
}
else {
if (document.layers) { // Netscape 4
document.divName.display = 'none';
}
else { // IE 4
document.all.divName.style.display = 'none';
}
}
}
function showDiv(divName) {
//alert("!!!" + divName);
if (document.getElementById) { // DOM3 = IE5, NS6
document.getElementById(divName).style.display = '';
}
else {
if (document.layers) { // Netscape 4
document.divName.display = '';
}
else { // IE 4
document.all.divName.style.display = '';
}
}
}
//-->
</script>
<style>
div#errorBackground {
filter:alpha(opacity=50); -moz-opacity:0.5; opacity:0.5;
position:absolute;
left:250px; _left:auto;
top:0px;
width:768px; height:1034px;
z-index:300;
background-color: green;
}
div#errorMessage {
position:absolute;
margin:271px 0 0 428px;
_margin:261px 0 0 174px;
width:450px; height:60px;
z-index:302;
background-color: #FF0000;
}
input.errorMessageOkay {
cursor:pointer;
margin:25px 10px 0 0;
_margin: 25px 180px 0 0;
background:transparent;
border:2px solid #113388;
width:100px;
}
</style>
</head>
<body>
<script type="text/javascript" language="JavaScript">
function writeDivError() {
document.body.innerHTML ="<div id='errorBackground' style='filter:alpha(opacity=50); -moz-opacity:0.5; opacity:0.5; position:absolute; top:14px; width:766px; height:920px; z-index:300; background-color: green;'></div>"+
"<div id='errorMessage' style='position:absolute; margin:264px 0 0 174px; width:450px; height:60px; z-index:302; background-color: #FF0000;'>"+
"<input onclick="hideDiv('errorBackground'); hideDiv('errorMessage');" type='Submit' value='ok' name='okay' class='errorMessageOkay'>"+
"</div>"+
document.body.innerHTML;
}
</script>
<form action="#" method="post">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Maecenas ipsum. Morbi at neque
sit amet nibh ultricies commodo. Maecenas sapien. Class aptent taciti sociosqu ad litora
torquent per conubia nostra, per inceptos hymenaeos.
</td>
</tr>
<tr><td><input onclick="writeDivError();" type="image" src="img/login.gif" alt="schnell einloggen" /></td></tr>
</table>
</form>
</body>
</html>
Vielen Dank und Gruß
Messmar
Gruß
Messmar