Read More






Text instead of buttons:

You can make your own "read more" gadget. 

Read about making gadgets


Code for the gadget on the left is:


<?xml version="1.0" encoding="UTF-8"?>
<Module>
<ModulePrefs title="Read More" />
<Content type="html"><![CDATA[
<body onload="document.getElementById('p1').style.visibility='hidden'" />
This is some text...

<input type="button" value="Read More" onclick="document.getElementById('p1').style.visibility='visible'" />

<p id="p1">This is a text. This is a text. This is a text. This is a text. This is a text. This is a text. This is a text.</p>

<input type="button" value="Hide text" onclick="document.getElementById('p1').style.visibility='hidden'" />
]]></Content>
</Module>


<?xml version="1.0" encoding="UTF-8"?>
<Module>
<ModulePrefs title="Read More"/>
<Content type="html"><![CDATA[
<body onload="document.getElementById('p1').style.visibility='hidden'" />
This is some text...

<input type="link" value="Click to Read More" onclick="document.getElementById('p1').style.visibility='visible'" />
<input type="link" value="Click to Hide text" onclick="document.getElementById('p1').style.visibility='hidden'" />

<p id="p1">This is a text. This is a text. This is a text. This is a text. This is a text. This is a text. This is a text.</p>

]]></Content>
</Module>

Comments