mitchellcain
07-28-2004, 03:34 AM
I have a problem with a mouseover in a cell that I have on my site. The scripts involved are below. The mouseover works, but it takes about half a second to load the image, which really ruins it. Does anyone know of a way that I can preload the images so that the mouseover works instantly.
Here is the HTML:
<td class="a" onmouseover="this.className='b';" onmouseout="this.className='a'><td>
And in an external css document is the following:
td.a { background-image:url('menu_bg.gif'); }
td.b { background-image:url('menu_bg2.gif'); }
Thanks
Mitchell
Here is the HTML:
<td class="a" onmouseover="this.className='b';" onmouseout="this.className='a'><td>
And in an external css document is the following:
td.a { background-image:url('menu_bg.gif'); }
td.b { background-image:url('menu_bg2.gif'); }
Thanks
Mitchell