HTML
<html>
<head>
<script type="text/javascript">
function spoil(me) {
if (me.parentNode.parentNode.getElementsByTagName('div')[1].style.display != '') {
me.parentNode.parentNode.getElementsByTagName('div')[1].style.display = '';
me.src = "minus.png";
} else {
me.parentNode.parentNode.getElementsByTagName('div')[1].style.display = 'none';
me.src = "plus.png";
}
}
</script>
</head>
<body>
<div>
<div class="pre-spoiler">
<input name="button" type="image" src="plus.png" style="width:14px;font-size:10px;margin:0px;padding:0px;" onClick="spoil(this);" value="Spoiler">Für weitere Informationen drücken.
</div>
<div class="spoiler" style="display: none;">Test</div>
</div>
</body>
</html>
Alles anzeigen