这个不是VBS与JS的差别问题,而是你写的DHTML不标准,在Firefox 里通过ID取对象不是直接:
theoption.value 这种写法的,而应该是 document.getElementById("theoption").value
这也是W3C国际标准的写法,象 document.all 那都不是国标。function setchange(theoption,thevalue)
{
var temp = "";
select (thevalue)
{
<{section name=sec4 loop=$product_list}>
case <{$product_list[sec4].pid}>:
temp = "<{$product_list[sec4].p_price}>";
break;
<{/section}>
}
document.getElementById("theoption").value = temp;
}
theoption.value 这种写法的,而应该是 document.getElementById("theoption").value
这也是W3C国际标准的写法,象 document.all 那都不是国标。function setchange(theoption,thevalue)
{
var temp = "";
select (thevalue)
{
<{section name=sec4 loop=$product_list}>
case <{$product_list[sec4].pid}>:
temp = "<{$product_list[sec4].p_price}>";
break;
<{/section}>
}
document.getElementById("theoption").value = temp;
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货