JS 手机浮窗

<!DOCTYPE html>
<html lang="zh-cn">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1, user-scalable=no">
<title></title>
<style>
body,div,p,table,textarea,form,h2,h3,h4,h5,ul,li{margin:0;padding:0;color:#222;font-size:12px}
img{vertical-align:middle;border:0}
body{background:#fff;-webkit-user-select:none;-webkit-text-size-adjust:none}
.left{float:left}
.right{float:right;padding-right:3px}
a{text-decoration:none;color:#222}
</style>
</head>
<body>
<script src="fdSwt.js"></script>
</body>
</html>
document.writeln("<style type=\"text/css\">");
document.writeln(".fd-center{ width: 250px; height: 158px; display:none; position: fixed; left:50%;top:50%;margin-left:-125px;margin-top:-79px;z-index: 9999; }");
document.writeln(".fd-bottom{ width: 100%; height: 74px; background: url(/zixun/fd-bottom_bg.gif) repeat-x 0 18px; position: fixed; bottom: 0; left: 0;}");
document.writeln(".fd-bottom img{ display: block; margin: 0 auto;}");
document.writeln("</style>");
document.writeln("<div class=\"fd-center\" id=\"fdCenter\">");
document.writeln("<img src=\"/zixun/fd-center.gif\" width=\"250\" height=\"158\" usemap=\"#centerMap\">");
document.writeln("<map name=\"centerMap\">");
document.writeln("<area shape=\"rect\" coords=\"99,120,166,145\" href=\"/zixun/\" target=\"_blank\" rel=\"nofollow\"></area>");
document.writeln("<area shape=\"rect\" coords=\"170,120,238,145\" href=\"/zixun/\" target=\"_blank\" rel=\"nofollow\"></area>");
document.writeln("<area shape=\"rect\" coords=\"190,0,250,34\" onclick=\"hideCenter();\"></area>");
document.writeln("</map>");
document.writeln("</div>");
document.writeln("<div class=\"fd-bottom\">");
document.writeln("<img src=\"/zixun/fd-bottom.gif\" width=\"280\" height=\"74\" usemap=\"#bottomMap\">");
document.writeln("<map name=\"bottomMap\">");
document.writeln("<area shape=\"rect\" coords=\"0,18,40,74\" href=\"/\"></area>");
document.writeln("<area shape=\"rect\" coords=\"40,18,95,74\" href=\"/zixun/\" target=\"_blank\" rel=\"nofollow\"></area>");
document.writeln("<area shape=\"rect\" coords=\"95,0,188,74\" href=\"tel:xxx\" rel=\"nofollow\" target=\"_blank\"></area>");
document.writeln("<area shape=\"rect\" coords=\"188,18,239,74\" href=\"/zixun/\" target=\"_blank\" rel=\"nofollow\"></area>");
document.writeln("<area shape=\"rect\" coords=\"239,18,280,74\" href=\"/zixun/\" target=\"_blank\" rel=\"nofollow\"></area>");
document.writeln("</map>");
document.writeln("</div>");
function showCenter() {
    if (document.getElementById('fdCenter')) {
        if (document.getElementById('fdCenter').style.display == 'none') {
            document.getElementById('fdCenter').style.display = 'block';
        }
    }
}
function hideCenter() {
    document.getElementById('fdCenter').style.display = "none";
    setInterval(showCenter, 10000);
};
window.onload =  function() {
	document.getElementById('fdCenter').style.display = "none";
	setTimeout(showCenter, 5000);
};
document.write("<script type=\"text/javascript\" src=\"http://lvt.zoosnet.net/JS/LsJS.aspx?siteid=LVT89285571&float=0\"><\/script>");

效果图:

 

猜你喜欢

转载自onestopweb.iteye.com/blog/2269836