<html>
<head>
<link rel="stylesheet" type="text/css" href="CSS/css.css">
<script language="JavaScript" type="text/javascript">
var anzahl_elemente_haupt;
var anzahl_elemente_unter;
function getXmlHttpRequestObject()
{
if (window.XMLHttpRequest)
{
return new XMLHttpRequest(); //Not IE
}
else if(window.ActiveXObject)
{
return new ActiveXObject("Microsoft.XMLHTTP"); //IE
}
else
{
alert("Your browser doesn't support the XmlHttpRequest object. Better upgrade to Firefox.");
}
}
var receiveReq = getXmlHttpRequestObject();
function hauptmenue()
{
if (receiveReq.readyState == 4 || receiveReq.readyState == 0)
{
receiveReq.open("POST", 'hauptmenue.html', true);
receiveReq.onreadystatechange = handlehauptmenue;
receiveReq.send(null);
}
}
function handlehauptmenue()
{
if (receiveReq.readyState == 4)
{
var textinhalt = receiveReq.responseText;
var texttrenner = textinhalt.split(" ");
elemente = texttrenner.length;
anzahl_elemente_haupt = elemente;
for (j=0; j<=elemente; j++)
{
document.getElementById('div_zurueck' + j).innerHTML = "<a href=\" javascript:untermenue" + j + "()\">" + texttrenner[j] + "</a>";
}
}
}
function untermenue0()
{
for(k=0; k<=4; k++)
{
document.getElementById('div_zurueck'+k).style.backgroundColor = "#999999";
}
document.getElementById('div_zurueck0').style.backgroundColor = "#EEEEEE";
if (receiveReq.readyState == 4 || receiveReq.readyState == 0)
{
receiveReq.open("POST", 'untermenue0.html', true);
receiveReq.onreadystatechange = handleuntermenue0;
receiveReq.send(null);
}
}
function handleuntermenue0()
{
if (receiveReq.readyState == 4)
{
var textinhalt = receiveReq.responseText;
var texttrenner = textinhalt.split(" ");
elemente = texttrenner.length;
anzahl_elemente_unter = elemente;
for (j=0; j<=elemente; j++)
{
document.getElementById('div_zurueck_unter' + j).innerHTML = "<a href=\"index.html\" >"+texttrenner[j]+"</a>";
}
}
}
function untermenue1()
{
for(k=0; k<=4; k++)
{
document.getElementById('div_zurueck'+k).style.backgroundColor = "#999999";
}
document.getElementById('div_zurueck1').style.backgroundColor = "#EEEEEE";
if (receiveReq.readyState == 4 || receiveReq.readyState == 0)
{
receiveReq.open("POST", 'untermenue1.html', true);
receiveReq.onreadystatechange = handleuntermenue1;
receiveReq.send(null);
}
}
function handleuntermenue1()
{
if (receiveReq.readyState == 4)
{
var textinhalt = receiveReq.responseText;
var texttrenner = textinhalt.split(" ");
elemente = texttrenner.length;
for (j=0; j<=elemente; j++)
{
document.getElementById('div_zurueck_unter' + j).innerHTML = "<a href=\"index.html\" >"+texttrenner[j]+"</a>";
}
}
}
function untermenue2()
{
for(k=0; k<=4; k++)
{
document.getElementById('div_zurueck'+k).style.backgroundColor = "#999999";
}
document.getElementById('div_zurueck2').style.backgroundColor = "#EEEEEE";
if (receiveReq.readyState == 4 || receiveReq.readyState == 0)
{
receiveReq.open("POST", 'untermenue2.html', true);
receiveReq.onreadystatechange = handleuntermenue1;
receiveReq.send(null);
}
}
function handleuntermenue2()
{
if (receiveReq.readyState == 4)
{
var textinhalt = receiveReq.responseText;
var texttrenner = textinhalt.split(" ");
elemente = texttrenner.length;
for (j=0; j<=elemente; j++)
{
document.getElementById('div_zurueck_unter' + j).innerHTML = "<a href=\"index.html\" >"+texttrenner[j]+"</a>";
}
}
}
function textteil00()
{
if (receiveReq.readyState == 4 || receiveReq.readyState == 0)
{
receiveReq.open("POST", 'testtext.html', true);
receiveReq.onreadystatechange = handleuntermenue1;
receiveReq.send(null);
}
}
function handletextteil00()
{
if (receiveReq.readyState == 4)
{
var textinhalt = receiveReq.responseText;
document.getElementById('textteil').innerHTML = "+textinhalt+";
}
}
</script>
</head>
<body onload="hauptmenue(); untermenue0()">
<div id="kopfteil">
</div>
<div id="hauptmenue">
<div id="div_zurueck0" style="display:inline"></div>
<div id="div_zurueck1" style="display:inline"></div>
<div id="div_zurueck2" style="display:inline"></div>
<div id="div_zurueck3" style="display:inline"></div>
<div id="div_zurueck4" style="display:inline"></div>
</div>
<div id="untermenue" >
<div id="div_zurueck_unter0" style="display:inline"></div>
<div id="div_zurueck_unter1" style="display:inline"></div>
<div id="div_zurueck_unter2" style="display:inline"></div>
<div id="div_zurueck_unter3" style="display:inline"></div>
<div id="div_zurueck_unter4" style="display:inline"></div>
</div>
<div id="textteil">
</div>
</body>
</html>