javascript 始終固定在右下角的圖片廣告
<! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "HTTP://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">
<html xmlns="HTTP://www.w3.org/1999/xhtml">
<head>
<title>javascript 始終固定在右下角的圖片廣告</title>
<meta HTTP-equiv="content-type" content="text/html;charset=gb2312">
< !--把下面代碼加到<head>與</head>之間-->
<style type="text/css">
img{border:0px;}
#haoetv{position:fixed!important;position:absolute;right:0;bottom:0;top:expression(offsetParent.scrollTop+ offsetParent.clientHeight-150);cursor:pointer;}
#close{position:fixed!important;position:absolute;right:0;bottom:0;top:expression(offsetParent.scrollTop+ offsetParent.clientHeight-149);cursor:pointer;}
</style>
</head>
<body>
<!--把下面代碼加到<body>與</body>之間-->
<div id="haoetv" style="width:250px;height:150px;z-index:99;text-align:right">
<div><a href="#" target="_blank"><img alt="javascript 始終固定在右下角的圖片廣告" src="/get_pic /2010/03/20100426124227103.jpg" alt="海西最美笑臉徵集活動"></a></div>
<div id="close" style=" z-index:999;float:right;margin:10px 10px 0 0;height:140px;" >
<img alt="javascript 始終固定在右下角的圖片廣告" src="/get_pic/2010/03/20100426124233631. gif" onClick="this.parentNode.parentNode.style.display='none';" >
</div>
</div>
</body>
</html>