neomatrix
01-24-2006, 07:43 PM
Hi,
I have a definition list:
<dl>
<dt><a>switch link</a></dt>
<dd>bla bla</dd>
<dl>
I want to have a link in the <dt> that expands/collapses the <dd>. Is it possible to have a script that doesn't require an id or a class in <dd>? And also to put a css background image in <dt> (or <dl>) which is changed on every click (a +/- sign)? And to be able to remember it's state (expanded or collapsed) next time the page is visited (with cookies?)
Do you know if a suitable script exists?
Thank you very much,
Martin
I have a definition list:
<dl>
<dt><a>switch link</a></dt>
<dd>bla bla</dd>
<dl>
I want to have a link in the <dt> that expands/collapses the <dd>. Is it possible to have a script that doesn't require an id or a class in <dd>? And also to put a css background image in <dt> (or <dl>) which is changed on every click (a +/- sign)? And to be able to remember it's state (expanded or collapsed) next time the page is visited (with cookies?)
Do you know if a suitable script exists?
Thank you very much,
Martin