< >

nachlade.php


Quell Code


<script>

function nachladen() {
var http = null;
if (window.XMLHttpRequest) {
http = new XMLHttpRequest();
} else if (window.ActiveXObject) {
http = new ActiveXObject("Microsoft.XMLHTTP");
}
if (http != null) {
http.open("GET", "txt/index.php?txt&name=name.txt", true);
http.onreadystatechange = ausgeben;
http.send(null);
}
function ausgeben() {
if (http.readyState == 4) {
var name = http.responseText;
 
var greeting = "Testseite";
document.getElementById("Ausgabe").innerHTML = greeting + ' , ' + name;
}
if (name==='d') {
location="zeile_oben10d_d.html";
}
if (name==='e') {
location="zeile_oben10d_e.html";
}
if (name==='f') {
location="zeile_oben10d_f.html";
}
}


}

window.onload = nachladen;
 
</script>
</script>
</function>
</head>
</body>
</script>
</td><td width=10><td>
<font size="5" color="blue"><center>
<div id="Ausgabe"></div>
</table>
</head>