加入收藏 - 网站地图 - 网站搜索 -
阅读新闻

表格或层往下慢慢展开的效果

[日期:01-16] 来源:  作者: [字体: ]

<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>网页特效代码|JsCode.CN|---表格或层往下慢慢展开的效果</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>这里面填写内容www.jscode.cn<br>网页特效观止</td>
</tr>
</table>
</body>

</html>



评论 】 【 推荐 】 【 打印
上一篇:客户端控制上传图像大小和类别示例
下一篇:链接确认按钮
相关新闻       特效代码