首页添加广告
This commit is contained in:
@@ -99,6 +99,27 @@
|
|||||||
@media(max-device-width:320px){
|
@media(max-device-width:320px){
|
||||||
.searchBoxIndex{top:13.5rem;}
|
.searchBoxIndex{top:13.5rem;}
|
||||||
}
|
}
|
||||||
|
.advert {
|
||||||
|
position: fixed;
|
||||||
|
top: 30%;
|
||||||
|
left: 40%;
|
||||||
|
right: 0;
|
||||||
|
height: 320px;
|
||||||
|
width: 580px;
|
||||||
|
z-index: 10000;
|
||||||
|
}
|
||||||
|
|
||||||
|
.left-ad {
|
||||||
|
position: absolute;
|
||||||
|
bottom: 0;
|
||||||
|
left: 0;
|
||||||
|
width: 580px;
|
||||||
|
height: 300px;
|
||||||
|
background: url("${staticUrl}/images/fangjia/v5/adv.png");
|
||||||
|
background-size: 100% 100%;
|
||||||
|
|
||||||
|
}
|
||||||
|
.advert a{ float: right;margin-right: 10px;cursor: pointer;font-weight: bold;}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
@@ -108,6 +129,10 @@
|
|||||||
|
|
||||||
<#include "/header/v5/_header.ftl"/>
|
<#include "/header/v5/_header.ftl"/>
|
||||||
|
|
||||||
|
<div class="advert">
|
||||||
|
<a id="close">关闭</a>
|
||||||
|
<div class="left-ad"></div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="bannerIndex">
|
<div class="bannerIndex">
|
||||||
<div class="imgBoxIndex">
|
<div class="imgBoxIndex">
|
||||||
@@ -556,7 +581,13 @@ $.config = {router: false}
|
|||||||
<script type="text/javascript" src="//developer.baidu.com/map/jsdemo/demo/convertor.js"></script>
|
<script type="text/javascript" src="//developer.baidu.com/map/jsdemo/demo/convertor.js"></script>
|
||||||
<script src="${staticUrl}/js/fangjia/v5/city.js?v=${version}"></script>
|
<script src="${staticUrl}/js/fangjia/v5/city.js?v=${version}"></script>
|
||||||
<script>
|
<script>
|
||||||
|
$("#close").click(function(){
|
||||||
|
$(".advert").addClass("dn")
|
||||||
|
})
|
||||||
|
|
||||||
|
$(".left-ad").click(function(){
|
||||||
|
window.open('https://jinshuju.net/f/hBkMVo','_blank');
|
||||||
|
})
|
||||||
/* banner轮播 */
|
/* banner轮播 */
|
||||||
$(".imgBoxIndex > div").hide();
|
$(".imgBoxIndex > div").hide();
|
||||||
$(".imgBoxIndex > div").eq(0).show();
|
$(".imgBoxIndex > div").eq(0).show();
|
||||||
|
|||||||
Binary file not shown.
|
After Width: | Height: | Size: 350 KiB |
Reference in New Issue
Block a user