Latest topics
Soiler code with css and javascript
Page 1 of 1
Soiler code with css and javascript
<center>
<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><font color="red">Spoiler HTML w/Js Coded by Stoned Hacker</font></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>
</center>
<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><font color="red">Spoiler HTML w/Js Coded by Stoned Hacker</font></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>
</center>
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
Wed Jan 27, 2010 2:45 pm by Stoned Hacker
» Forum Rules
Tue Jan 26, 2010 2:07 pm by Stoned Hacker
» HTML Headings, Attributes & Paragraphs
Thu Dec 10, 2009 3:45 pm by Stoned Hacker
» A Simple Virus
Thu Dec 10, 2009 1:57 pm by Stoned Hacker
» Comment Box
Thu Dec 10, 2009 1:53 pm by Stoned Hacker
» Create a PHP Database
Thu Dec 10, 2009 1:51 pm by Stoned Hacker
» How to insert Javascript
Thu Dec 10, 2009 1:12 pm by Stoned Hacker
» Intro to Javascript
Thu Dec 10, 2009 12:23 pm by Stoned Hacker
» HTML Basic
Thu Dec 10, 2009 12:03 pm by Stoned Hacker