JS создает AD Special Effects с левой и справа от веб -страниц.
Цитировать:
Кода -копия выглядит следующим образом:
<script src = "js/ad.js" type = "text/javascript"> </script>
2. Пейдж звонок
<! Doctype html public "-// w3c // dtd xhtml 1.0 transitional // en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd"> xmlns = "http://www.w3.org/1999/xhtml" lang = "zh-cn"> <head> <meta http-equiv = "content-type" Содержимое = "Текст/html; charset = utf-8"/> js создает Ad для левого и правого плавания веб-сайта. pages_www.vevb.com </title> <style> body {font-family: arial, helvetica, sans-serif, "安体"; размер шрифта: 12px; Высота: 2000px; Цвет:#667382}*{padding: 0px; Margin: 0px;} ul {margin: 0px; padding: 0px;} li {list-style-type: none; margin: 0px; padding: 0px;}. fl {float: слева;}. Fr {float: right;}. cl {clear: wire;}. 0px; Margin-Lefft: Auto;}. TC {Text-Align: Center;}. Jiac {Font-Weight: BOLD;}. Cur {coursor: pointer;} img {border: 0px;} </style> </head> <body> <script src = "js/ad.js" type = "text/javascript"> </script> </body> </html>3. JS приостановлен AD Code Ad.js
var browser = {ie6: function () {return ((window.xmlhttprequest == undefined) && (activexobject! = undefined))}, getWindow: function () {var myheight = 0; var mywidth = 0; if (typeof (window.innerwidth) == 'number') {myheight = window.innerheight; mywidth = window.innerwidth} else if (document.documentelement) {myheight = document.documentelement.clientHeight; myWidTh.documentElement. if (document.body) {myheight = document.body.clientheight; mywidth = document.body.clientwidth} return {'height': myheight, 'width': mywidth}}, getscroll: function () {var myheight = 0; var mywidth = 0; if (typeof (window.pageyoffset) == 'number') {myheight = window.pageyoffset; mywidth = window.pagexoffset} else if (document.documentelement) {myheight = document.documentelement.scrolltop; mywidelement) {myheight = document.documentelement.scrolltop; mywidelement.documentelement.scloll if (document.body) {myheight = document.body.scrolltop; mywidth = document.body.scrollleft} return {'height': myheight, 'width': mywidth}}, getdocwidth: function (d) {if (! d) var d = document; return Math.max (math.max (d.body.scrollwidth, d.documentelement.scrollwidth), math.max (d.body.offsetwidth, d.documentelement.offsetwidth), math.max (d.body.clientwidth, d.documentelement.clientWidth)), getDocheight: d.documentelement. Math.max (math.max (d.body.scrollheight, d.documentelement.scrollheight), math.max (d.body.offsetheight, d.documentelement.offsetheight), math.max (d.body.clientHeight, d.documentelement.clientHeight))}}; type = typeof (id); if (type == 'object') return id; if (type == 'string') return document.getElementbyId (id); return null}, inserthtml: function (html) {var frag = document.createdocumentfragment (); var div = createElement ("div"); i = 0, ii = div.childnodes.length; i <ii; i ++) {frag.appendchild (div.childnodes [i])} document.body.insertbefore (frag, document.body.firstchild)}}; var myevent = {add: function (element, handler) {var ele = dom.id (element); if (! ele) return; if (ele.addeventListener) ele.addeventListener (type, handler, false); else if (ele.attachevent) ele.attachevent ("on"+type, handler); else ele ["on"+type] = handler}, release: element (element, handler) ele = dom.id (element); if (! ele) return; if (ele.removeeventListener) ele.removeeventListener (type, handler, false); else if (ele.detachevent) ele.detachevent ("on"+type, handler); else ele [on "+type] = null}; id = dom.id (id); var ie6 = browser.ie6 (); var win = browser.getwindow (); var ele = {'height': id.clientHeight, 'width': id.clientWidth}; if (ie6) {var scrollbar = browser.getscroll ()} ver scrollbar = {'height': 0, 'width': 0}; id.style.position = 'fixed'} ele.top = parseint ((win.height-ele.height) /2+scrollbar.h восемь); id.style.top = ele.top+'px'; id.style.right = '3px'}, floatrightCenter: function (id) {position.rightCenter (id); var fun = function () {position.rightCenter (id)}; if (browser.ie6 ()) {myevent.add (window, 'scroll', fun); myevent.add (window, 'resize', fun)} else {myevent.add (window, 'resize', fun)}}, LeftCenter: function (id) {var vare); ie6 = browser.ie6 (); var win = browser.getwindow (); var ele = {'height': id.clientHeight, 'width': id.clientwidth}; if (ie6) {var scrollbar = browser.getscroll ()} els scrollbar = {'height': 0, 'width': 0}; id.style.position = 'fixed'} ele.top = parseint ((win.height-ele.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 (browser.ie6 ()) {myevent.add (window, 'scroll', fun); myevent.add (window, 'resize', fun)} else {myevent.add (window, 'cresize', fun)}}}; function ad_left () {var war ht; html = '<div id = "ad_left" style = "Положение: Absolute; ширина: 130px; высота: 300px; z-index: 10001"> <a style = "Положение: Absolute; Top: -15px; слева: 0;" " href = "javascript: void (0);" onclick = "document.getElementById (/'ad_left/'). style.display =/'none/'"> close </a> <a href = "http://www.plchome.org"> <img src = "Images/ad.jpg"/> </a> </div> '; dom.inserthtml (html); position.floatleftcenter ('ad_left');} function ad_right () {var html; html = '<div id = "ad_right" style = "Положение: Absolute; ширина: 130px; высота: 300px; z-index: 10001"> <a style = "Положение: Absolute; Top: -15px; справа: 0;" " href = "javascript: void (0);" onclick = "document.getElementById (/'ad_right/'). style.display =/'none/'"> close </a> <a href = "// www.vevb.com"> <img src = "Images/ad.jpg"/> </a> </div> '; dom.inserthtml (html); position.floatrightcenter ('ad_right');} myevent.add (window, 'load', ad_left); myevent.add (window, 'load', ad_right);Заканчивать.