找得到网页图片效果的代码,不知道怎么改成本地图片,

来源:百度知道 编辑:UC知道 时间:2024/07/03 02:38:22
希望各位能帮我解决这个问题,效果的地址在这里;http://www.ipodfan.hafz.cn/html/tuxinghtml/tuxing.html
是这个地址中"搜弧IT频道的幻灯片切换的特效源代码"的效果

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>鼠标放到图片上慢慢变大,移开后图片又慢慢变小</title>

</head>

<body>
<img id=MainImg onmouseover=max() onmouseout=min() src=../../images/logo.png width="120" height="60">
<script>
var i=0
//变大
function max(){
MImg=MainImg.style.pixelWidth+=i++
MainImg.style.pixelHeight=MImg*aaa
if(i<20)setTimeout('max()',100)
}

//变小
function min(){
MImg=MainImg.style.pixelWidth-=i--
MainImg.style.pixelHeight=MImg*aaa
if(i>0)setTimeout('min()',100)
}

function init(){
aaa=MainImg.height/MainImg.width
MainImg.style.pixelWidth=85
MainImg.style.pixelHeight=55
}

onload=init
</script></body>
</html>

如,在这段代码中,你只需要把“src=../../images