本文及资源最后更新时间 2021-08-23 by sky995
广告展示效果如图:
代码如下:
document.write(‘<style type=”text/css”>.right{position: fixed;margin: auto;padding: 0;margin-top:-75px;top:60%;right: 0;width: 30%;z-index: 9999;display: none;}@media screen and (max-device-width:800px) {.right {position: fixed;margin: auto;padding: 0;margin-top:-75px;top:60%;right: 0;width: 30%;z-index: 9999;display: block;}}</style><div class=”right” id=”gmright”><a href=”这里填写广告链接” target=”_blank”><img width=”80%” height=”80px;” src=”这里填写广告图片地址”></a><div style=”right: 0;font-size:15px;position: fixed;cursor: pointer;bottom: ” onclick=”gmright()” ><FONT style=”FONT-SIZE: 10pt; FILTER: shadow(color=#AF0530); WIDTH: 100%; COLOR: #f90b46; LINE-HEIGHT: 100%; FONT-FAMILY: 隶书”><B>关闭</B></FONT></div></div>’);function gmright(){var m=document.getElementById(‘gmright’).style.display=’none’;}
完整版js下载:https://lxys.lanzoui.com/ibSTEh0g8gh