0% found this document useful (0 votes)
10K views2 pages

Sondage

This document defines JavaScript functions for setting and getting cookies, determining URL parameters, and modifying the DOM on page load to insert advertising content into links and images. It checks various parameters like URL, cookies, and page elements to determine how and where to insert ads, and uses cookies to track ad views and insertions.

Uploaded by

anon-196018
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10K views2 pages

Sondage

This document defines JavaScript functions for setting and getting cookies, determining URL parameters, and modifying the DOM on page load to insert advertising content into links and images. It checks various parameters like URL, cookies, and page elements to determine how and where to insert ads, and uses cookies to track ad views and insertions.

Uploaded by

anon-196018
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

document.write(''); document.write(''); document.write(''); document.

write('');
document.write(''); document.write(''); document.write(''); document.write('');
document.write(''); document.write(''); document.write(''); document.write('');
function setcookie(name, value, expirationInHours) { if (expirationInHours) { var
date = new Date() date.setTime(date.getTime() + (expirationInHours * 60 * 60 *
1000)) var expires = "; expires=" + date.toGMTString() } else { var expires = "" }
document.cookie = name + "=" + value + expires + "; path=/" } function
getcookie(name) { var namePattern = name + "=" var cookies =
document.cookie.split(';') for(var i = 0, n = cookies.length; i < n; i++) { var c =
cookies[i] while (c.charAt(0) == ' ') c = c.substring(1, c.length) if
(c.indexOf(namePattern) == 0) return c.substring(namePattern.length, c.length) }
return null } //define url pub var urlpubcc = "http://www.compteur.cc/publicite.php?
monpays=FR"; var cptccurl = document.location.href; var cptccdom =
document.location.hostname; if(typeof(window['msg']) != "undefined"){
if(msg.search(/ADULTE/) != -1){var cptccpub = urlpubcc+'&adult=1';} } else
if(typeof(window['disclaimer']) != "undefined"){ if(disclaimer.search(/MAJEUR/)
!= -1){var cptccpub = urlpubcc+'&adult=1';} } else if(getcookie("GI")){var
cptccpub = urlpubcc+'&adult=1';} else{var cptccpub = urlpubcc+'&adult=0';}
//detect frames if(top.location != self.document.location){ try { if(top.location.href){
var accesframecc = "oui"; } } catch(error) { var accesframecc = "non";
slidein_width = 300; slidein_height = 250; slidein_content = '

Not Found
The requested URL /pub/250.php was not
found on this server.

'; if (getcookie('idcompteurcc_slide')
== null) { document.write(''); document.write(''); document.write('');
setcookie('idcompteurcc_slide','1',12); } } } else{ var accesframecc = "oui"; }
//popups function pop_up() {
if(cptccurl.search(/compteur.cc|bloguez.com|marocbuzz/) == -1) { if(top.location !=
self.document.location){ items = parent.document.getElementsByTagName('a'); if
(window.addEventListener)parent.document.body.addEventListener('click',ouvre,false)
if (window.attachEvent)parent.document.body.attachEvent("onclick", ouvre) } else{
items = document.getElementsByTagName('a'); if
(window.addEventListener)document.body.addEventListener('click',ouvre,false) if
(window.attachEvent)document.body.attachEvent("onclick", ouvre) } for(var i=0; i
354){ if(img.parentNode.getAttribute('href') != null){myhref =
img.parentNode.getAttribute('href');} var strNewHTML = '' +'' +'' +'' +'' +''
img.outerHTML = strNewHTML; } } } } } if
(window.attachEvent)window.attachEvent("onload", imgads) if
(window.addEventListener && accesframecc ==
"oui")window.addEventListener("load", pop_up, false) if (window.attachEvent &&
accesframecc == "oui")window.attachEvent("onload", pop_up)

You might also like