Page 1 of 1

what is wrong with the code

Posted: Sat Dec 18, 2010 7:28 am
by luvrockz
the code loads correctly on the first apDiv but nothin is showing on the secound one...here is the code that i have.

Code: Select all

<body onload="MM_showHideLayers('apDiv1','','hide','apDiv2','','hide')">
<p><a href="#" onclick="MM_showHideLayers('apDiv1','','show','apDiv2','','hide')">1</a></p>
<p><a href="#" onclick="MM_showHideLayers('apDiv1','','hide','apDiv2','','show')">2</a></p>
<p>&nbsp;</p>
<div id="apDiv1">

<?php include('ano/widget-comments.php'); ?>

</div>
<div id="apDiv2">

<?php include('ano/widget-comments.php'); ?>

</div>
</body>