读书人

这个JS不能兼容火狐请高手帮助.解决

发布时间: 2012-04-02 19:58:59 作者: rapoo

这个JS不能兼容火狐,请高手帮助...
function shoppingcat(){
var s=5;
var minwidth=370;
var maxwidth=650;
var Key = document.getElementById("key").innerText;
if(Key=="展开"){
content.style.pixelWidth+=s;
if(content.style.pixelWidth<maxwidth){
setTimeout("shoppingcat();",1);
}else{
document.getElementById("key").innerText="关闭";
}
}else{
content.style.pixelWidth-=s;
if(content.style.pixelWidth>minwidth){
setTimeout("shoppingcat();",1);
}else{
document.getElementById("key").innerText="展开";
}
}
}

[解决办法]
http://topic.csdn.net/u/20120312/14/aaf29563-7c80-485a-88af-0ab40385ae13.html
你自己提出的问题。。这下应该能解决了

读书人网 >JavaScript

热点推荐