السلام عليكم ورحمة الله وبركاته
كود جافا لا يعمل في الاكسبلور ويعمل في الفرفوكس
<script language="javascript" type="text/javascript">
function colorproblemlist() {
ob = document.getElementById('ListBox1');
for (var i = 0; i < ob.options.length; i++) {
var option = ob.options;
option.style.backgroundImage = "url('set16wide.JPG')"; //Working IE and not working firefox
option.style.backgroundRepeat = "no-repeat";
option.style.color = "red"; // working in IE and firefox
}
}حتي لو اتكتب سي شارب
foreach (ListItem item in ListBox1.Items)
{
item.Attributes["style"]= "background-image: url('set16wide.JPG'); background-repeat: no-repeat";
}ما الخطء لماذا لا يعمل علي الاكسبلورر
الصوره توضح