復制代碼 代碼如下:
<html>
<head>
<title>javascript實現div浮動在網頁最頂上并帶關閉按鈕效果實例</title>
<style type="text/css">
<!--
body { margin: 0px;padding: 0px;text-align: center;}
TD {FONT-SIZE: 12px; COLOR: #333;}
#toubiao {BORDER-BOTTOM: #e2e2e2 1px solid;}
-->
</style>
</head>
<body>
<SCRIPT>
function toueme(){
document.getElementById("toubiao").style.display="none";
}
</SCRIPT>
<DIV id=toubiao>
<table cellspacing="0" cellpadding="5">
<tr>
<td><a target="_blank" href="/">
<span><font color="#808080">懸浮在網頁頂部可關閉的工具條(浮動層),點擊可以關閉哦</font></span></a></td>
<td><a onClick=toueme()>
<img src="../img/close3.gif" hspace="6" border=0></a></td>
</tr>
</table>
</DIV>
</body>
</html>
</td>
</tr>
</table>
新聞熱點
疑難解答
圖片精選