<html>
<head>
<style type="text/css">
h1 { cursor:pointer; }
span { background-color:#ffff99; display:none; cursor:pointer; }
</style>
</head>
<body>
<h1 onclick="this.nextSibling.style.display='inline'">Überschrift1</h1><span onclick="this.style.display='none'">informationen</span>
<h1 onclick="this.nextSibling.style.display='inline'">Überschrift2</h1><span onclick="this.style.display='none'">informationen</span>
<h1 onclick="this.nextSibling.style.display='inline'">Überschrift3</h1><span onclick="this.style.display='none'">informationen</span>
</body>
</html>
<html>
<head>
<style type="text/css">
h1 { cursor:pointer; }
span.info { background-color:#ffff99; display:none; cursor:pointer; }
</style>
<script type="text/javascript">
function init()
{
var elms = document.getElementsByTagName("h1");
for( i = 0; i < elms.length; i++ )
{
elms[i].onclick = function() { this.nextSibling.style.display='inline'; };
elms[i].nextSibling.onclick = function() { this.style.display='none'; };
}
}
</script>
</head>
<body onLoad="init()">
<h1>Überschrift1</h1><span class="info">informationen</span>
<h1>Überschrift2</h1><span class="info">informationen</span>
<h1>Überschrift3</h1><span class="info">informationen</span>
</body>
</html>
Script als Text auf HP formatieren (Tabulatoren!)
Strg_Alt_Entf 01.03.2008 - 59 Hits - 3 Antworten
Text über Bild schreiben - HTML
Computerfreaki 06.05.2008 - 95 Hits - 10 Antworten
text in nächste zeile schreiben... :((
newbix 01.09.2008 - 45 Hits - 5 Antworten
Text ueber dem Header
Benny_Aua 20.04.2009 - 345 Hits - 12 Antworten
Text neben Bild
Bogusine 11.05.2009 - 950 Hits - 4 Antworten