Return to Snippet

Revision: 51182
at September 16, 2011 04:24 by anobre


Updated Code
/*
CASOS APLICAVEIS:
Backgrounds servidos pela Mediamind/eyeblaster, em que mexemos no DOM (ex: puxar o site para baixo) via zahir.

OCORRENCIA: 
Se não fizermos o OS detection, vamos mexer no DOM mas o fundo/ad nunca chega a aparecer

SOLUCAO:
Fazer OS detection no flight. 
SE ((NÃO (LINUX OU UNIX)), CORRE CODIGO  DA CAMPANHA)

NOTA: Normalmente servido nas tags POP
EXEMPLO APLICACAO: campanha ZON Relvado: 09/2011

*/

var getOS = function () {
	var a = navigator.appVersion;
	if((a.indexOf("X11")!=-1) || (a.indexOf("Linux")!=-1)) {
		return true;
	}
};

if (!getOS()) {

//Código do ad, normalmente via write()
//document.write("<script type='text/javascript'>eyeblaster_path.js</script>");

};

Revision: 51181
at September 16, 2011 04:22 by anobre


Updated Code
//CASOS APLIC�VEIS:
//Backgrounds servidos pela Mediamind/eyeblaster, em que mexemos no DOM (ex: puxar o site para baixo) via zahir.

//OCORR�NCIA: 
//Se não fizermos o OS detection, vamos mexer no DOM mas o fundo/ad nunca chega a aparecer

//SOLU��O:
//Fazer OS detection no flight. 
//SE ((N�O (LINUX OU UNIX)), CORRE CODIGO  DA CAMPANHA)

//NOTA: Normalmente servido nas tags POP

var getOS = function () {
	var a = navigator.appVersion;
	if((a.indexOf("X11")!=-1) || (a.indexOf("Linux")!=-1)) {
		return true;
	}
};

if (!getOS()) {

//Codigo do ad, normalmente via write()
//document.write("<script type='text/javascript'>eyeblaster_path.js</script>');

};

Revision: 51180
at September 16, 2011 04:21 by anobre


Updated Code
//CASOS APLICÁVEIS:
//Backgrounds servidos pela Mediamind/eyeblaster, em que mexemos no DOM (ex: puxar o site para baixo) via zahir.

//OCORRÊNCIA: 
//Se não fizermos o OS detection, vamos mexer no DOM mas o fundo/ad nunca chega a aparecer

//SOLUÇÃO:
//Fazer OS detection no flight. 
//SE ((NÃO (LINUX OU UNIX)), CORRE CODIGO  DA CAMPANHA)

//NOTA: Normalmente servido nas tags POP

var getOS = function () {
	var a = navigator.appVersion;
	if((a.indexOf("X11")!=-1) || (a.indexOf("Linux")!=-1)) {
		return true;
	}
};

if (!getOS()) {

//Código do ad, normalmente via write()
//document.write('<script type="text/javascript">eyeblaster_path.js</script>');

};

Revision: 51179
at September 16, 2011 04:19 by anobre


Updated Code
/*
CASOS APLICÁVEIS:
Backgrounds servidos pela Mediamind/eyeblaster, em que mexemos no DOM (ex: puxar o site para baixo) via zahir.

OCORRÊNCIA: 
Se não fizermos o OS detection, vamos mexer no DOM mas o fundo/ad nunca chega a aparecer

SOLUÇÃO:
Fazer OS detection no flight. 
SE ((NÃO (LINUX OU UNIX)), CORRE CODIGO  DA CAMPANHA)

NOTA: Normalmente servido nas tags POP
*/

var getOS = function () {
	var a = navigator.appVersion;
	if((a.indexOf("X11")!=-1) || (a.indexOf("Linux")!=-1)) {
		return true;
	}
};

if (!getOS()) {

//Código do ad, normalmente via write()
//document.write('<script type="text/javascript">eyeblaster_path.js</script>');

};

Revision: 51178
at September 16, 2011 04:18 by anobre


Initial Code
/*
CASOS APLICÁVEIS:
Backgrounds servidos pela Mediamind/eyeblaster, em que mexemos no DOM (ex: puxar o site para baixo) via zahir.

OCORRÊNCIA: 
Se não fizermos o OS detection, vamos mexer no DOM mas o fundo/ad nunca chega a aparecer

SOLUÇÃO:
Fazer OS detection no flight. 
SE ((NÃO (LINUX OU UNIX)), CORRE CODIGO  DA CAMPANHA)

NOTA: Normalmente servido nas tags POP
*/

var getOS = function () {
	var a = navigator.appVersion;
	if((a.indexOf("X11")!=-1) || (a.indexOf("Linux")!=-1)) {
		return true;
	}
};

if (!getOS()) {
//Código do ad, normalmente via write()
//document.write('<script type="text/javascript">eyeblaster_path.js</script>')
};

Initial URL


Initial Description


Initial Title
[ZAHIR] BG EYEBLASTER - Não descarregar em LINUX/UNIX

Initial Tags


Initial Language
JavaScript