Hi I need help with onMouseOver event handler.
I have s list of images (in the for loop) that has link to other page on each image. When a cursor points to a certain image (i.e. image #1) I need to enlarge the image size a little bit and return to original image size when the cursor leave the image.
Can anybody show me how to do this? Thanks.
Below if the code fractions that lists images with link. No onMouseOver function yet since I don't have a clue on how to do it. The codes below will display 4 images per row.
<table border="0" cellpadding="0" cellspacing="0" width="100%" height="366" style="font-family: SansSerif; font-size: 10pt">
<td height="21" style="font-size: 10pt">
<p></p>
<script language="javascript1.2">
for (i=1;i<carname.length;i++) {
if ((i%4)==1) {document.writeln('<tr>');}
document.write('<td width="142" height="130" valign="top">');
document.write('<a href="adc_detail.html?car=' + i + '"><p align="center">');
document.write('<img border="0" src="images/' + carimg + '" width="123" height="98"></a><br>');
document.write('<center>' + carname+ '</center></p></td>');
if ((i%4)==0 || (i==carname.length)) {document.write('</tr>');}
} // end for statement.
</script>
</table>
Thanks a bunch in advance.
I have s list of images (in the for loop) that has link to other page on each image. When a cursor points to a certain image (i.e. image #1) I need to enlarge the image size a little bit and return to original image size when the cursor leave the image.
Can anybody show me how to do this? Thanks.
Below if the code fractions that lists images with link. No onMouseOver function yet since I don't have a clue on how to do it. The codes below will display 4 images per row.
<table border="0" cellpadding="0" cellspacing="0" width="100%" height="366" style="font-family: SansSerif; font-size: 10pt">
<td height="21" style="font-size: 10pt">
<p></p>
<script language="javascript1.2">
for (i=1;i<carname.length;i++) {
if ((i%4)==1) {document.writeln('<tr>');}
document.write('<td width="142" height="130" valign="top">');
document.write('<a href="adc_detail.html?car=' + i + '"><p align="center">');
document.write('<img border="0" src="images/' + carimg + '" width="123" height="98"></a><br>');
document.write('<center>' + carname+ '</center></p></td>');
if ((i%4)==0 || (i==carname.length)) {document.write('</tr>');}
} // end for statement.
</script>
</table>
Thanks a bunch in advance.