Test de bloc
div id=ADHEAD !!!

Script lorsque tu regardes à l'adresse de la page:

var DOMAIN = 'membres.lycos.fr'; 
var PATH = '/'; 
var DESIGN = 'TRIPOD'; 
var CAPPING = 12; 
var search_query=""; 
var BASE='http://ads.multimania.lycos.fr/ad/dxpert/'; 
myreg = new RegExp("lycos\.fr","i"); 
if ( !myreg.test("'"+top.location+"'") ) { 
    nwreg = new RegExp ("http://([^/]+)?(/([a-z0-9A-Z\-\_]+)?[^']+)","i"); 
    rn = nwreg.exec("'"+self.location+"'"); 
    if (parent.frames.length==2) { 
        top.location = "http://" + rn[1] + rn[2]; 
    } 
    else { 
        top.location = "http://" + rn[1] + "/" + rn[3]; 
    }
} 
else { 
    var AgntUsr=navigator.userAgent.toLowerCase(); 
    var isMac=(AgntUsr.indexOf('mac')!=-1)?1:0; 
    var isWin=(AgntUsr.indexOf('win')!=-1)?1:0; 
    var isDom=(document.getElementById)?1:0; 
    var isNS=(AgntUsr.indexOf('mozilla')!=-1&&AgntUsr.indexOf('compatible')==-1)?1:0; 
    var isEX=(AgntUsr.indexOf('msie')!=-1)?1:0; 
    var isN6=(isDom&&isNS)?1:0; 
    var isE5=(isDom&&isEX)?1:0; 
    var isN4=(isNS&&!isDom&&document.layers)?1:0; 
    var isE4=(isEX&&!isDom&&document.all)?1:0; 
    var DXPERT, DXPERTSMALL, MetaKW, adDisplayed = false; 
    if (isEX) { var clientW = document.body.clientWidth; 
    var clientH = document.body.clientHeight; 
    } else { var clientW = window.innerWidth-16; 
    var clientH = window.innerHeight; 
    } if (document.cookie) { 
        var cookies = document.cookie.split(/;/); 
    for(i=0;i'; 
    if (isEX||isNS) { if ( top == self && top.frames.length == 0 ) { document.write(ADSRC); 
    } else { if (isEX) { var mytop = top.document; 
    sf = mytop.body.clientWidth * mytop.body.clientHeight; 
    sf = sf / (self.document.body.clientWidth * self.document.body.clientHeight); 
    if (sf<3) { if (!mytop.adDisplayed) { mytop.adDisplayed = true; 
    document.write(ADSRC); 
    } } } else { function getSurface(w) { if (!w.sf) w.sf = w.innerWidth * w.innerHeight; 
    if (w.sf >= sfMax) { sfMax = w.sf; 
    frameMax = w; 
    } } function findFrameMax(w) { var i; 
    if (w.frames.length == 0) getSurface(w); 
    else for (i = 0; 
    i < w.frames.length; 
    i++) { if (w.frames[i].frames.length > 0) { findFrameMax(w.frames[i]); 
    } else { getSurface(w.frames[i]); 
    } } } if ((top != self) || (top.frames.length==0)) { findFrameMax(top); 
    if (frameMax == self) document.write(ADSRC); 
    } } } } 
} 

Vrai script:

var DOMAIN = 'membres.lycos.fr';
var PATH = '/';
var DESIGN = 'TRIPOD';
var CAPPING = 12;
var search_query="";
var BASE='http://ads.multimania.lycos.fr/ad/dxpert/';
myreg = new RegExp("lycos\.fr","i");
if ( !myreg.test("'"+top.location+"'") ) {
	nwreg = new RegExp ("http://([^/]+)?(/([a-z0-9A-Z\-\_]+)?[^']+)","i");
	rn = nwreg.exec("'"+self.location+"'");
	if (parent.frames.length==2) { top.location = "http://" + rn[1] + rn[2]; }
	else { top.location = "http://" + rn[1] + "/" + rn[3]; }
} else {
	var AgntUsr=navigator.userAgent.toLowerCase();
	var isMac=(AgntUsr.indexOf('mac')!=-1)?1:0;
	var isWin=(AgntUsr.indexOf('win')!=-1)?1:0;
	var isDom=(document.getElementById)?1:0;
	var isNS=(AgntUsr.indexOf('mozilla')!=-1&&AgntUsr.indexOf('compatible')==-1)?1:0;
	var isEX=(AgntUsr.indexOf('msie')!=-1)?1:0;
	var isN6=(isDom&&isNS)?1:0;
	var isE5=(isDom&&isEX)?1:0;
	var isN4=(isNS&&!isDom&&document.layers)?1:0;
	var isE4=(isEX&&!isDom&&document.all)?1:0;
	var DXPERT, DXPERTSMALL, MetaKW, adDisplayed = false;
	
	if (isEX) {
		var clientW = document.body.clientWidth;
		var clientH = document.body.clientHeight;
	} else {
		var clientW = window.innerWidth-16;
		var clientH = window.innerHeight;
	}
		
	if (document.cookie) {
		var cookies = document.cookie.split(/; /);
		for(i=0;i<cookies.length;i++) {
			cookies[i] = cookies[i].split(/=/);
			if (cookies[i][0] == 'DXPERT') {
				DXPERT = cookies[i][1];
			} else if (cookies[i][0] == 'DXPERTSMALL') {
				DXPERTSMALL = cookies[i][1];
			} else if (cookies[i][0] == 'MetaKW') {
				MetaKW = unescape(cookies[i][1]);
			}
		}
	}
	
	var sfMax = 0;
	var sf,frameMax;
	
	var ADSRC = '<scr'+'ipt type="text/javascript" src="'+BASE+'dxpert-load.phtml?DXPERTSMALL='+DXPERTSMALL+'&category='+escape(category)+'&search_query='+escape(search_query)+'&MetaKW='+escape(MetaKW)+'&clientW='+clientW+'&clientH='+clientH+'&DXPERT='+DXPERT+'&DOMAIN='+escape(DOMAIN)+'&PATH='+escape(PATH)+'&CAPPING='+CAPPING+'&DESIGN='+DESIGN+'&isMac='+isMac+'&isWin='+isWin+'&isDom='+isDom+'&isNS='+isNS+'&isEX='+isEX+'&isE4='+isE4+'&isN4='+isN4+'&isE5='+isE5+'&isN6='+isN6+'"></scr'+'ipt>';
	
	if (isEX||isNS) {
		if ( top == self && top.frames.length == 0 ) {
			document.write(ADSRC);
		} else {
			if (isEX) {
				var mytop = top.document;
				sf = mytop.body.clientWidth * mytop.body.clientHeight;
				sf = sf / (self.document.body.clientWidth * self.document.body.clientHeight);
				if (sf<3) {
					if (!mytop.adDisplayed) {
						mytop.adDisplayed = true;
						document.write(ADSRC);
					}
				}
			} else {
				function getSurface(w) {
					if (!w.sf) w.sf = w.innerWidth * w.innerHeight;
					if (w.sf >= sfMax) { sfMax = w.sf; frameMax = w; }
				}
				function findFrameMax(w) {
					var i;
					if (w.frames.length == 0) getSurface(w);
					else for (i = 0; i < w.frames.length; i++) { if (w.frames[i].frames.length > 0) { findFrameMax(w.frames[i]); } else { getSurface(w.frames[i]); } }
				}
				if ((top != self) || (top.frames.length==0)) {
					findFrameMax(top);
					if (frameMax == self) document.write(ADSRC);
				}
			}
		}
	}
}

SCRIPT NO 2


var LYCOS_EMBEDS = new Array();
var vis = 'visible';
var hid = 'hidden';
var screenW = screen.availWidth;
var screenH = screen.availHeight;
var oLayers = document.all;
var ADHEAD_H = 23;
var ADHEAD_W = clientW;
var ADRIGHT_W = 23;
var ADBOTTOM_H = 14;
var ADBOTTOM_W = 365;
var ADCLOSE_H = 14;
var ADCLOSE_W = 250;
var ADURL = false;
var ADBACKGROUND = false;
var ADSTART = 0;
var ADEND = 8000;
var ADREMINDER = 15000;
var ADHEIGHT = 60;
var ADWIDTH = 468;
var ADBACKGROUND_H = ADHEIGHT;
var ADRIGHT_H = ADBACKGROUND_H;
var ADBACKGROUND_W = ADWIDTH;
var ADBRANDCOLOR = '#0099cc';
var ADBRANDSTR1 = '<a href="http://webcenter.lycos.fr/" class="adlink">-<Réservez votre nom de domaine avant qu’il ne soit trop tard !</a>';
var ADBRANDSTR2 = '<a href="http://www.multimania.lycos.fr/" class="adlink">Hébergement gratuit</a>';
var ADBRANDSTR3 = 'Cliquez ici pour plus de détails';
var BASE = BASE +  'design/'+ DESIGN +'_FR/';

var SP = '<td align=left width=21><img src="'+BASE+'img/pub_onglet.gif" border=0 width=21 height=22></td>';
var BLANK = '<img src="'+BASE+'img/pub_vide.gif" border=0 width=1 height=1>';

document.write('<style type="text/css">.adlink {font-family:verdana,helvetica,arial;font-size:9px;color:white;font-weight:bold;text-decoration:none;}</style>');

document.write('<div id=ADHEAD style="z-index:1000;position:absolute;visibility:'+hid+';width:'+ADHEAD_W+'px;height:'+ADHEAD_H+'px;left:0px;top:0px;">'+
		'<table border=0 cellpadding=0 cellspacing=0 width=100% height=23 bgcolor='+ADBRANDCOLOR+'><tr>'+
		'<td align=left width=82><a href="http://www.lycos.fr" target="www.lycos.fr"><img src="'+BASE+'img/pub_lycos.gif" border=0 width=82 height=22></a></td>'+
		'<td align=left><a href="http://www.multimania.lycos.fr" target="www.multimania.lycos.fr"><img src="'+BASE+'img/pub_multi.gif" border=0 width=114 height=22></a></td>'+ SP +
		'<td nowrap align=center style="font-family:verdana,helvetica,arial;font-size:9px;color:white;font-weight:bold;">'+ADBRANDSTR1+'</td>'+ SP +
		'<td nowrap align=center style="font-family:verdana,helvetica,arial;font-size:9px;color:white;font-weight:bold;">'+ADBRANDSTR2+'</td>'+ SP +
		'<td nowrap align=center style="font-family:verdana,helvetica,arial;font-size:9px;color:white;font-weight:bold;">'+(ADURL ? '<a target="_blank" href="'+ADURL.toLowerCase()+'" class="adlink">'+ADBRANDSTR3+'</a>' : ' ')+'</td>'+
		'<td align=right width=23><img src="'+BASE+'img/pub_fleche.gif" border=0 width=23 height=22></td>'+
		'</tr><tr height=1>'+
		'<td colspan=8 bgcolor=#000000>'+BLANK+'</td>'+
		'<td bgcolor='+ADBRANDCOLOR+'>'+BLANK+'</td>'+
		'</tr></table>'+
		'</div>');

document.write('<div id=ADRIGHT style="z-index:999;position:absolute;visibility:'+hid+';width:'+ADRIGHT_W+'px;height:'+ADRIGHT_H+'px;left:'+(clientW-ADRIGHT_W)+'px;top:'+ADHEAD_H+'px;background-color:'+ADBRANDCOLOR+';background-image:url('+BASE+'img/pub_motif.gif);">'+
		'<table border=0 cellpadding=0 cellspacing=0>'+
		'<tr><td><img src="'+BASE+'img/pub_vide.gif" border=0 width=1 height='+(ADRIGHT_H-22)+'></td></tr>'+
		'<tr><td bgcolor='+ADBRANDCOLOR+'><a href="javascript:void(0);" onclick="closeLycosAd();"><img src="'+BASE+'img/pub_close.gif" border=0 width=23 height=22></a></td></tr>'+
		'</table>'+
		'</div>');

document.write('<div id=ADBOTTOM style="z-index:998;position:absolute;visibility:'+hid+';height:'+ADBOTTOM_H+'px;width:'+ADBOTTOM_W+'px;left:'+(clientW-ADBOTTOM_W)+'px;top:'+(ADHEAD_H+ADHEIGHT)+'px;">'+
		'</div>');

document.write('<div id=ADBACKGROUND style="z-index:996;position:absolute;visibility:'+hid+';width:'+ADBACKGROUND_W+'px;height:'+ADBACKGROUND_H+'px;left:'+(clientW-ADBACKGROUND_W-ADRIGHT_W)+'px;top:'+ADHEAD_H+'px;'+(ADBACKGROUND ? 'background-color:'+ADBACKGROUND+';' : '')+'">'+
		'<div id=CLAP style="z-index:997;width:153;height:144;position:relative;left:'+(ADBACKGROUND_W-153)/2+'px;top:'+(ADBACKGROUND_H-144)/2+'px;">'+
		BLANK+
		'</div>'+
		'</div>');

document.write('<div id=ADCLOSE style="z-index:1001;position:absolute;visibility:'+hid+';height:'+ADCLOSE_H+'px;width:'+ADCLOSE_W+'px;left:'+(clientW-ADCLOSE_W)+'px;top:0px;">'+
		'<table border=0 cellpadding=0 cellspacing=0 width=250 height=14>'+
		'<tr><td width=48 rowspan=2 height=14><img src="'+BASE+'img/pub_replay_lycos.gif" width=48 height=14 border=0></td>'+
		'<td nowrap align=center height=13 bgcolor='+ADBRANDCOLOR+'><a href="javascript:void(0);" onclick="launchLycosAd();" style="font-family:verdana,helvetica,arial;font-size:9px;color:white;font-weight:bold;text-decoration:none;">Revoir la pub</a></td>'+
		'<td bgcolor='+ADBRANDCOLOR+' width=20 rowspan=2><a href="javascript:void(0);" onclick="launchLycosAd();"><img src="'+BASE+'img/pub_replay_fleche.gif" width=20 height=14 border=0></a></td></tr>'+
		'<tr><td bgcolor=#000000>'+BLANK+'</td></tr>'+
		'</table>'+
		'</div>');

 document.write('<div id=ADLYCOS style="z-index:9999;position:absolute;visibility:'+hid+";left:"+(clientW-ADWIDTH-ADRIGHT_W)+"px;top:"+ADHEAD_H+"px;"+'">');document.write("<!--Ad Image-->");document.write("<A HREF=\"http://ads.lycos.de/adclick/CID=00068039e647c3c500000000/SITE=MFR/AREA=.468x60.MEMBERS.LES INCLAS/ACC_RANDOM=1021610127/\" TARGET=\"_blank\">");document.write("<IMG SRC=\"http://www.lycos.fr/advertising/graphics/_lycos/468x60shopcaddie.gif\" ALT=\"\"  border=\"0\"></A>");document.write("<!--Ad Image--><br>");document.close();document.write('</div>');

	function in_array(n,a) {
		for(i=0;i<a.length;i++) {
			if (a[i]==n) return true;	
		}
		return false;
	}
	function objectsVis(s,all) {
	
		return true;
		
	}
	
var closeTimeout, endTimeout;

function setVis(z, v) {
	var nLayers = (isEX||isDom) ? oLayers[z].style : oLayers[z];
	if ( nLayers.visibility != v )
		nLayers.visibility = v;
}

function display(a,b) {
	if (a!=b) objectsVis(b,false);
	setVis('ADHEAD',a);
	setVis('ADRIGHT',a);
	setVis('ADBOTTOM',a);
	setVis('ADBACKGROUND',a);
	setVis('ADLYCOS',a);
	setVis('ADCLOSE',b);
}

function closeLycosAd() {
	
	if (closeTimeout)
		clearTimeout(closeTimeout);
	
	display(hid,vis);
	endTimeout = setTimeout('display(hid,hid)',ADREMINDER);
	
}

function launchLycosAd() {
	
	if (endTimeout)
		clearTimeout(endTimeout);
	/*
	var nLayers = (isEX||isDom) ? oLayers['ADLYCOS'].style : oLayers['ADLYCOS'];
	nLayers.left = clientW - ADBACKGROUND_W - ADRIGHT_W;
	nLayers.top = ADHEAD_H;
	*/
	display(vis,hid);
	closeTimeout = setTimeout('closeLycosAd()',ADEND);
	
}
function loaded() {

		setTimeout('launchLycosAd()',ADSTART);
		
		var ckdate = new Date();
		ckdate.setTime(ckdate.getTime() + 31*24*60*60*1000);
		var expdate = ckdate.toGMTString();
		document.cookie = 'DXPERTSMALL=1021610127:aca32536bb3ee88fa10808f23c34f608;domain='+DOMAIN+';path='+PATH+';expires='+expdate;
		
	}
	onload = loaded;