Js floating couplet advertisement belt disabling function

Source: Internet
Author: User
Tip: you can modify some code before running

<html><head><title> </title><meta http-equiv="Content-Type" content="text/html; charset=gb2312"></head><body ><br><br><br><table height="150" cellPadding="0" width="235" border="0"><tr><td width="210" height="25" >What is webpage special effects?</td></tr><tr><td width="235" colSpan="2" height="70" >Webpage special effects are a technology that uses program code to implement special effects or special functions on webpages. They make the webpage active and increase the website affinity.</td></tr></table><table height="150" cellPadding="0" width="235" border="0"><tr><td width="210" height="25" >How to use webpage special effects?</td></tr><tr><td width="235" colSpan="2" height="89" >Generally, you can directly paste the special effect code where you want to add the special effect. Some special code also needs to add other code elsewhere. The special effects code downloaded on this site are described in detail and can be used as instructed.</td></tr></table><p><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><SCRIPT LANGUAGE="JavaScript"><!--var showad = true;var Toppx = 60; //上端位置var AdDivW = 100; //宽度var AdDivH = 360; //高度var PageWidth = 800; //页面多少宽度象素下正好不出现左右滚动条//by www.111cn.netvar MinScreenW = 1024; //显示广告的最小屏幕宽度象素 var ClosebuttonHtml = '<div align="right" >关闭</div>'var AdContentHtml = '<div align="center" ><br>广<br>告<br>内<br>容<br>可<br>任<br>何<br>形<br>式</div>';document.write ('<div id="JavaScript.LeftDiv" +AdDivW+'px;height:'+AdDivH+'px;top:-1000px;word-break:break-all;display:none;">'+ClosebuttonHtml+'<div>'+AdContentHtml+'</div></div>');document.write ('<div id="JavaScript.RightDiv" +AdDivW+'px;height:'+AdDivH+'px;top:-1000px;word-break:break-all;display:none;">'+ClosebuttonHtml+'<div>'+AdContentHtml+'</div></div>');function scall(){ if(!showad){return;} if (window.screen.width<MinScreenW){ alert("临时提示:nn显示器分辨率宽度小于"+MinScreenW+",不显示广告"); showad = false; document.getElementById("JavaScript.LeftDiv").style.display="none"; document.getElementById("Javascript.RightDiv").style.display="none"; return; } var Borderpx = ((window.screen.width-PageWidth)/2-AdDivW)/2; document.getElementById("Javascript.LeftDiv").style.display=""; document.getElementById("Javascript.LeftDiv").style.top=document.body.scrollTop+Toppx; document.getElementById("Javascript.LeftDiv").style.left=document.body.scrollLeft+Borderpx; document.getElementById("Javascript.RightDiv").style.display=""; document.getElementById("Javascript.RightDiv").style.top=document.body.scrollTop+Toppx; document.getElementById("Javascript.RightDiv").style.left=document.body.scrollLeft+document.body.clientWidth-document.getElementById("Javascript.RightDiv").offsetWidth-Borderpx;}function hidead(){ showad = false; document.getElementById("Javascript.LeftDiv").style.display="none"; document.getElementById("Javascript.RightDiv").style.display="none";}window.onscroll=scall;window.onresize=scall;window.onload=scall;//--></sCRIPT></p></p></body></html>This code is provided by the webpage special effect network.
Tip: you can modify some code before running

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.