genauso weit war ich am Anfang des Threads auch schon...
Also wenn man über den Button fährt kommt der eingegebene Text und wenn man nochmal drüber fährt geht es werg.
Aber es soll ja beim verlassen des Buttons weg gehen

Code: Alles auswählen
<input type="button" value="Show" style="width:45px;font-size:10px;margin:0px;padding:0px;" javascript: onmouseover = this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = 'Show'; onmouseout = this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'Hide'; this.value = 'Show';>
Code: Alles auswählen
span.spoiler span {
display:none;
}
span.spoiler:hover span {
display:inline;
}
Code: Alles auswählen
<span class="spoiler">Spoiler: <span>Hallo Welt</span></span>
An der Stelle, wo du bisher das Javascript eingefügt hast.CoolKetschup hat geschrieben:Hallo,
und wo und wie muss ich das alles einfügen??
Oh entschuldigung ich habe gar nicht gesehen, daß du dir das exklusive Recht in diesem Thema reserviert hast. Ich verspreche auch hoch und heilig, dich nächstes mal um Erlaubnis zu fragen, bevor ich antworte.witzigerkiller hat geschrieben:nachdem sich pyra überall einmischt bin ich mal ne weile off.. bye..
Code: Alles auswählen
<!-- BEGIN spoiler_open -->
<table width="90%" cellspacing="1" cellpadding="3" border="0" align="center">
<tr>
<td>
<span style="font-size: 11px;">
<div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px">
<b>Spoiler:</b> <input type="button" value="Show" style="width:45px;font-size:10px;margin:0px;padding:0px;" onClick="if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = ''; this.innerText = ''; this.value = 'Hide'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = 'Show'; }">
</div>
<p>
<div class="alt2" style="margin: 0px; padding: 6px; border: 1px inset; background-color: #FAFAFA; border: #D1D7DC; border-style: solid; border-left-width: 1px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px">
<div style="display: none;">
<!-- END spoiler_open -->
<!-- BEGIN spoiler_close -->
</div>
</p>
</div>
</div>
</span>
</td>
</tr>
</table>
<!-- END spoiler_close -->