Hallo ! Habe da mal ein Script gemacht mit Javascript ..ihr werdet wahrshceinlich schnell sehen was passiert und zwar wenn man auf date location oder more info drückt kommt noch des sonstige dazu und more info verschwindet ...aber irgendwie geht es nichtmehr das wenn man draufdrückt wieder NUR der erste div kommt ( gigs ) ,,früher" hab ichs immer geschafft aber heute wills irgendwie nicht ...
hier mal der code :
Code
<link rel="stylesheet" type="text/css" href="style.css" />
<script type="text/javascript">
function gigsDIV( xDIV,xxDIV,xxxDIV ) {
var xdiv = document.getElementById(xDIV);
var xxdiv = document.getElementById(xxDIV) ;
var xxxdiv = document.getElementById(xxxDIV) ;
if ( xxdiv.style.display == 'none' ) {
xdiv.style.display = 'none';
xxdiv.style.display = '';
xxxdiv.style.display = '';
} else {
xdiv.style.display = '';
xxdiv.style.display = 'none';
xxxdiv.style.display = 'none';
}
}
</script>
<gb>Gigs</gb>
<table height="40">
<tr><td width="110"><login>Datum</login></td><td width="190"><login>Location</login></td></tr>
</table>
<div style="cursor:url(images/rockhand5.png); display:;" id="gigs" onclick="gigsDIV('gigs','info','gigs2')">
<a><table height="40">
<tr><td width="110"><login>{DATE}</login></td><td width="190"><login>{LOCATION}</login></td><td><login>more Info</login></td><tr>
</table></a>
</div>
<div id="gigs2" style="cursor:url(images/rockhand5.png); display:none;">
<table height="40">
<tr><td width="110"><login>{DATE}</login></td><td width="190"><login>{LOCATION}</login></td><tr>
</table></a>
</div>
<div id="info" style="cursor:url(images/rockhand5.png); display:none;">
<table>
<tr><td><login>{SONSTIGES}</login></td></tr>
</table></a>
</div>
Alles anzeigen
ich hoff ihr versteht mein problem ...
vielen dank schonmal im vorraus ich für mein teil bin schon komplett verzweifelt ( zwei stunden häng ich da jetzt dran )[/code]