zl程序教程

您现在的位置是:首页 >  前端

当前栏目

javascript实现div浮动在网页最顶上并带关闭按钮效果实例

JavaScript实例网页 实现 关闭 效果 按钮 div
2023-06-13 09:15:04 时间

复制代码代码如下:


<html>
<head>
<title>javascript实现div浮动在网页最顶上并带关闭按钮效果实例</title>
<styletype="text/css">
<!--
body{margin:0px;padding:0px;text-align:center;}
TD{FONT-SIZE:12px;COLOR:#333;}
#toubiao{BORDER-BOTTOM:#e2e2e21pxsolid;}
-->
</style>
</head>
<body>
<SCRIPT>
functiontoueme(){
document.getElementById("toubiao").style.display="none";
}
</SCRIPT>
<DIVid=toubiao>
<tablewidth="100%"border="0"cellspacing="0"cellpadding="5">
<tr>
<tdwidth="82%"><atarget="_blank"href="/">
<spanstyle="text-decoration:none"><fontcolor="#808080">悬浮在网页顶部可关闭的工具条(浮动层),点击可以关闭哦</font></span></a></td>
<tdwidth="14%"align="right"><astyle="CURSOR:hand"onClick=toueme()>
<img src="../img/close3.gif"hspace="6"border=0></a></td>
</tr>
</table>
</DIV>
</body>
</html>
</td>
  </tr>
 </table>