javascript问题?急求解决!!
function addschedule(int1){
if(int1==0){
var m=document.createElement( 'div ');
m.id= 'schedule ';
m[ 'style '][ 'position '] = "absolute ";
m[ 'style '][ 'z-index ']= '999 ';
m[ 'style '][ 'border ']= '1px solid #6298CD ';
m[ 'style '][ 'width ']= '200px ';
m[ 'style '][ 'padding ']= '15 15 15 15 ';
m[ 'style '][ 'backgroundColor ']= '#EFF3FB '; m[ 'style '][ 'background-image ']= "url(http://www.baidu.com/img/logo.gif) ";//为什么到这里图片显示不出来哟??
m.innerHTML= '正在加载信息…… ';
document.body.appendChild(m);
divInit( 'schedule ',0,0);
}else{
if(exist( 'schedule ')){
document.body.removeChild($$( 'schedule '));
}
}
}
------解决方案--------------------background-image
改成
backgroundImage
------解决方案--------------------如上!
------解决方案--------------------或者:
m[ 'style '][ 'backgroundImage ']= "url(http://www.baidu.com/img/logo.gif) ";