三张图片:a1.jpg,a2.jpg,a3.jpg,三个flash:s1.swf,s2.swf,s3.swf。方法和上面讲的有点变化,只用一个DIV就可以。
切换FLASH
.div1{
visibility:hidden;
position:absolute;
left:300px;
top:200px
}
.div2{
visibility:visible;
position:absolute;
left:300px;
top:200px
}
function swf_change(f,a){
var obj=document.getElementById("myflash");
obj.Movie=f;
if (a==0)
{
document.getElementById('d1').className='div1';
location.reload();
}
else
{
document.getElementById('d1').className='div2';
}
}