1 BBcode spoiler(ẩn hiện nội dung bài viết) cho vbb Tue Jul 03, 2012 4:42 pm
Admin
Admin
Admincp / Custom BB Codes / Add New BB Code
Chủ đề: Spoiler
Tag: Spoiler
Replacement:
Example: [*Spoiler] Noi Dung[*/Spoiler] (Nhớ bỏ cái * đi nhé)
Use {option}: No
Button Image (Optional):
http://sinhviennamdinh.net/images/bbcode/anhien.jpg
Chủ đề: Spoiler
Tag: Spoiler
Replacement:
- Code:
<div style="margin:0px 0px 0px 0px">
<div class="smallfont" style="margin-bottom:0px">
<input type="button" value="Hiện" style="width:75px;font-size:10px;margin:0px;padding:0px;" 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 = 'Ẩn'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = 'Hiện'; }">
<div style="margin: 0px; padding: 0px; border: 0px inset;">
<div style="display: none;">
{param}
</div>
</div>
Example: [*Spoiler] Noi Dung[*/Spoiler] (Nhớ bỏ cái * đi nhé)
Use {option}: No
Button Image (Optional):
http://sinhviennamdinh.net/images/bbcode/anhien.jpg