O JS cria efeitos especiais de anúncios à esquerda e à direita das páginas da web.
Citar:
A cópia do código é a seguinte:
<script src = "js/ad.js" type = "text/javascript"> </script>
2. Chamada de página
<! xmlns = "http://www.w3.org/1999/xhtml" lang = "zh-cn"> <head> <meta http-equiv = "content-type" content = "text/html; charset = utft-8"/> <title> js Credetes = lanters para a esquerda e html; charset = utf-8 "/> <title> js" Pages_www.vevb.com </ititle> <estilo> corpo {font-family: Arial, Helvetica, Sans-Serif, "安体"; tamanho de fonte: 12px; Altura: 2000px; Cor:#667382}*{preenchimento: 0px; margem: 0px;} ul {margin: 0px; preenchimento: 0px;} li {tipo de listar tipo: nenhum; margin: 0px; preenchimento: 0px;}. fl {r-rat: esquerda;}. Fr {float: direita;}. 0px; margem-esquerda: auto;}. tc {text-align: Center;}. type = "text/javascript"> </script> </body> </html>3. JS suspendeu o código de anúncio ad.js
var browser = {ie6: function () {return ((window.xmlhttprequest == indefinido) && (ActiveXObject! = indefinido))}, getWindow: function () {var myHeight = 0; var myWidth = 0; if (typeof (window.innerwidth) == 'número') {myHeight = window.innerHeight; myWidth = window.innerwidth} else if (document.documentElement) {myHeight = document.documentElement.clientHeight; if (document.body) {myHeight = document.body.clientHeight; myWidth = document.body.clientwidth} return {'altura': myHeight, 'width': myWidth}}, getSCroll: function () {var myHeight = 0; var myWidth = 0; if (typeof (window.pageyoffset) == 'número') {myHeight = window.pageyoffset; myWidth = window.pagexoffset} else if (document.documentElement) {myHeight = document.documentElement.scrolltop; »» if (document.body) {myHeight = document.body.scrolltop; myWidth = document.body.scrollleft} return {'altura': myHeight, 'width': mywidth}}}, getDocWidth: function (d) {if (! d) var d = document; retorno Math.max (Math.max (D.Body.ScrollWidth, D.DocumentElement.ScrollWidth), Math.Max (D.Body.OffsetWidth, D.DocumentElement.OffsetWidth), Math.Max (D.Body.CientWidthth Math.Max (Math.Max (D.Body.ScrolHeight, D.DocumentElement.ScrolHeight), Math.Max (D.Body.OffSethEight, D.DocumentElement.OffSethEight), Math.Max (D.Body.ClientHeight, D.Documentlement.ClientHeight))}}; var type = typeof (id); if (type == 'object') retornar id; if (type == 'string') retornar document.getElementById (id); retornar nulo}, inserthtml: function (html) {var frag = document.createCumentfragment (); var div = document.createElement ("Div); i = 0, ii = div.childnodes.length; i <ii; i ++) {frag.appendChild (div.childnodes [i])} document.body.insertfore (frag, document.body.firstchild)}}; var myEvent = {add: function (elemento, tipo, handler) {var ele = dom.id (elemento); if (! ele) retornar; if (ele.addeventListener) ele.addeventListener (tipo, manipulador, false); else if (ele.attachevent) eLe.attachevent ("em"+tipo, handler); função; ele = dom.id (elemento); if (! ele) retornar; if (ele.RemoveEventListener) ele.removeEventListener (tipo, manipulador, false); else if (ele.detachevent) ele: nULL »nULL (" nULT) ("e mais); id = dom.id (id); var ie6 = navegador.ie6 (); var win = Browser.getWindow (); var ele = {'altura': id.clientHeight, 'width': id.clientWidth}; if (ie6) {var scrollbar = Browser.getsCroll ()}; scrollbar = {'altura': 0, 'width': 0}; id.style.Position = 'Fixed'} ele.top = parseInt ((win.Height-aeL.Height) /2+ScrollBar.h oito); id.style.top = ele.top+'px'; id.style.right = '3px'}, floattIrighCenter: function (id) {position.rightCenter (id); var fun = function () {position.rightCenter (id)}; if (navegador.ie6 ()) {myEvent.add (janela, 'roll', diversão); myevent.add (janela, 'resimessa', fun)} else {myEvent.add (window, 'resizante', fun)}}, esquerdista: functent: function (function) (window, 'id) ie6 = navegador.ie6 (); var win = Browser.getWindow (); var ele = {'altura': id.clientHeight, 'width': id.clientwidth}; if (ie6) {var scrollbar = Browser.getscroll ()} else {var) scrollbar = {'altura': 0, 'width': 0}; id.style.Position = 'FIlt'} ele.top = parseint ((win.Height-aeL.Height)/2+ScrollBar .Height); id.style.top = ele.top+'px'; id.style.left = '3px'}, floatleftCenter: function (id) {position.leftCenter (id); var fun = function () {position.leftCenter (id)}; if (navegador.ie6 ()) {myevent.add (janela, 'roll', diversão); myevent.add (janela, 'redimensionar', fun); else {myEvent.add (window, 'resorde', fun)}}}; html = '<div id = "ad_left" style = "posição: absoluto; largura: 130px; altura: 300px; z-index: 10001"> <a style = "Posição: absoluto; topo: -15px; esquerda: 0;" href = "JavaScript: void (0);" OnClick = "document.getElementById (/'ad_left/'). style.display =/'none/'"> feche </a> <a href = "http://www.plchome.org"> <img src = "imagens/ad.jpg"/> </a> </div> '; dom.inserthtml (html); position.floatleftCenter ('ad_left');} function ad_right () {var html; html = '<div id = "ad_right" style = "posição: absoluto; largura: 130px; altura: 300px; z-índice: 10001"> <a style = "posição: absoluto; topo: -15px; direita: 0;" " href = "JavaScript: void (0);" ONCLICK = "Document.getElementById (/'ad_right/'). style.display =/'none/'"> feche </a> <a href = "// www.vevb.com"> <img src = "imagens/ad.jpg"/> </a> </div> '; dom.inserthtml (html); position.floatrightCenter ('ad_right');} myevent.add (janela, 'load', ad_left); myevent.add (janela, 'load', ad_right);Terminar.