i<> wrote in message news: oups.com...
> well i got that code off my forum and modified it to change txt and not
> an icon but can you give me an example of you code like a full code
> example like i posted
>
I don't know your parameter values so you must substitute them yourself
in the table below.
If you add more elements, maintain the exact syntax used; don't put a
comma after the last element.
A suitable HTML link is shown at the bottom.
<script type='text/javascript'>
function multiToggle()
{
var paramTable=[
{id : 'objId1', openClose : 'dunno1', openText : 'xxx', closeText : 'yyy'},
{id : 'objId2', openClose : 'dunno2', openText : 'xxx', closeText : 'yyy'},
{id : 'objId3', openClose : 'dunno3', openText : 'xxx', closeText : 'yyy'}
];
for(var i=0; i < paramTable.length; i++)
with( paramTable[i] )
obj_toggle( id, openClose, openText, closeText );
}
// All your original code here
</script>
<A href='#' onclick='multiToggle();return false'>Toggle Visibility</A>
--
Stephen Chalmers
http://makeashorterlink.com/?H3E82245A