Welcome to Geeklog, Anonymous Thursday, January 30 2025 @ 10:44 am EST
Geeklog Forums
Make your content more dynamic.
Status: offline
remy
Forum User
Full Member
Registered: 06/09/03
Posts: 162
Location:Rotterdam & Bonn
Below a tiny html snippet that gives your content a more dynamic attitude:
<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].
Text 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>
25
23
Quote
All times are EST. The time is now 10:44 am.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content