日期:2014-05-17  浏览次数:20695 次

表格中的属性是什么意思?大家来帮忙
请问一下这段代码的属性是什么意思?我没查找相关的书。请大家帮忙解释下
<TD   style= "HEIGHT:   80px "   width= "12% "> <A   onmousedown= "MM_goToURL( 'parent.frames[\ 'main\ '] ', 'Content.aspx?tabindex=1&amp;connum=0 ');return   document.MM_returnValue "
id= "href2 "   onmouseover= "MM_swapImage( 'Image1 ', ' ', 'button/mainbutton_1up.jpg ',1) "   onmouseout= "MM_swapImgRestore() "
href= "top.aspx?id=1 "> <IMG   id= "Image1 "   height= "79 "   src= "button/mainbutton_1out.jpg "   width= "80 "   border= "0 "   name= "Image1 "> </A> </TD>


尤其是这段,没看懂。下边的函数MM_goToURL、MM_swapImage和MM_swapImgRestore是HTML里自带的么? <a> </a> 是什么意思?
<A   onmousedown= "MM_goToURL( 'parent.frames[\ 'main\ '] ', 'Content.aspx?tabindex=1&amp;connum=0 ');return   document.MM_returnValue "
id= "href2 "   onmouseover= "MM_swapImage( 'Image1 ', ' ', 'button/mainbutton_1up.jpg ',1) "   onmouseout= "MM_swapImgRestore() "
href= "top.aspx?id=1 ">

再次谢谢大家

------解决方案--------------------
尤其是这段,没看懂。下边的函数MM_goToURL、MM_swapImage和MM_swapImgRestore是HTML里自带的么? <a> </a> 是什么意思?
MM_goToURL、MM_swapImage和MM_swapImgRestore 是javascript函数
<a> </a> 是超链接

onmousedown 鼠标按下
onmouseover 鼠标移动
onmouseout 鼠标离开
建议LZ多看看书吧
------解决方案--------------------
这个dreamweaver可以自动生成,就是鼠标移入移出时候的图片显示切换

目前都比较少用了,直接用链接的link、hover等来设定

比如:
a:link {background:url(路径/图片1);}/*鼠标链接样式*/
a:visited {……}/*已访问过得链接样式*/
a:hover {background:url(路径/图片2);}/*鼠标经过的样式*/
a:active {……}/*鼠标点击时候的样式*/