// 作者:xycms
// 网址:http://wwww.jsxyidc.com
// 日期:2019-03-12
// QQ:364500483
// code:手机网页中部广告代码,带单独关闭
var p_w="100px"; //广告宽度,单位px,如自适应宽度就改为100%;
var p_h="100px"; //广告高度,单位px
var p_s="images/22.gif"; //广告图片地址
var p_l="'https://www.csdn.net/"; //广告图片链接
document.writeln("<style type=\"text/css\">");
document.writeln(".f_f{ width:100%; position:fixed; left:70%;top:38%;width:"+p_w+"; height:"+p_h+"; bottom:0px; z-index:9999;}");
document.writeln(".f_pic{ width:"+p_w+"; height:"+p_h+"; margin:0px auto; position:relative; }");
document.writeln(".f_pic img{ width:"+p_w+"; height:"+p_h+";}");
document.writeln(".f_pic .f_close{z-index:2157999999 !important;height:16px; width:16px; font-size:13px; color:white;text-align:center;line-height:14px;background:rgba(0,0,0,0.7); position:absolute; top:-5px; right:-5px;border-radius:50%;}");
document.writeln("</style>");
document.writeln("<div class=\"f_f\" id=\"f_f\">");
document.writeln("<div class=\"f_pic\">");
document.writeln("<a href=\""+p_l+"\" target=\"_blank\"><img src=\""+p_s+"\" /></a>");
document.writeln("<span class=\"f_close\" id=\"f_close\">X</span>");
document.writeln("</div>");
document.writeln("</div>");
效果图: