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

Why I stopped publishing blog posts as information provider

Now the AI can generate content. Does that mean the web publishing industry reaches the end? ChatGPT said: ChatGPT Not at all. While AI can ...