PDA

View Full Version : test


Hasbinlulz
11-22-2012, 02:33 PM
derp
<div style="margin: 5px;">
<div class="smallfont" style="margin-bottom: 2px;">
<b>Answer:</b> <input value="Show" style="margin: 0px; padding: 0px; width: 45px; font-size: 10px;" onclick="if(this.parentNode.parentNode.getElementsByTagName ('div')[1].getElementsByTagName('div')[0].style.display != 'inline')
{ this.parentNode.parentNode.getElementsByTagName('d iv')[1].getElementsByTagName('div')[0].style.display = 'inline'; this.innerText = ''; this.value = 'Hide'; }
else
{ this.parentNode.parentNode.getElementsByTagName('d iv')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value='Show'; }" type="button">
</div>
<div class="alt2" style="border: 1px inset; padding: 6px;">test
<div class="spoiler" style="display: none;">{param}</div>
</div>
</div>

Hasbinlulz
11-22-2012, 02:34 PM
lame

Hasbinlulz
11-22-2012, 02:36 PM
<div style="padding: 3px; background-color: #FFFFFF; border: 1px solid #d8d8d8; font-size: 1em;"><div style="text-transform: uppercase; border-bottom: 1px solid #CCCCCC; margin-bottom: 3px; font-size: 0.8em; font-weight: bold; display: block;"><span onClick="if (this.parentNode.parentNode.getElementsByTagName(' div')[1].getElementsByTagName('div')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('d iv')[1].getElementsByTagName('div')[0].style.display = ''; this.innerHTML = '<b>Spoiler: </b><a href=\'#\' onClick=\'return false;\'>hide</a>'; } else { this.parentNode.parentNode.getElementsByTagName('d iv')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerHTML = '<b>Spoiler: </b><a href=\'#\' onClick=\'return false;\'>show</a>'; }" /><b>Derp: </b><a href="#" onClick="return false;">show</a></span></div><div class="quotecontent"><div style="display: none;">test</div></div></div>

Hasbinlulz
11-22-2012, 02:38 PM
<div style="padding: 3px; background-color: #FFFFFF; border: 1px solid #d8d8d8; font-size: 1em;"><div style="text-transform: uppercase; border-bottom: 1px solid #CCCCCC; margin-bottom: 3px; font-size: 0.8em; font-weight: bold; display: block;"><span onClick="if (this.parentNode.parentNode.getElementsByTagName(' div')[1].getElementsByTagName('div')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('d iv')[1].getElementsByTagName('div')[0].style.display = ''; this.innerHTML = '<b>Spoiler: </b><a href=\'#\' onClick=\'return false;\'>hide</a>'; } else { this.parentNode.parentNode.getElementsByTagName('d iv')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerHTML = '<b>Derp: </b><a href=\'#\' onClick=\'return false;\'>show</a>'; }" /><b>Derp: </b><a href="#" onClick="return false;">herr</a></span></div><div class="quotecontent"><div style="display: none;">{durr}</div></div></div>

Hasbinlulz
11-22-2012, 02:40 PM
<a id="show_id" onclick="document.getElementById('spoiler_id').style.displa y=''; document.getElementById('show_id').style.display=' none';" class="link">[Derp]</a><span id="spoiler_id" style="display: none"><a onclick="document.getElementById('spoiler_id').style.displa y='none'; document.getElementById('show_id').style.display=' ';" class="link">[Hide]</a><br>herrderr</span>

Hasbinlulz
11-22-2012, 02:42 PM
<div id="showwithbox_id" onclick="document.getElementById('spoilerwithbox_id').style .display=''; document.getElementById('showwithbox_id').style.di splay='none';" style="border:dotted 1px; width:200px; height:100px;">Click anywhere inside the box to show spoiler.</div><div id="spoilerwithbox_id" onclick="document.getElementById('spoilerwithbox_id').style .display='none'; document.getElementById('showwithbox_id').style.di splay='';" style="display:none;border:dotted 1px; width:200px; height:100px;">spoiler_content<br><br>Click anywhere inside the box to hide spoiler.</div>

Hasbinlulz
11-22-2012, 02:42 PM
F U Rogaine.

Hasbinlulz
11-22-2012, 02:44 PM
Derp
<div id="spoiler" style="display:none">
HERR
</div>
<button title="Click to show/hide content" type="button" onclick="if(document.getElementById('spoiler') .style.display=='none') {document.getElementById('spoiler') .style.display=''}else{document.getElementById('sp oiler') .style.display='none'}">Show/hide</button>

Hasbinlulz
11-22-2012, 02:50 PM
http://www.project1999.org/forums/showthread.php?t=89194