document.write("
"); //variables de seteo de colores if(!color1) var color1 = "#0080C7"; if(!color2) var color2 = "#BAFFFF"; if(!color3) var color3 = "#4D566D"; if(!color4) var color4 = "#FFF"; //tengo que hacer q me tome q es para un solo dominio element = new myWidget(198,198); function myWidget(width,height){ this.b_arrayinfo1 = new Array("jjoorio2016.com","rentyourflat.eu","canibal.es","errorandwarning.com","javaforweb.com","hepensadoque.es"); this.b_arrayinfo2 = new Array("http://mercadonic.com/comprar/datos_dominio_en_venta/jjoorio2016.com/","http://mercadonic.com/comprar/datos_dominio_en_venta/rentyourflat.eu/","http://mercadonic.com/comprar/datos_dominio_en_venta/canibal.es/","http://mercadonic.com/comprar/datos_dominio_en_venta/errorandwarning.com/","http://mercadonic.com/comprar/datos_dominio_en_venta/javaforweb.com/","http://mercadonic.com/comprar/datos_dominio_en_venta/hepensadoque.es/"); this.b_username = 'manoloalonso'; this.fijoHeight = (height - 84); this.fontSize = 10+(width/60); this.flag = false; this.flag2 = false; this.titleText = ""; var is_chrome = navigator.userAgent.toLowerCase().indexOf('chrome') > -1; var is_firefox = navigator.userAgent.toLowerCase().indexOf('firefox') > -1; var is_ie = 1; //navigator.userAgent.toLowerCase().indexOf('msie') > -1; this.b_domain_flag = false; if(width > height && (width != 300 && height != 250) && (width != 336 && height != 280) && (width != 180 && height != 150) ) this.flag2 = true; if(height <= 150) { if(this.b_domain_flag){ if(width <= 150) this.fijoHeight = height - 99; else this.fijoHeight = 21; } else if(height <= 60) this.fijoHeight = 21; else if(height <= 90) this.fijoHeight = height - 56; else this.fijoHeight = height - 72; this.fontSize = 11; this.flag = true; } //CONTAINER this.container = document.getElementById('mercadonic426579207'); this.container.style.overflow = "hidden"; this.container.style.position = "relative"; this.container.style.display = "block"; this.container.style.width = width+"px"; this.container.style.height = height; this.container.style.borderColor = color1; this.container.style.borderWidth = "1px"; this.container.style.borderStyle = "solid"; this.container.style.padding = "0px"; this.container.style.margin = "0px"; //HEADER this.header = document.createElement('div'); this.header.style.backgroundColor = "#FFF"; this.header.style.display = "block"; this.header.style.position = "relative"; this.header.style.float = "left"; this.header.style.width = width+"px"; this.header.style.clear = "both"; this.logoref = document.createElement('a'); this.logoref.setAttribute('href','http://mercadonic.com/'); this.logoref.setAttribute('title','mercadonic.com'); this.logoref.setAttribute('target','_blank'); this.logo = document.createElement('img'); this.logo.setAttribute('src','http://mercadonic.com/img/widget/logo_chico2.jpg'); this.logo.setAttribute('alt','mercadonic.com'); this.logo.style.margin = "0px"; this.logo.style.padding = "0px"; this.logo.style.float = "left"; this.logo.style.borderStyle = "none"; this.logoref.appendChild(this.logo); this.header.appendChild(this.logoref); if(!this.flag2){ this.header.style.height = "38px"; this.header.style.textAlign = "center"; } else { this.header.style.display = "inline-block"; this.header.style.width = "92px"; } //TITULO this.titulo = document.createElement('div'); this.titulo.style.position="relative"; this.titulo.style.overflow = "hidden"; this.titulo.style.float = "left"; this.titulo.style.clear = "both"; this.titulo.style.backgroundColor = color1; this.titulo.style.display = "block"; this.subtitulo = document.createElement('p'); this.subtitulo.style.color = color2; this.subtitulo.style.fontSize = "10px"; this.subtitulo.style.fontFamily = "arial"; this.subtitulo.style.textAlign = "center"; this.subtitulo.style.fontWeight = "bold"; this.subtitulo.style.display = "block"; this.subtitulo.style.position="relative"; this.subtitulo.style.clear="both"; if(is_ie){ this.subtitulo.style.padding = "0px"; this.subtitulo.style.margin = "0px"; } if(!this.flag){ this.titulo.style.width = width+"px"; this.titulo.style.height = "32px"; if(is_ie) this.subtitulo.style.paddingTop = "8px"; } else{ this.titulo.style.width = width+"px"; if(!this.flag2){ //las q son cortas y hay q disminuir la altura de dominio en venta this.subtitulo.style.margin = "4px 0px 0px 0px"; if(!this.b_domain_flag) this.titulo.style.height = "22px"; else this.titulo.style.height = "32px"; } else{ //las q son mas anchas this.subtitulo.style.margin = "4px 0px 0px 0px"; if(!this.b_domain_flag) this.titulo.style.height = "38px"; else this.titulo.style.height = "48px"; } } if(!this.flag2){ this.titulo.style.margin = "0px"; this.titulo.style.padding = "0px"; } else{ if(this.b_domain_flag && width == "234") this.subtitulo.style.marginTop = "7px"; else this.subtitulo.style.marginTop = "12px"; this.titulo.style.display = "inline"; this.titulo.style.position = "absolute" this.titulo.style.width = width-92+"px"; } var text; if(!this.b_domain_flag) text = "DOMINIOS EN VENTA"; else text = "ESTE PAGINA WEB SE ENCUENTRA EN VENTA"; this.sometext = document.createTextNode(text); this.subtitulo.appendChild(this.sometext); this.titulo.appendChild(this.subtitulo); //FIJO this.fijo = document.createElement('div'); this.fijo.style.position="relative"; this.fijo.style.overflow = "hidden"; this.fijo.style.width = width+"px"; this.fijo.style.height = this.fijoHeight+"px"; this.fijo.style.display = "block"; this.fijo.style.float = "left"; this.fijo.style.clear = "both"; this.fijo.style.backgroundColor = color4; this.centrar = document.createElement('center'); this.ticker = document.createElement('div'); this.ticker.style.lineHeight = this.fontSize+4+"px"; this.ticker.style.paddingTop = "2px"; this.ticker.style.color = color3; this.ticker.style.fontSize = this.fontSize+"px"; this.ticker.style.fontFamily = "tahoma"; if(!this.flag2) this.ticker.style.textAlign = "center"; else this.ticker.style.textAlign = "left"; this.ticker.style.display ="block"; this.ref = new Array(); this.refText = new Array(); for (var i=0;i