//Alianzo var iedom=document.all||document.getElementById function alianzoTabla() { var marqueebgcolor=array_scroll[0][6] var iedom=document.all||document.getElementById if (iedom) document.write('') if (iedom||document.layers) { with (document) { document.write('
') if (iedom) { write('
') write('
') write('
') write('
') write('
') } else if (document.layers) { write('') write('') write('') } document.write('
') } } } function AbrirFichaProducto(afp_cod,afp_sexo) { //afp_cod: codigo del procucto var ventana2; var destino; destino="http://www.xelectia.com/ficha.asp?cod=" + afp_cod + "&sx=" + afp_sexo ventana2 = window.open(destino, "Ventanafichaproducto", "width=700,height=530,top=120,left=200,scrollbars=yes,toolbar=no,menubar=no,locationbar=no"); ventana2.focus(); } //Specify the marquee's width (in pixels) var marqueewidth="191px" //Specify the marquee's height var marqueeheight="20px" //Specify the marquee's marquee speed (larger is faster 1-10) var marqueespeed=3; var intervalo_tiempo; if(navigator.appVersion.indexOf("NT")!=-1) { marqueespeed=1 } intervalo_tiempo=(marqueespeed + 1) * 10 ////NO NEED TO EDIT BELOW THIS LINE//////////// marqueespeed=(document.all)? marqueespeed : Math.max(1, marqueespeed-1) //slow speed down by 1 for NS var copyspeed=marqueespeed /* PARA SACAR */ var array_scroll=new Array; //array_scroll[i]=["capaIE1", "capaIE2", "contenedorNS", "capaNS1", "capaNS2" var contenido, "colorfondo", ultimadireccion,capatemporal, actualwidth,movimiento si/no] /*bucle*/ array_scroll[0]=["iemarquee_0","iemarquee1_0","ns_marquee_0","ns_marquee1_0","ns_marquee2_0","marqueecontent_0","#C1C6C0","0","temp_0","","1"] var marqueecontent_0=' Ibarreta Óptica -' /*fin bucle*/ function populate(indice) { var aux, aux2 if (iedom){ aux=document.getElementById? document.getElementById(array_scroll[indice][0]) : document.all.elements[array_scroll[indice][0]] aux2=document.getElementById? document.getElementById(array_scroll[indice][1]) : document.all.elements[array_scroll[indice][1]] aux.innerHTML=eval(array_scroll[indice][5]) aux2.innerHTML= aux.innerHTML array_scroll[indice][9]=document.all? eval(array_scroll[indice][0]).offsetWidth : document.getElementById(array_scroll[indice][1]).offsetWidth if(array_scroll[indice][9](array_scroll[indice][9]*(-1)+8)) aux.style.left=parseInt(aux.style.left)-copyspeed else aux.style.left=parseInt(aux2.style.left)+ array_scroll[indice][9] + 5 //+ margen +"px" if (parseInt(aux2.style.left)>(array_scroll[indice][9]*(-1)+8)) aux2.style.left=parseInt(aux2.style.left) - copyspeed else aux2.style.left=parseInt(aux.style.left) + array_scroll[indice][9] + 5 //margen +"px" } else if (document.layers){ if (ns_slide.left>(actualwidth*(-1)+8)) ns_slide.left-=copyspeed else ns_slide.left=ns_slide2.left+actualwidth + 5 if (ns_slide2.left>(actualwidth*(-1)+8)) ns_slide2.left-=copyspeed else ns_slide2.left=ns_slide.left+actualwidth + 5 } } } /* FIN PARA SACAR */ /* visor de productos */ /* Interactive Image slideshow with text description By Christian Carlessi Salvadó (cocolinks.net.gt). Keep this notice intact. Visit http://www.dynamicdrive.com for script */ g_fPlayMode = 0; g_iimg = -1; g_imax = 0; // se le da valor despues de recorrido el array de articulos g_ImageTable = new Array(); function ChangeImage(fFwd) { if (fFwd) { if (++g_iimg==g_imax) g_iimg=0; } else { if (g_iimg==0) g_iimg=g_imax; g_iimg--; } Update(); } function getobject(obj){ if (document.getElementById) return document.getElementById(obj) else if (document.all) return document.all[obj] } function Update(){ //getobject("_Ath_Slide").src = g_ImageTable[g_iimg][0].src //getobject("_Ath_Slide").src = g_ImageTable[g_iimg][0]; //ThumbAsp/ThumbGenerate.asp?VFilePath= getobject("_Ath_Slide").src = "Thumbasp/ThumbGenerate.asp?VFilePath=" + g_ImageTable[g_iimg][0] + "&Width=200&Height=267&Quality=90"; getobject("_Ath_Link").href = g_ImageTable[g_iimg][1]; getobject("compra_link").href = g_ImageTable[g_iimg][1]; } function Stop() { g_fPlayMode = false; } function Play() { g_fPlayMode =true; Next(); } function OnImgLoad() { if (g_fPlayMode){ window.setTimeout("Tick()", g_dwTimeOutSec*1000); } } function Tick() { if (g_fPlayMode) Next(); } function Prev() { ChangeImage(false); } function Next() { ChangeImage(true); } ////configure below variables///////////////////////////// //tenemos que recorrer el array que hemos creado con los articulos g_ImageTable[0] = new Array ("/images/comercio50/art3637/GafasArcII_300.jpg","javascript:AbrirFichaProducto(3637,'UA')"); g_ImageTable[1] = new Array ("/images/comercio40/art2944/34.galaxyJF(1).jpeg","javascript:AbrirFichaProducto(2944,'M')"); g_ImageTable[2] = new Array ("/images/comercio40/art2946/35.nova(1).jpg","javascript:AbrirFichaProducto(2946,'UA')"); g_ImageTable[3] = new Array ("/images/comercio40/art2943/33Technium(1).jpg","javascript:AbrirFichaProducto(2943,'UA')"); g_ImageTable[4] = new Array ("/images/comercio40/art2949/38.visente(1).jpeg","javascript:AbrirFichaProducto(2949,'UA')"); g_ImageTable[5] = new Array ("/images/comercio40/art2948/37.bouken(1).jpeg","javascript:AbrirFichaProducto(2948,'UA')"); g_ImageTable[6] = new Array ("/images/comercio50/art3641/GafasArcterra_300.jpg","javascript:AbrirFichaProducto(3641,'UA')"); g_ImageTable[7] = new Array ("/images/comercio40/art2947/36.sin(1).jpg","javascript:AbrirFichaProducto(2947,'UA')"); // maximo de imagenes g_imax=8 //extend the above list as desired g_dwTimeOutSec=2 ////End configuration///////////////////////////// function inicio(){ MM_preloadImages('images/playon01.gif','images/stopon01.gif','images/prevon01.gif','images/nexton01.gif'); populate(0); Play() } window.onload=inicio