Hi,
I have a problem with a simple piece of code that works in IE, Safari, Chrome, but not in FF
In my HTML i have a DIV:
<div id="menuDIV"> div contents </div>
with accompanying CSS
.twoColHybLtHdr #menuDIV {
width: 370px;
padding-top: 0;
padding-right: 0px;
padding-bottom: 0;
padding-left: 10px;
height: 210px;
top: 180px;
margin-bottom: 5px;
background-position: left top;
border-top-style: none;
border-right-style: none;
border-bottom-style: none;
border-left-style: none;
border-top-color: #6F0;
border-right-color: #6F0;
border-bottom-color: #6F0;
border-left-color: #6F0;
background-repeat: no-repeat;
background-image: url(/images/menu_background.png);
}
I want to change the background to this div through a script which activates from a click on a table cell:
<td onclick="LI_nav_frames('p2_main.html','p2_side.html','/images/topvisual_p2.png');" > some text </td>
The first two parameters load html-files in iFrames, they work OK, it is the third, the image that works in all browsers except FF:
function LI_nav_frames (url1, url2, image){
top.Main_frame.location.href= url1;
top.Side_frame.location.href= url2;
top.menuDIV.style.backgroundImage='url('+image+')';
}
Would be gratefull for any clues...
MvdN