woff 發表於 2008-9-21 19:23:06

表格或層往下慢慢展開的效果

<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=big5">
<title>表格或層往下慢慢展開的效果</title>
</head>

<body>
<script language="JavaScript">
var act;
function over(){
var h = parseInt(mytd.height);
if (h < 164){
mytd.height = h + 2;
clearTimeout(act);
act = setTimeout('over()', 10);
}
}
function out(){
var h = parseInt(mytd.height);
if (h > 30){
mytd.height = h - 2;
clearTimeout(act);
act = setTimeout('out()', 10);
}
}
</script>
<table width="316" height="30" border="2" cellpadding="0" cellspacing="0" id="mytd" onMouseOver="over()" onMouseOut="out()">
<tr>
<td>這裏面填寫內容<br>網頁特效觀止</td>
</tr>
</table>
</body>

</html>

kjdskafkdaa 發表於 2013-11-13 01:09:28

這個帖不错!!!!!

vcdkjswcy5 發表於 2013-11-13 01:09:28

回帖是種美德.
頁: [1]
查看完整版本: 表格或層往下慢慢展開的效果