Code ẩn hiện nội dung cho blogspot (Các website khác cũng dùng được, Ví dụ joomla)
div> <div> <input type="button" value="Xem" style="width:75px; font-size:11px; margin:0px; padding:4px; border="1"" 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'; }"> </div> <div> <div style="display: none; border:#4F4F4F 1px solid; padding: 4px; background:# ">NỘI_DUNG</div> </div> </div>
----------------------------------------------------------------------------------------------
Chào mừng bạn đến với Sáng kiến kinh nghiệm hay.Nếu bạn thấy nguồn sưu tập này có ích, hãy chia sẻ với bạn bè lên Facebook, google ... Trân trọng cám ơn

0 nhận xét Blogger 0 Facebook
Post a Comment
Cám ơn bạn đã phản hồi