if (!IconAds){ var IconAds = new Object(); IconAds.Link = 'Hier werben mit iconads.com'; IconAds.Helper = new Object(); IconAds.Helper.getElemRect = function(el){ var x=0; var y=0; var width = el.offsetWidth; var height = el.offsetHeight; while (el.offsetParent){ x += el.offsetLeft; y += el.offsetTop; el = el.offsetParent; } x += el.offsetLeft; y += el.offsetTop; return { x: x, y: y, w: width, h: height }; } IconAds.Helper.getWindowDim = function(){ if (typeof(window.innerWidth)=='number') return { x: window.innerWidth, y: window.innerHeight }; else if (document.documentElement && (document.documentElement.clientHeight || document.documentElement.clientWidth)) return { x: document.documentElement.clientWidth, y: document.documentElement.clientHeight }; else if (document.body && (document.body.clientWidth || document.body.clientHeight)) return { x: document.body.clientWidth, y: document.body.clientHeight }; else return null; } IconAds.Helper.getScrollOffset = function(){ var iebody=(document.compatMode && document.compatMode != "BackCompat")? document.documentElement : document.body; var left=document.all? iebody.scrollLeft : pageXOffset; var top=document.all? iebody.scrollTop : pageYOffset; return { 'x': left, 'y': top }; } IconAds.Helper.getMousePos = function(e){ e = e || event; return { x: e.clientX + document.body.scrollLeft - document.body.clientLeft, y: e.clientY + document.body.scrollTop - document.body.clientTop } if (e.pageX || e.pageY) return { x: e.pageX, y: e.pageY }; else return { x: e.clientX + document.body.scrollLeft - document.body.clientLeft, y: e.clientY + document.body.scrollTop - document.body.clientTop } } IconAds.Helper.addEvent = function(type, obj, fn){ if (obj.addEventListener){ obj.addEventListener(type, fn, false); } else if (obj.attachEvent){ obj['e'+type+fn] = fn; obj[type+fn] = function(){ obj['e'+type+fn](window.event); } obj.attachEvent('on'+type, obj[type+fn]); } } IconAds.Helper.delEvent = function(type, obj, fn){ if (obj.removeEventListener){ obj.removeEventListener(type, fn, false); } else if (obj.attachEvent){ obj.detachEvent('on'+type); obj[type+fn] = null; obj['e'+type+fn] = null; } } if (!IconAds.Helper.OnLoadElements) IconAds.Helper.OnLoadElements = new Array(); IconAds.Helper.OnLoad = function(){ for (var i in IconAds.Helper.OnLoadElements){ var elem = IconAds.Helper.OnLoadElements[i]; new IconAds.IconBox(elem.data, elem.style, elem.cellStyle); } } IconAds.IconBox = function(data, style, cellStyle){ this.dom = document.createElement('div'); this.data = data; this.style = style; this.cellStyle = cellStyle; this.init = function(){ this.render(); this.setContent(); this.setStyle(); } this.setContent = function(){ for (var x=0; x= win.x + scr.x - 10) this.dom.style.left = (x - dim.w) + 'px'; if (dim.y + dim.h >= win.y + scr.y - 10) this.dom.style.top = (y - dim.h) + 'px'; dim =IconAds.Helper.getElemRect(this.dom); if (dim.x <= 0) this.dom.style.left = '10px'; if (dim.y <= 0) this.dom.style.top = '10px'; } this.draw = function(){ if (document.body.style.position!='relative') document.body.style.position = 'relative'; document.body.appendChild(this.dom); } this.undraw = function(){ if (this.dom.parentNode==document.body) document.body.removeChild(this.dom); } this.init(); } IconAds.Tooltip.show = function(ev){ var tooltip = IconAds.Tooltips[this.getAttribute('id')]; var pos = IconAds.Helper.getElemRect(this); tooltip.draw(); tooltip.setPosition(pos.x, pos.y); } IconAds.Tooltip.hide = function(ev){ var tooltip = IconAds.Tooltips[this.getAttribute('id')]; tooltip.undraw(); } } /*@cc_on @*/ /*@if (@_win32) document.write(''); var script = document.getElementById('__IconAds_ie_onload'); script.onreadystatechange = function(){ if (this.readyState == 'complete'){ IconAds.Helper.OnLoad(); } }; /*@end @*/ if (document.addEventListener){ document.addEventListener('DOMContentLoaded', IconAds.Helper.OnLoad, false); } else if (/WebKit/i.test(navigator.userAgent)){ /* Safari */ var _timer = setInterval(function(){ if (/loaded|complete/.test(document.readyState)){ IconAds.Helper.OnLoad(); } }, 10); } else { if (navigator.appName!='Microsoft Internet Explorer'){ window.onload = IconAds.Helper.OnLoad; } } IconAds.IconBox.load = function(){ var o = new Object(); o.data = new Array([{"url": "http://www.google.com/","redirect": "http://target.iconads.com/redirector?","type": "sb", "sbm": true,"img": "http://iconbox.iconads.com/data/social_bookmarks/google.gif","referrer": "3nhv379","service": "1","tooltip": {"title": "Google", "content": "", "url": "http://www.google.com/"}}, {"url": "http://www.yahoo.de","redirect": "http://target.iconads.com/redirector?","type": "sb", "sbm": true,"img": "http://iconbox.iconads.com/data/social_bookmarks/yahoo.gif","referrer": "3nhv379","service": "2","tooltip": {"title": "Yahoo", "content": "", "url": "http://www.yahoo.de"}}, {"url": "http://www.facebook.de","redirect": "http://target.iconads.com/redirector?","type": "sb", "sbm": true,"img": "http://iconbox.iconads.com/data/social_bookmarks/facebook.gif","referrer": "3nhv379","service": "3","tooltip": {"title": "Facebook", "content": "", "url": "http://www.facebook.de"}}, {"url": "http://www.digg.com","redirect": "http://target.iconads.com/redirector?","type": "sb", "sbm": true,"img": "http://iconbox.iconads.com/data/social_bookmarks/digg.png","referrer": "3nhv379","service": "4","tooltip": {"title": "Digg", "content": "", "url": "http://www.digg.com"}}, {"url": "http://www.stumbleupon.com/","redirect": "http://target.iconads.com/redirector?","type": "sb", "sbm": true,"img": "http://iconbox.iconads.com/data/social_bookmarks/stumbleupon.gif","referrer": "3nhv379","service": "5","tooltip": {"title": "StumbleUpon", "content": "", "url": "http://www.stumbleupon.com/"}}, {"url": "http://www.reddit.com/","redirect": "http://target.iconads.com/redirector?","type": "sb", "sbm": true,"img": "http://iconbox.iconads.com/data/social_bookmarks/reddit.gif","referrer": "3nhv379","service": "6","tooltip": {"title": "Reddit", "content": "", "url": "http://www.reddit.com/"}}, {"url": "http://www.delicious.com/","redirect": "http://target.iconads.com/redirector?","type": "sb", "sbm": true,"img": "http://iconbox.iconads.com/data/social_bookmarks/delicious.gif","referrer": "3nhv379","service": "7","tooltip": {"title": "Del.icio.us", "content": "", "url": "http://www.delicious.com/"}}, {"url": "http://www.technorati.com/","redirect": "http://target.iconads.com/redirector?","type": "sb", "sbm": true,"img": "http://iconbox.iconads.com/data/social_bookmarks/technorati.gif","referrer": "3nhv379","service": "8","tooltip": {"title": "Technorati", "content": "", "url": "http://www.technorati.com/"}}, ], [{"url": "http://www.mister-wong.de/","redirect": "http://target.iconads.com/redirector?","type": "sb", "sbm": true,"img": "http://iconbox.iconads.com/data/social_bookmarks/wong.gif","referrer": "3nhv379","service": "9","tooltip": {"title": "Mister Wong", "content": "", "url": "http://www.mister-wong.de/"}}, {"url": "http://www.slashdot.org/","redirect": "http://target.iconads.com/redirector?","type": "sb", "sbm": true,"img": "http://iconbox.iconads.com/data/social_bookmarks/slashdot.gif","referrer": "3nhv379","service": "10","tooltip": {"title": "Slashdot", "content": "", "url": "http://www.slashdot.org/"}}, {"url": "http://www.webnews.de/","redirect": "http://target.iconads.com/redirector?","type": "sb", "sbm": true,"img": "http://iconbox.iconads.com/data/social_bookmarks/webnews.gif","referrer": "3nhv379","service": "11","tooltip": {"title": "Webnews", "content": "", "url": "http://www.webnews.de/"}}, {"url": "http://www.oneview.de/","redirect": "http://target.iconads.com/redirector?","type": "sb", "sbm": true,"img": "http://iconbox.iconads.com/data/social_bookmarks/oneview.gif","referrer": "3nhv379","service": "12","tooltip": {"title": "Oneview", "content": "", "url": "http://www.oneview.de/"}}, {"url": "http://www.yigg.de/","redirect": "http://target.iconads.com/redirector?","type": "sb", "sbm": true,"img": "http://iconbox.iconads.com/data/social_bookmarks/yigg.gif","referrer": "3nhv379","service": "13","tooltip": {"title": "Yigg", "content": "", "url": "http://www.yigg.de/"}}, {"url": "http://www.blinklist.com/","redirect": "http://target.iconads.com/redirector?","type": "sb", "sbm": true,"img": "http://iconbox.iconads.com/data/social_bookmarks/blinklist.png","referrer": "3nhv379","service": "14","tooltip": {"title": "Blinklist", "content": "", "url": "http://www.blinklist.com/"}}, {"url": "http://www.spurl.net/","redirect": "http://target.iconads.com/redirector?","type": "sb", "sbm": true,"img": "http://iconbox.iconads.com/data/social_bookmarks/spurl.gif","referrer": "3nhv379","service": "15","tooltip": {"title": "Spurl", "content": "", "url": "http://www.spurl.net/"}}, {"url": "http://www.netvouz.com/","redirect": "http://target.iconads.com/redirector?","type": "sb", "sbm": true,"img": "http://iconbox.iconads.com/data/social_bookmarks/netvouz.gif","referrer": "3nhv379","service": "16","tooltip": {"title": "Netvouz", "content": "", "url": "http://www.netvouz.com/"}}, ], [{"url": "http://www.icio.de/","redirect": "http://target.iconads.com/redirector?","type": "sb", "sbm": true,"img": "http://iconbox.iconads.com/data/social_bookmarks/icio.gif","referrer": "3nhv379","service": "17","tooltip": {"title": "Icio", "content": "", "url": "http://www.icio.de/"}}, {"url": "http://www.symbaloo.com/","redirect": "http://target.iconads.com/redirector?","type": "sb", "sbm": true,"img": "http://iconbox.iconads.com/data/social_bookmarks/symbaloo.gif","referrer": "3nhv379","service": "18","tooltip": {"title": "Symbaloo", "content": "", "url": "http://www.symbaloo.com/"}}, {"url": "http://www.diigo.com/?source=redirect_from_furl","redirect": "http://target.iconads.com/redirector?","type": "sb", "sbm": true,"img": "http://iconbox.iconads.com/data/social_bookmarks/furl.gif","referrer": "3nhv379","service": "20","tooltip": {"title": "Furl", "content": "", "url": "http://www.diigo.com/?source=redirect_from_furl"}}, null, null, null, null, null, ], [ null, null, null, null, null, null, null, null, ]); o.style = { 'background': "#f2f2f2", 'border': "solid 1px #3d7bad" }; o.cellStyle = { 'margin': "1px", 'background': "white", 'tooltip': { 'background': "#FFFFFF", 'borderColor': "#000000", 'fontColor': "#000000" } }; IconAds.Helper.OnLoadElements.push(o); } IconAds.IconBox.load(); IconAds.Link = 'Hier werben mit iconads.com!';