日期:2014-05-18  浏览次数:20644 次

求`图片切换的效果,点击按钮时更换图片,图片打开的时候要带效果。 正确马上给分!
求图片切换的效果,点击按钮时更换图片,图片打开的时候要带效果。

网上找了好多都不行。   帮忙啊```

------解决方案--------------------
<html>
<head>
<meta http-equiv= "Page-Enter " content= "revealtrans(duration=1.0, transition=12) ">
<meta http-equiv= "Page-Exit " content= "revealtrans(duration=1.0, transition=12) ">
<style type= "text/css ">
IMG {filter:revealTrans(transition=10)}
</style>
<!--参照文档对象模型.doc的第4页-->
<script language= "JavaScript ">

function doReveal(){
document.all.myIMG.filters[ "revealTrans "].transition=document.forms[0].transChoice.value
document.all.myIMG.filters[ "revealTrans "].apply()
if(document.all.myIMG.src.indexOf( "desk1 ")!=-1){
document.all.myIMG.src= "img\\desk3.gif "
}else{
document.all.myIMG.src= "img\\desk1.gif "
}
document.all.myIMG.filters[ "revealTrans "].play()

}
</script>
</head>
<body>
<form>
<select name= "transChoice ">
<option value=0> Box in
<option value=1> Box out
<option value=2> Circle in
<option value=3> Circle out
<option value=4> Wipe up
<option value=5> wipe Down
<option value=6> Wipe right
<option value=7> Wipe left
<option value=8> Vertical blinds
<option value=9> Horizontal blinds
<option value=10> Checkerboard across
<option value=11> Checkerboard down
<option value=12> Random dissolve
<option value=13> Split vertical in
<option value=14> Split vertical out
<option value=15> Split horizontal in
<option value=16> Split horizontal out
<option value=17> Strips left down
<option value=18> Strips left up
<option value=19> Strips right down
<option value=20> Strips right up
<option value=21> Random bars horizontally
<option value=22> Random bars vertically
<option value=23> Random effect
</select>
</form>
<IMG ID= "myIMG " src= "img\desk1.gif " onClick= "doReveal() ">
</body>
</html>