美工吧 关注:338,202贴子:1,460,372
  • 0回复贴,共1

TB代码问题有大神帮忙解决吗?

取消只看楼主收藏回复

各位大神本人小白一个,想问大神在DW里做好的鼠标经过换图的特效,在WD里游览可以。可是放在TB是就不可以了,求大神帮帮忙谢了
附上代码
<html>
<head>
<title>2</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<script type="text/JavaScript">
<!--
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&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[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
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[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].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[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>
</head>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onLoad="MM_preloadImages('https://img.alicdn.com/imgextra/i2/2455543287/TB2lE6tepXXXXbiXpXXXXXXXXXX_!!2455543287.gif','https://img.alicdn.com/imgextra/i3/2455543287/TB2c5DHepXXXXcsXXXXXXXXXXXX_!!2455543287.gif','https://img.alicdn.com/imgextra/i4/2455543287/TB2BvPUepXXXXXIXXXXXXXXXXXX_!!2455543287.gif','https://img.alicdn.com/imgextra/i4/2455543287/TB2EkYIepXXXXb2XXXXXXXXXXXX_!!2455543287.gif','https://img.alicdn.com/imgextra/i4/2455543287/TB2JVDNepXXXXblXXXXXXXXXXXX_!!2455543287.gif','https://img.alicdn.com/imgextra/i4/2455543287/TB21UjIepXXXXcmXXXXXXXXXXXX_!!2455543287.gif','https://img.alicdn.com/imgextra/i1/2455543287/TB2_nPrepXXXXb.XpXXXXXXXXXX_!!2455543287.gif')">
<!-- Save for Web Slices (2) -->
<table id="__01" width="990" height="451" border="0" cellpadding="0" cellspacing="0">
<tr>
<td rowspan="2"><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image14','','https://img.alicdn.com/imgextra/i2/2455543287/TB2lE6tepXXXXbiXpXXXXXXXXXX_!!2455543287.gif',1)"><img name="Image14" border="0" src="https://img.alicdn.com/imgextra/i3/2455543287/TB2vefvepXXXXbXXpXXXXXXXXXX_!!2455543287.gif"></a></td>
<td colspan="2"><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image15','','https://img.alicdn.com/imgextra/i3/2455543287/TB2c5DHepXXXXcsXXXXXXXXXXXX_!!2455543287.gif',1)"><img name="Image15" border="0" src="https://img.alicdn.com/imgextra/i2/2455543287/TB2aizEepXXXXcQXXXXXXXXXXXX_!!2455543287.gif"></a></td>
<td colspan="2"><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image16','','https://img.alicdn.com/imgextra/i4/2455543287/TB2BvPUepXXXXXIXXXXXXXXXXXX_!!2455543287.gif',1)"><img name="Image16" border="0" src="https://img.alicdn.com/imgextra/i1/2455543287/TB2pHPtepXXXXbGXpXXXXXXXXXX_!!2455543287.gif"></a></td>
<td>
<img src="images/2_04.gif" width="3" height="252" alt=""></td>
</tr>
<tr>
<td><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image17','','https://img.alicdn.com/imgextra/i4/2455543287/TB2EkYIepXXXXb2XXXXXXXXXXXX_!!2455543287.gif',1)"><img name="Image17" border="0" src="https://img.alicdn.com/imgextra/i2/2455543287/TB2P1_PepXXXXa1XXXXXXXXXXXX_!!2455543287.gif"></a></td>
<td><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image18','','https://img.alicdn.com/imgextra/i4/2455543287/TB2JVDNepXXXXblXXXXXXXXXXXX_!!2455543287.gif',1)"><img name="Image18" border="0" src="https://img.alicdn.com/imgextra/i2/2455543287/TB2NwrBepXXXXXCXpXXXXXXXXXX_!!2455543287.gif"></a></td>
<td><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image19','','https://img.alicdn.com/imgextra/i4/2455543287/TB21UjIepXXXXcmXXXXXXXXXXXX_!!2455543287.gif',1)"><img name="Image19" border="0" src="https://img.alicdn.com/imgextra/i1/2455543287/TB2ZsjLepXXXXbTXXXXXXXXXXXX_!!2455543287.gif"></a></td>
<td colspan="2"><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image20','','https://img.alicdn.com/imgextra/i1/2455543287/TB2_nPrepXXXXb.XpXXXXXXXXXX_!!2455543287.gif',1)"><img name="Image20" border="0" src="https://img.alicdn.com/imgextra/i4/2455543287/TB2E9rqepXXXXb.XpXXXXXXXXXX_!!2455543287.gif"></a></td>
</tr>
<tr>
<td>
<img src="images/&#x5206;&#x9694;&#x7b26;.gif" width="307" height="1" alt=""></td>
<td>
<img src="images/&#x5206;&#x9694;&#x7b26;.gif" width="168" height="1" alt=""></td>
<td>
<img src="images/&#x5206;&#x9694;&#x7b26;.gif" width="169" height="1" alt=""></td>
<td>
<img src="images/&#x5206;&#x9694;&#x7b26;.gif" width="173" height="1" alt=""></td>
<td>
<img src="images/&#x5206;&#x9694;&#x7b26;.gif" width="170" height="1" alt=""></td>
<td>
<img src="images/&#x5206;&#x9694;&#x7b26;.gif" width="3" height="1" alt=""></td>
</tr>
</table>
<!-- End Save for Web Slices -->
</body>
</html>


1楼2015-08-14 10:14回复