| Admin Admin
| Tổng số bài gửi : 12 Join date : 30/05/2013 |
|
|
| Tiêu đề: Tổng hợp code '' Spoiler'' Sat Aug 24, 2013 1:58 pm | | | | | | | * Code ẩn hiện ( spoiler) thường :
- Code:
-
<table class="spoiler" width="90%" cellspacing="1" cellpadding="0" border="0" align="center"><tr><td style="cursor: pointer;"><span class="genmed"><b>"tiêu để:</b></span></td></tr><tr><td class="spoiler_closed"> </td><td class="spoiler_content hidden">.... Nội dung....</td></tr></table><span class="postbody"> Demo : - tiêu để:
.... Nội dung....
* Code ẩn hiện có dạng nút :
- Code:
-
<div style="margin: 5px 20px 20px;"><div class="smallfont" style="margin-bottom: 0px;">
<strong>Spoiler: </strong><input value="Xem" style="margin: 0px; padding: 0px; width: 45px; font-size: 10px;" 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 = 'Xem'; }" type="button"> </div><div><div style="display: none;"> .... nội dung....</div></div></div>
* Code ẩn hiện bằng hình:
Thay : - Code:
-
<input value="Xem" style="margin: 0px; padding: 0px; width: 45px; font-size: 10px;" onclick="if (this.parentNode.parentNode.getElementsByTagName('div') Bằng : - Code:
-
<img src="...link hình..." alt="" border="0";" onclick="if (this.parentNode.parentNode.getElementsByTagName('div') | | | | |
|
| Admin Admin
| Tổng số bài gửi : 12 Join date : 30/05/2013 |
|
|
| Tiêu đề: Re: Tổng hợp code '' Spoiler'' Thu Nov 07, 2013 3:36 pm | | | | | | | uykhjuk,gjlugll,gfui | | | | |
|