3 回答

TA貢獻(xiàn)1772條經(jīng)驗(yàn) 獲得超6個(gè)贊
你可以這樣寫(xiě):
document.getElementById('swf_src').src='images/ban1.swf';
輸出的時(shí)候同樣這樣獲取就可以了。

TA貢獻(xiàn)1777條經(jīng)驗(yàn) 獲得超10個(gè)贊
function check(i)
{
var swf_src="";
if (i=="")
{swf_src = "images/ban.swf"
}
if (i=="1")
{swf_src = "images/ban1.swf"
}
document.write(swf_src);
}
</script>

TA貢獻(xiàn)1827條經(jīng)驗(yàn) 獲得超4個(gè)贊
<script language="javascript">F_flash("index.swf")</script>
<a href="swf1"
onmouseover="this.src='F_flash("this.href='swf1.swf'"'" onmouseout="'F_flash("this.href='swf2.swf'")'"> 聯(lián)想</a>
<a href="swf2"
onmouseover="this.src='F_flash("this.href='swf2.swf'")'" onmouseout="'F_flash("this.href='swf2.swf'")'"> 蘋(píng)果</a>
添加回答
舉報(bào)