mhh, das Problem ist, Ich will in den "klapptext" Rollover Buttons einbauen und ich blicke vor lauter Name und id nichmehr durch ... Und dann ist das hald noch 3mal hintereinander ...
<script type="text/javascript">
function Klappen(Id) {
var KlappText = document.getElementById('Lay'+Id);
var KlappBild = document.getElementById('Pic'+Id);
var jetec_Minus="inhalt/codeschnipsel/minus.gif", jetec_Plus="inhalt/codeschnipsel/plus.gif";
if (KlappText.style.display == 'none') {
KlappText.style.display = 'block';
KlappBild.src = jetec_Minus;
} else {
KlappText.style.display = 'none';
KlappBild.src = jetec_Plus;
}}
</script>
<a href="javascript:Klappen(1)" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image16','','Bilder/index_over_16.gif',1)"><img src="Bilder/index_16.gif" alt="aus/ein-klappen" name="Image16" width="154" height="69" border="0" id="Pic1" /></a> </p>
<div id="Lay1" style="display: none;">
<!--HOVER_BILDER_IM_KLAPPTEXT_ANFANG -->
<a href="/games.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image14','','Bilder/index_over_21.gif',1)"><img src="Bilder/index_21.gif" alt="GAMES" name="Image14" width="154" height="38" border="0" align="top" id="Image14" /></a>
<a href="/software.htm" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image15','','Bilder/index_over_22.gif',1)"><img src="Bilder/index_22.gif" alt="SOFTWARE" name="Image15" width="154" height="37" border="0" id="Image15" /></a>
<a href="/hardware.htm" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image17','','Bilder/index_over_23.gif',1)"><img src="Bilder/index_23.gif" alt="HARDWARE" name="Image17" width="154" height="45" border="0" id="Image17" /></a>
<!--HOVER_BILDER_IM_KLAPPTEXT_ENDE -->
</div>
<a href="javascript:Klappen(1)" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image16','','Bilder/index_over_16.gif',1)"><img src="Bilder/index_17.gif" alt="aus/ein-klappen" name="Image61" width="154" height="71" border="0" id="Pic2" /></a></td>
</tr>
<tr>
<td valign="top">
<script type="text/javascript">
function Klappen(Id) {
var KlappText = document.getElementById('Lay'+Id);
var KlappBild = document.getElementById('Pic'+Id);
var jetec_Minus="inhalt/codeschnipsel/minus.gif", jetec_Plus="inhalt/codeschnipsel/plus.gif";
if (KlappText.style.display == 'none') {
KlappText.style.display = 'block';
KlappBild.src = jetec_Minus;
} else {
KlappText.style.display = 'none';
KlappBild.src = jetec_Plus;
}}
</script>
</p>
<div id="Lay2" style="display: none;">
<!--HOVER_BILDER_IM_KLAPPTEXT_ANFANG -->
<a href="/games.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image14','','Bilder/index_over_21.gif',2)"><img src="Bilder/index_21.gif" alt="GAMES" name="Image14" width="154" height="38" border="0" align="top" id="Image14" /></a>
<a href="/software.htm" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image15','','Bilder/index_over_22.gif',2)"><img src="Bilder/index_22.gif" alt="SOFTWARE" name="Image15" width="154" height="37" border="0" id="Image15" /></a>
<a href="/hardware.htm" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image17','','Bilder/index_over_23.gif',2)"><img src="Bilder/index_23.gif" alt="HARDWARE" name="Image17" width="154" height="45" border="0" id="Image17" /></a>
<!--HOVER_BILDER_IM_KLAPPTEXT_ENDE -->
</div></td>
</tr>
</table></td>
</tr>
<tr>
<td height="19" align="left" valign="top" background="Bilder/index_20.gif">
<script type="text/javascript">
function Klappen(Id) {
var KlappText = document.getElementById('Lay'+Id);
var KlappBild = document.getElementById('Pic'+Id);
var jetec_Minus="inhalt/codeschnipsel/minus.gif", jetec_Plus="inhalt/codeschnipsel/plus.gif";
if (KlappText.style.display == 'none') {
KlappText.style.display = 'block';
KlappBild.src = jetec_Minus;
} else {
KlappText.style.display = 'none';
KlappBild.src = jetec_Plus;
}}
</script>
<a href="javascript:Klappen(1)" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image16','','Bilder/index_over_16.gif',1)"><img src="Bilder/index_19.gif" alt="Naus/ein-klappen" name="Image242" width="154" height="61" border="0" id="Image242" /></a> </p>
<div id="Lay1" style="display: none;">
<!--HOVER_BILDER_IM_KLAPPTEXT_ANFANG -->
<a href="/games.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image14','','Bilder/index_over_21.gif',1)"><img src="Bilder/index_21.gif" alt="GAMES" name="Image14" width="154" height="38" border="0" align="top" id="Image14" /></a>
<a href="/software.htm" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image15','','Bilder/index_over_22.gif',1)"><img src="Bilder/index_22.gif" alt="SOFTWARE" name="Image15" width="154" height="37" border="0" id="Image15" /></a>
<a href="/hardware.htm" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image17','','Bilder/index_over_23.gif',1)"><img src="Bilder/index_23.gif" alt="HARDWARE" name="Image17" width="154" height="45" border="0" id="Image17" /></a>
<!--HOVER_BILDER_IM_KLAPPTEXT_ENDE -->
</div>
Das wäre mein code :/