使用ADMove.js實現移動廣告框
引入ADMove.js http://pan.baidu.com/s/1boQkTKN
<!DOCTYPE html>
<html>
<head>
<title>piaochuang.html</title>
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="this is my page">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<script type="text/javascript" src="../../../js/ADMove.js"></script>
<style>
.close{position: absolute;right:5px;top:5px;font-size:12px;background:url(<%=basePath%>images/top1/exit.png) no-repeat;width:15px;height:16px;}
#floatDiv2{top:210px;right:1%;}
#floatDiv2 p{color:red;font-size:14px;}
.input{width:120px;}
.right h3{ width:240px;}
</style>
<style>
.floatDiv2{position: absolute;top:55px;right:0;width:300px;height:250px;background:#fff;border:5px solid #ccc;z-index:10;cursor: move;}
.floatDiv2 h1{text-align:left;font-size:14px;background:#7DC3FD;height:40px;color:#fff;float:left;display:block;width:100%;line-height:40px;margin-bottom:15px;}
.floatDiv2 p{line-height:25px;text-align:left;padding:0 5px;text-inden:1em;}
.close{position: absolute;right:5px;top:5px;font-size:12px;background:url(<%=basePath%>images/top1/exit.png) no-repeat;width:15px;height:16px;}
#floatDiv1{top:210px;right:1%;}
#floatDiv1 p{color:red;font-size:14px;}
</style>
</head>
<body>
<div class="floatDiv2" id="floatDiv1">
<h1 style="color:red;">通知<a class="close" href="javascript:void(0))"></a></h1>
<p>各申報單位:</p>
<p> 請各單位在操作記錄中查看駁回修改信息,駁回修改材料僅限一次,請於10月25日中午12:00前完成提交,逾期未提交的視為自動放棄本次項目申報。</p>
<p style="text-align:right">特此通知<br/>2017年10月19日</p>
</div>
<script type="text/javascript">
var floatAD=new AdMove("floatDiv1");
floatAD.Run();
</script>
</body>
</html>
使用ADMove.js實現移動廣告框