Saturday, May 9, 2009

Blog Tricks, How to toggle text in your post?

Show   Hide



---------------------------------------------------------------------------
I figured out how to toggle text using inline javascript. Here is the code:


<a href="javascript:var a = document.getElementById('Link1').style.display='block'">Show</a> &nbsp <a href="javascript:var b = document.getElementById('Link1').style.display='none'">Hide</a>

<div id="Link1" style="DISPLAY: none">
Here is the text you would like to show
</div>


Please kindly let me know if you have found other ways of doing this.

1 comment:

  1. Cyber Jedi: Blog Tricks, How To Toggle Text In Your Post? >>>>> Download Now

    >>>>> Download Full

    Cyber Jedi: Blog Tricks, How To Toggle Text In Your Post? >>>>> Download LINK

    >>>>> Download Now

    Cyber Jedi: Blog Tricks, How To Toggle Text In Your Post? >>>>> Download Full

    >>>>> Download LINK

    ReplyDelete

meta.ai impression

Meta.ai is released by meta yesterday, it is super fast you can generate image while typing! You can ask meta.ai to draw a cat with curvy fu...