fadeTo(speed, opacity, [callback])
如:
$("#WindowBox_bg").after("<div id='WindowBox'></div>");
$("#WindowBox").append("<div id='OutWindowBox'></div>");
$("#OutWindowBox").append("<div id='WindowBox_close'></div><div id='WindowBox_left'></div><div id='WindowBox_right'></div><div id='WindowBox_shop'></div>");
$("#WindowBox_shop").append("<div style='width:197px; height:26px; margin:10px auto 0px; cursor:pointer;'><div id='shop' style='width:98px; height:26px; float:left;'><img src='images/shop_bg1.png' /></div><div id='left' style='width:33px; height:26px; float:left;'><img src='images/left1.png' /></div><div id='right' style='width:33px; height:26px; float:left;'><img src='images/right1.png' /></div><div id='Sclose' style='width:33px; height:26px; float:left;'><img src='images/close1.png' /></div></div>");
$("#WindowBox_close").append("<div id='close'/>");
$("#close").css({"width":"50px","height":"20px","background-color":"#ffffff","float":"right","font-size":"13px","text-align":"center","line-height":"22px","overflow":"hidden","cursor":"pointer"})
.html("关闭");
$("#WindowBox").fadeTo('slow',0.65,function(){
在此对上面加载的div('WindowBox_close')操作css不起作用,可以bind进行绑定!
})
调用此方法,对div处理后,只能对div('WindowBox_close')进行绑定事件,不能处理对div的操作!
如:添加背景 修改颜色,不能操作