Click to See Complete Forum and Search --> : style.background ????


kanaps
04-16-2004, 11:43 AM
I am trying to use background image instead of background colour. Can anyone tell me what should I write instead of:

which.style.background='white'


Here is the code which I am using for java script.
Thank you, Kanaps
:confused:


hi I have a code:
#######header
<script language=\"javascript\">
<!--
function movein(which,html){
which.style.background='9CA5E6'

description.innerHTML=html
}


function moveout(which){
which.style.background='white'
description.innerHTML=''
}
-->
</script>


###and on the page:
<table background="<?PHP echo"$CONF->imagedir";?>/menu.jpg" bgcolor="#D1DBFD" border="1" bordercolor="ivory" cellpadding="2" cellspacing="0">
<tr>
<td bordercolor="black" class="menu" id="choice3"
style="background-color:bisque; cursor:hand" onclick="location.href='<?PHP @$CONF->wwwroot?>?mode=settings'" onmouseover="movein(choice3,'Changing your settings?')"
onmouseout="moveout(choice3)">
</tr>
</table>