Hello,
I am a beginner in programming and I have a problem. Could you please tell me why the image doesn't appear at mouseover in every line. Is there a way I can make the image appear in every line on mouseover? My programing sequence is the following:
<table border="1">
<?php
$nr=0;
while($nr<10)
{
?>
<tr>
<td onMouseOver="this.style.background = '#CCCCCC'" onMouseOut="this.style.background = '#FFFFFF'">test<?=$nr?></td>
<td onMouseOver="document.getElementById('mytest').style.visibility='visible'" onMouseOut="document.getElementById('mytest').style.visibility='hidden'"><img id="mytest" style="visibility:hidden" src="../new_hompage3/images/Button-close-icon.png" /></td>
</tr>
<?php
$nr++;
}
?>
</table>
Thank you very much in advance.


Reply With Quote
Bookmarks