To do it, use the code below into your post, and change "TITLE" and "YOUR IMAGE or VIDEO" (red text) with your own.
<div><div style="margin: 3px;">
<div class="smallfont" style="margin-bottom: 2px;"><i><span style="font-weight: bold;"> TITLE </span></i> <input value="Show" style="margin: 0px; padding: 0px; width: 50px; " onclick="if (this.parentNode.parentNode.getElementsByTagName('div')[1]
.getElementsByTagName('div')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')[1]
.getElementsByTagName('div')[0].style.display = ''; this.innerText = ''; this.value = 'Hide'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1]
.getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = 'Show'; }" type="button">
</div>
<div class="alt2" style="border: 1px inset ; margin: 0px; padding: 6px;">
<div style="display: none;">
YOUR IMAGE or VIDEO
</div></div></div></div>
Example:
Thanks for the script, it worked perfectly, even after the scripting syntax changes that were done last year.
ReplyDeleteWOW ... !!!
ReplyDeleteBriliant solve :)
thx a lot for sharing ...
regard,
-darwinarya-