<script>
var s=5;
var minheight=50;
var maxheight=230;
function shoppingcat(){
var key = document.getElementById("key").innerText;
if(mrc.style.pixelHeight==0)mrc.style.pixelHeight=minheight;
if(key=="[ + 展开 ]"){
mrc.style.pixelHeight+=s;
if(mrc.style.pixelHeight<maxheight){
setTimeout("shoppingcat();",1);
}else{
document.getElementById("key").innerText="[ - 关闭 ]";
}
}else{
mrc.style.pixelHeight-=s;
if(mrc.style.pixelHeight>minheight){
setTimeout("shoppingcat();",1);
}else{
document.getElementById("key").innerText="[ + 展开 ]";
}
}
}
</script>
<div id="mrc"><script src="http://www.xxxxx.cn/d/js/acmsd/681761_vip_110.js"></script><div class="clr"></div>
</div><div style="width:88px;height:28px;line-height:28px; float:right;text-align:left;margin-top:10px;"><span id="key"onclick="shoppingcat();" style="background-color:#66A6F4; color:white;">[ + 展开 ]</span></div><div class="clr"></div>
大家能帮忙看看吗?
百度不让我贴网址
代码就是这样,IE正常
本回答被提问者采纳