Sunday, 6 April 2008

Script afisare continut ascuns

<script type="text/javascript">// <![CDATA[
function toggleElement(id)
{
if(document.getElementById(id).style.display == 'none')
{
document.getElementById(id).style.display = '';
}
else
{
document.getElementById(id).style.display = 'none';
}
}
// ]]></script>
<a href="javascript:toggleElement('a1')">Continutul ascuns</a>
<div id="a1" style="display: none;">

No comments:

Post a Comment