Hello
I added ID to the div, but nothing happens,the code is as below:
function applystyle_mandiv() {
var bgText = document.getElementById('s_bkbgiu').value;
var myDiv = document.getElementById('mandiv');
myDiv.style.backgroundImage = "url(" + bgText + ")";
var manName = document.getElementById("in_manImage");
manName.value = "url(" + bgText + ")";
}
The HTML code is as below:
<div id="mandiv" class="dc m1_t" >
<div class="dt m1_b" >
<div class="dr">
<div class="dc m1_pad" >
<span class="m1_h_text">Manufacturers:</span><br>
<img alt="" src="images/spacer.gif" width="1" height="12"><br>
<select class="sel1"><option> Sony</option></select>
</div>
</div>
</div>
</div>
Finally the CSS code is given below:
.m1_t { background:url(images/m1-t.jpg) no-repeat top;}
Can someone tell me if there is anything wrong with this code, and what changes are required to make it work
Thanks and Regards,
Arvind