Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Expand text in Mambo static content

Status
Not open for further replies.

GoGz

Technical User
Apr 5, 2005
16
HR
Hello!
I have a problem with static content text in Mambo 4.5.1. I have a long list of items in that text and I would like to insert explanations. Now, I don't want that the whole page refreshes when someone clicks on one item... the best solution would be that the explanation just appears in the next row. Maybe I could use table, but I just don't know how.

Thnx!
GoGz
 
I don't have a Mambo solution, but here is some HTML/JavaScript that will work:

Code:
<table id="tbl_explanation" style="display='none'">
<tr><td>blah</td></tr>
</table>

<a href="#" onClick="javascript: document.getElementById('tbl_explanation').style.display='';">open</a>

<a href="#" onClick="javascript: document.getElementById('tbl_explanation').style.display='none';">close</a>

Peter Sankauskas
Web Developer
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top