链接图片效果! ( 积分: 20 )

  • 主题发起人 主题发起人 zhuangjunx
  • 开始时间 开始时间
Z

zhuangjunx

Unregistered / Unconfirmed
GUEST, unregistred user!
http://www.d1.com.cn/html/erji015002003.asp
还有像这个网页的,鼠标移动到图片的时候,图片有动一下是怎么实现的?
 
http://www.d1.com.cn/html/erji015002003.asp
还有像这个网页的,鼠标移动到图片的时候,图片有动一下是怎么实现的?
 
<a href="product.asp?id=<%=rs2("bookid")%>"
onMouseOut="MM_swapImgRestore()"
onMouseOver="MM_swapImage('Image11','','<%=rs2("bookpic1")%>',1)"
class="o"><img src="<%=rs2("bookpic1")%>"
width="90"
height="90"
border="0"></a>
<script language=javascript>
function MM_swapImgRestore()
{ //v3.0
var i,x,a=document.MM_sr;
for(i=0;a&&i<a.length&&(x=a)&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_preloadImages() { //v3.0
var d=document;
if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments;
for(i=0;
i<a.length;
i++)
if (a.indexOf("#")!=0){ d.MM_p[j]=new Image;
d.MM_p[j++].src=a;}}
}
</script>
<script language="JavaScript"
type="text/JavaScript">
<!--
function MM_findObj(n, d) { //v4.01
var p,i,x;
if(!d) d=document;
if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document;
n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n];
for (i=0;!x&&i<d.forms.length;i++) x=d.forms[n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers.document);
if(!x &&
d.getElementById) x=d.getElementById(n);
return x;
}
function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments;
document.MM_sr=new Array;
for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a))!=null){document.MM_sr[j++]=x;
if(!x.oSrc) x.oSrc=x.src;
x.src=a[i+2];}
}
function MM_showHideLayers() { //v6.0
var i,p,v,obj,args=MM_showHideLayers.arguments;
for (i=0;
i<(args.length-2);
i+=3) if ((obj=MM_findObj(args))!=null) { v=args[i+2];
if (obj.style) { obj=obj.style;
v=(v=='show')?'visible':(v=='hide')?'hidden':v;
}
obj.visibility=v;
}
}
-->
</script>
我这样图片没变化,大家帮我看看哪错了?
 

Similar threads

D
回复
0
查看
718
DelphiTeacher的专栏
D
D
回复
0
查看
672
DelphiTeacher的专栏
D
D
回复
0
查看
777
DelphiTeacher的专栏
D
后退
顶部