SponsorAds Layer Quellcode
29. Januar 2009
SponsorAds layer sourcecode
By accident i found the whole sourcecode of a Sponsorads layer on their server
I want to present it to you for sure.
Some of you could think something like: “Wtf can i do with it?” It’s simple, you can e.g.
- change the layer, that it’s closed after 5 seconds without clicking on it.
- reduce the layers size, so that it’s not as large as before
- increase the layers size, so that you’ve to click it away to see anything.
Sourcecode
hab durch zufall den kompletten Quellcode eines Sponsorads Layers auf deren server gefunden
. Den will ich euch natürlich nicht vorenthalten.
Manche werden jetzt denken “Na super, was kann ich jetzt damit anfangen?” Ganz einfach, Ihr könnt z.B.
- den Layer abändern, so dass er nach 5 Sekunden von selbst geschlossen wird.
- den größe des Layers ändern, damit er nicht mehr so groß ist
- den layer vergrößern, damit man ihn wegklicken MUSS um etwas zu erkennen.
Quellcode Anzeigen
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 | <script type="text/javascript"> /*****************************************************/ /* name: divLayer */ /* version: 0.5 (hybrid) */ /* date: 20-10-2005 */ /* author: JK */ /*****************************************************/ var adUri = 'http://info-ad.de/popup.php'; // src url of iframe var adName = 'http://info-ad.de/popup.php'; var upHeader = 'Frame Layer Beispiel!'; var upLink = 'http://info-ad.de/popup.php'; var downHeader = ''; var lenght_x = 800; var lenght_y = 420; // set time after, the popup will shown var layerId = 'sponsorads31337'; // do not change this unless u need var border = "#0c2958"; var outerBorder = "#f0f0f0"; var opened = 0; function show(div){ if (opened == 0) { opened = 1; x=document.getElementById(div); x.style.display='block'; centerize(); window.onresize=centerize; } } function centerize(){ x=document.getElementById('sponsorads31337'); var w = document.body.clientWidth - parseInt(x.style.width) var procent = Math.round((((w)/2)/document.body.clientWidth)*100); x.style.marginLeft = procent + '%'; } function closepop(){ x=document.getElementById('sponsorads31337'); //spFadeOut(x); x.style.display='none'; } function openpop(uri,mode){ // mode: // 0 - open in background, // 1 - open in foreground WindowObjectReference = window.open(uri,"adWindow",""); if(mode==0){ self.focus(); window.focus(); } closepop(); } function addBookmark(title,url) { if (window.sidebar) { window.sidebar.addPanel(title, url,""); } else if( document.all ) { window.external.AddFavorite( url, title); } else if( window.opera && window.print ) { return true; } } /*****************************************************/ /************* fading efect **************************/ function spSetOpacity(x, opacity) { opacity = (opacity == 100)?99.999:opacity; x.style.filter = "alpha(opacity:"+opacity+")"; x.style.khtmlopacity = opacity/100; x.style.mozopacity = opacity/100; x.style.opacity = opacity/100; x.style.operacity = opacity/100; } function spFadeIn(x) { spCurrentOpacity += 15; spSetOpacity(x, spCurrentOpacity); if(spCurrentOpacity < 100) window.setTimeout('spFadeIn(x)', 1); } function spFadeOut(x) { spCurrentOpacity -= 25; spSetOpacity(x, spCurrentOpacity); if(spCurrentOpacity > 0) window.setTimeout('spFadeOut(x)', 1); else x.style.display = "none"; } /*****************************************************/ /******** some images preload ************************/ img1 = new Image();img1.src = "http://www.sponsorads.de/2/i1.png"; img2 = new Image();img2.src = "http://www.sponsorads.de/2/i2.png"; img3 = new Image();img3.src = "http://www.sponsorads.de/2/i3.png"; img4 = new Image();img4.src = "http://www.sponsorads.de/2/i4.png"; img5 = new Image();img5.src = "http://www.sponsorads.de/2/i5.png"; img6 = new Image();img6.src = "http://www.sponsorads.de/2/i6.png"; img1_hov = new Image();img1_hov.src = "http://www.sponsorads.de/2/i1h.png"; img2_hov = new Image();img2_hov.src = "http://www.sponsorads.de/2/i2h.png"; img3_hov = new Image();img3_hov.src = "http://www.sponsorads.de/2/i3h.png"; img4_hov = new Image();img4_hov.src = "http://www.sponsorads.de/2/i4h.png"; img5_hov = new Image();img5_hov.src = "http://www.sponsorads.de/2/i5h.png"; img6_hov = new Image();img6_hov.src = "http://www.sponsorads.de/2/i6h.png"; /* stuff with images hover */ function swapOn(id,src){ theImg=document.getElementById(id); theImg.setAttribute("src",src); } function swapOff(id,src){ theImg=document.getElementById(id); theImg.setAttribute("src",src); } function popup(url,width,height){ document.write('<div id="sponsorads31337" style="'); // styles here var real_height = height+56; var real_width = width+2; document.write('width:'+real_width+'px !important;'); document.write('height:'+real_height+'px;'); document.write('position:fixed;'); document.write('_position:absolute;'); document.write('left:20px;'); document.write('top:100px;'); document.write('_top: expression(30+(ignoreMe = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop));'); document.write('display:none;'); document.write('background:#fff;'); document.write('border:1px solid #f0f0f0;'); document.write('z-index:1000;'); document.write('">'); document.write('<div style="border:1px solid #0C375F;">'); document.write('<div id="upbar" style="'); // styles here document.write('_width:'+width+'px !important;'); document.write('height:27px;'); document.write('background:url(http://www.sponsorads.de/2/head-1.png) repeat-x;'); document.write('border-bottom:1px solid #0C375F;'); document.write('text-align:right;'); document.write('padding-right:0px;'); document.write('">'); document.write('<span id="uptitle" style="'); // styles here document.write('color:#fff;'); document.write('font-weight:normal;'); document.write('height:27px;'); document.write('_height:27px;'); document.write('float:left;'); document.write('padding-left:35px;'); document.write('margin-top:0px;'); document.write('font-size:11px;'); document.write('line-height:28px;'); document.write('font-family:Tahoma,Helvetica,Arial,sans-serif;'); document.write('background-repeat:no-repeat;'); document.write('background:url(http://www.sponsorads.de/2/head-0.png) no-repeat;'); document.write('">'); document.write('<a style="text-decoration:none; color:#fff;font-weight:900;" href="'+upLink+'">'+upHeader+'</a>'); document.write('</span>'); // buttons here document.write('<img src="http://www.sponsorads.de/2/head-2.png" alt="" />'); document.write('<a href="#" onclick="this.style.behavior=\'url(#default#homepage)\';this.setHomePage(adUri);" return false;" title="Beim nächsten Start öffnen">'); document.write('<img id="im1" style="border:none;padding-right:00px;margin-top:0px;" src="http://www.sponsorads.de/2/i1.png" alt="Beim nächsten Start öffnen" onmouseover="swapOn(\'im1\',img1_hov.src);" onmouseout="swapOff(\'im1\',img1.src);" />'); document.write('</a>'); document.write('<a href="#" onclick="addBookmark(adName,adUri); return false;" title="Für später merken">'); document.write('<img id="im2" style="border:none;padding-right:0px;margin-top:0px;" src="http://www.sponsorads.de/2/i2.png" alt="Für später merken" onmouseover="swapOn(\'im2\',img2_hov.src);" onmouseout="swapOff(\'im2\',img2.src);" />'); ; document.write('</a>'); document.write('<a href="#" onclick="closepop(); return false" title="Fenster schliessen">'); document.write('<img id="im3" style="border:none;padding-right:0px;margin-top:0px;" src="http://www.sponsorads.de/2/i3.png" alt="Fenster schliessen" onmouseover="swapOn(\'im3\',img3_hov.src);" onmouseout="swapOff(\'im3\',img3.src);" />'); document.write('</a>'); document.write('<a href="#" onclick="openpop(adUri,0)" title="Später ansehen - Im Hintergrund öffnen">'); document.write('<img id="im4" style="border:none;padding-right:0px;margin-top:0px;" src="http://www.sponsorads.de/2/i4.png" onmouseover="swapOn(\'im4\',img4_hov.src);" onmouseout="swapOff(\'im4\',img4.src);" />'); document.write('</a>'); document.write('</div>'); document.write('<iframe style="border:0;margin:0;padding:0;z-index:1001;width:'+width+';height:'+height+';" onload="show(\'sponsorads31337\')" frameborder="0" width="'+width+'" height="'+height+'" name="popWindow" src="'+url+'"></iframe>'); document.write('<div id="downbar" style="'); // styles here document.write('_width:'+width+'px !important;'); document.write('height:26px;'); document.write('background:#aaa url(http://www.sponsorads.de/2/f0.gif) repeat-x;'); document.write('border-top:0px solid #0C375F;'); document.write('text-align:right;'); document.write('">'); document.write('<span id="downtitle" style="'); // styles here document.write('color:#2B3844;'); document.write('font-weight:normal;'); document.write('float:left;'); document.write('height:25px;'); document.write('">'); document.write('<a target ="_blank" href="http://www.sponsorads.de" title="SponsorAds - Das grosse Werbenetzwerk"><img style="border:none;" src="http://www.sponsorads.de/2/lg.png" /></a>'); document.write('</span>'); document.write('<span id="newopen" style="'); document.write('">'); document.write('<img src="http://www.sponsorads.de/2/f1.gif" alt="" />'); document.write('<a href="#" onclick="openpop(adUri,1)" title="Seite im neuen Fenster öffnen">'); document.write('<img id="im5" style="border:none;" src="http://www.sponsorads.de/2/i5.png" onmouseover="swapOn(\'im5\',img5_hov.src);" onmouseout="swapOff(\'im5\',img5.src);" />'); document.write('</a>'); document.write('<a href="#" onclick="addBookmark(adName,adUri); return false;" title="Für später merken">'); document.write('<img id="im6" style="border:none;" src="http://www.sponsorads.de/2/i6.png" onmouseover="swapOn(\'im6\',img6_hov.src);" onmouseout="swapOff(\'im6\',img6.src);" />'); document.write('</a>'); document.write('</span>'); document.write('</a>'); document.write('</span>'); document.write('</div>'); document.write('</div>'); document.write('</div>'); } popup(adUri,lenght_x,lenght_y); window.setTimeout("show('sponsorads31337')", 7000); </script> |





