Subject: Make your content more dynamic.

Posted on: 02/10/13 05:20am
By: remy

Below a tiny html snippet that gives your content a more dynamic attitude:
PHP Formatted Code

<span onClick="var e=this.getElementsByTagName('div');if (e[0].style.display=='block') e[0].style.display='none'; else e[0].style.display='block';"> …more…
<div style="display:none">

My expanding text

</div> </span>
 
It relies on a div tag subordinate to the span tag. The first one is taken, though you can add some magic by adjusting the number in e[0].

Geeklog - Forum
https://www.geeklog.net/forum/viewtopic.php?showtopic=95263