moin hab da mal ne frage wieso funktioniert der js hier nun nicht? ^^ bin echt überfragt
ist alles in einem ordner.
Index
js
hoffe da weis jemand bescheid
mfg lumpi
ist alles in einem ordner.
Index
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "[URL]http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd[/URL]">
<html xmlns="[url=http://www.w3.org/1999/xhtml]XHTML namespace[/url]">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="style.css" rel="stylesheet" type="text/css" />
<title>Unbenanntes Dokument</title>
<script language="javascript" src="meissner.js"></script>
</head>
<body>
<div id="wrapper">
<div id="header"></div>
<div id="navigation">
<div id="start"><a href=# onclick=punkt1()> </a></div>
<div id="team"><a href=# onclick=punkt2()> </a></div>
<div id="ueber"><a href=# onclick=punkt3()> </a></div>
<div id="leistungen"><a href=# onclick=punkt4()> </a></div>
<div id="links"><a href=# onclick=punkt5()> </a></div>
<div id="imp"><a href=# onclick=punkt6()> </a></div>
<div id="nav_end"></div>
<div class="clear"></div>
</div><!--navigation END-->
<div id="content_o"></div>
<div id="content">
<div id="contentbuffer">
<div id="content_l"></div>
<div id="content_m" style="padding-left:15px; padding-right:15px">
<div id="test1" style="visibility: visible;z-index:auto;">Hallo!</div>
<div id="test2" style="visibility: visible;z-index:auto;">lol</div>
<div id="test3" style="visibility: visible;z-index:auto;">omg</div>
<div id="test4" style="visibility: visible;z-index:auto;">moin</div>
<div id="test5" style="visibility: visible;z-index:auto;">JOP</div>
<div id="test6" style="visibility: visible;z-index:auto;">TEST</div>
</div>
<div id="content_r"></div>
<div class="clear"></div>
</div><!--contenbuffer END-->
</div><!--Content END-->
<div id="footer"></div>
</div><!--wrapper END-->
</body>
</html>
js
Code:
function punkt1() {
if(document.getElementById('test1').style.visibility=='hidden') {
document.getElementById('test1').style.visibility='visible';
document.getElementById('test2').style.visibility='hidden';
document.getElementById('test3').style.visibility='hidden';
document.getElementById('test4').style.visibility='hidden';
document.getElementById('test5').style.visibility='hidden';
document.getElementById('test6').style.visibility='hidden';
document.getElementById('test1').style.height='100%';
document.getElementById('test2').style.height='0px';
document.getElementById('test3').style.height='0px';
document.getElementById('test4').style.height='0px';
document.getElementById('test5').style.height='0px';
document.getElementById('test6').style.height='0px';
}
}
function punkt2() {
if(document.getElementById('test2').style.visibility=='hidden') {
document.getElementById('test1').style.visibility='hidden';
document.getElementById('test2').style.visibility='visible';
document.getElementById('test3').style.visibility='hidden';
document.getElementById('test4').style.visibility='hidden';
document.getElementById('test5').style.visibility='hidden';
document.getElementById('test6').style.visibility='hidden';
document.getElementById('test1').style.height='0px';
document.getElementById('test2').style.height='100%';
document.getElementById('test3').style.height='0px';
document.getElementById('test4').style.height='0px';
document.getElementById('test5').style.height='0px';
document.getElementById('test6').style.height='0px';
}
}
function punkt3() {
if(document.getElementById('test3').style.visibility=='hidden') {
document.getElementById('test1').style.visibility='hidden';
document.getElementById('test2').style.visibility='hidden';
document.getElementById('test3').style.visibility='visible';
document.getElementById('test4').style.visibility='hidden';
document.getElementById('test5').style.visibility='hidden';
document.getElementById('test6').style.visibility='hidden';
document.getElementById('test1').style.height='0px';
document.getElementById('test2').style.height='0px';
document.getElementById('test3').style.height='100%';
document.getElementById('test4').style.height='0px';
document.getElementById('test5').style.height='0px';
document.getElementById('test6').style.height='0px';
}
}
function punkt4() {
if(document.getElementById('test4').style.visibility=='hidden') {
document.getElementById('test1').style.visibility='hidden';
document.getElementById('test2').style.visibility='hidden';
document.getElementById('test3').style.visibility='hidden';
document.getElementById('test4').style.visibility='visible';
document.getElementById('test5').style.visibility='hidden';
document.getElementById('test6').style.visibility='hidden';
document.getElementById('test1').style.height='0px';
document.getElementById('test2').style.height='0px';
document.getElementById('test3').style.height='0px';
document.getElementById('test4').style.height='100%';
document.getElementById('test5').style.height='0px';
document.getElementById('test6').style.height='0px';
}
}
function punkt5() {
if(document.getElementById('test5').style.visibility=='hidden') {
document.getElementById('test1').style.visibility='hidden';
document.getElementById('test2').style.visibility='hidden';
document.getElementById('test3').style.visibility='hidden';
document.getElementById('test4').style.visibility='hidden';
document.getElementById('test5').style.visibility='visible';
document.getElementById('test6').style.visibility='hidden';
document.getElementById('test1').style.height='0px';
document.getElementById('test2').style.height='0px';
document.getElementById('test3').style.height='0px';
document.getElementById('test4').style.height='0px';
document.getElementById('test5').style.height='100%';
document.getElementById('test6').style.height='0px';
}
}
function punkt6() {
if(document.getElementById('test6').style.visibility=='hidden') {
document.getElementById('test1').style.visibility='hidden';
document.getElementById('test2').style.visibility='hidden';
document.getElementById('test3').style.visibility='hidden';
document.getElementById('test4').style.visibility='hidden';
document.getElementById('test5').style.visibility='hidden';
document.getElementById('test6').style.visibility='visible';
document.getElementById('test1').style.height='0px';
document.getElementById('test2').style.height='0px';
document.getElementById('test3').style.height='0px';
document.getElementById('test4').style.height='0px';
document.getElementById('test5').style.height='0px';
document.getElementById('test6').style.height='100%';
}
}
hoffe da weis jemand bescheid
mfg lumpi