print "
\n";
for($i=0; $i<5; $i++)
{
print " - $i\n";
print " \n";
print "
\n";
}
print "
\n";
?>
this code generates something like this:
thats the javascript:
document.observe('dom:loaded', function ()
{
buttons = $$('.button');
buttons.each(function(button,intIdx)
{
button.observe('click', function()
{
button.descendants().each(function(el){el.toggle()});
});
});
});