Gå til innhold

Anbefalte innlegg

Videoannonse
Annonse

Mhm.

 

Skjul
<html>
<head>
<title>Spoiler HTML code</title>
<style type="text/css">
body,input
{
font-family:"Trebuchet ms",arial;font-size:0.9em;
color:#333;
}
.spoiler
{
border:1px solid #ddd;
padding:3px;
}
.spoiler .inner
{
border:1px solid #eee;
padding:3px;margin:3px;
}
</style>
<script type="text/javascript">
function showSpoiler(obj)
{
var inner = obj.parentNode.getElementsByTagName("div")[0];
if (inner.style.display == "none")
	inner.style.display = "";
else
	inner.style.display = "none";
}
</script>
</head>
<body>
<h1>Spoiler HTML w/Js Code by Skrap</h1>
<div class="spoiler">
<input type="button" onclick="showSpoiler(this);" value="Show/Hide" />
<div class="inner" style="display:none;">
This is a spoiler!
</div>
</div>
</body>
</html>

 

Skjul
<html>
<head>
<title>Spoiler HTML code</title>
<style type="text/css">
body,input
{
font-family:"Trebuchet ms",arial;font-size:0.9em;
bgcolor:#000000;
}
.spoiler
{
border:1px solid #ddd;
padding:1px;
}
.spoiler .inner
{
border:1px solid #eee;
padding:1px;margin:3px;
}
</style>
<script type="text/javascript">
function showSpoiler(obj)
{
var inner = obj.parentNode.getElementsByTagName("div")[0];
if (inner.style.display == "none")
	inner.style.display = "";
else
	inner.style.display = "none";
}
</script>
</head>
<body BGCOLOR="#000000" TEXT=WHITE LINK=WHITE VLINK=WHITE ALINK=WHITE>

<div class="spoiler">
<input type="button" onclick="showSpoiler(this);" value="Français" />
<div class="inner" style="display:none;">

THE SPOILER TEXT IS HERE

</div>
</div>
</body>
</html>

Endret av Benny
Lenke til kommentar
  • Hvem er aktive   0 medlemmer

    • Ingen innloggede medlemmer aktive
×
×
  • Opprett ny...