/* Copyleft 2005 Tibor Kádek */
function showhide(id)
{
el = document.getElementById(id);
el.style.display = (el.style.display=='block')?'none':'block';
}
usage:
<p id="produkt1" style="display:none">Some Show/Hide text</p>
<a href="javascript:showhide('produkt1');">more info</a>
Komentáre