View Full Version : change td background image on mouseover?

06-07-2003, 06:28 AM
hi, how can I change the background image of a table cell on mouseover ?

<td width="180" height="22" background="./img/menu.jpg" align="right" id="menu1">
<a href="./link" class="menu_left" onmouseover="swap(this,'menu1')" onmouseout="swap(this,'menu1')">link</a>

currently swap just does ...

function swap(obj,td){
var col=obj.style.color;

I tried all sorts of things to get at the td background image but cant seem to ?

any help much appreciated

PS , just as happy to use a div or span ?

06-07-2003, 08:53 AM
"How can I set the background image of a table cell"

This looks pretty good. It may not answer directly to your question, but it should help you.

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum