Pages

Subscribe:

Tuesday, July 5, 2011

How to add Show / Hide button


It is too simple and useful:
Blogger இல் show more எப்படி add செய்வது என்று இன்று பாப்போம்,
It will be useful for all.,
First Copy this link and paste in posting page

<div>
<div style="margin-bottom: 2px;">
<i><b><small></small></b></i><input 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'; }" style="font-size: 10px; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 60px;" type="button" value="Show" /></div>
<div style="border-bottom: 1px inset; border-left: 1px inset; border-right: 1px inset; border-top: 1px inset; margin: 0px; padding-bottom: 6px; padding-left: 6px; padding-right: 6px; padding-top: 6px;">
<div style="display: none;">

Put your content here you want the hide or show
</div>
</div>
</div>
Then

Replace -->Put your content here you want the hide or show 
and put your message which u need to Hide/Show



0 comments:

Post a Comment

Dear Visitor If you like my post please post your Comments

Search This Blog