Hi all
I just started developing a website and are really new to this so please be patient.
I have a table 3 columns 9 rows. I use row 1,4 and 7 as table headers -2,5 and 8 as images and 3,6 and 9 as description fields.
I want to be able to have a onmousover and onmouseout function on the images within the table.
I have tried various javascripts and can not get it to work. Is it correct to have the javascript in the head section and then have the onmouseover and onmouseout functions within the table data.
I am develloping it on my local drive. Does this have any impact on the javascript?
The code I have is the following for the script:
<script type="text/javascript">
function mouseOver()
{
document.yhol.src ="krabi1.jpg"
}
function mouseOut()
{
document.yhol.src ="yumtiholidays.jpg"
}
</script>
I then have the following in the specific tabledata where the first image is:
<td align="center"><a href="yumtiholidays.html" onmouseover="mouseOver()" onmouseout="mouseOut()"> <img src="yumtiholidays.jpg" name="yhol" alt="Maldives" width="300" height="167" border="0" /></a></td>
Thanks