Ver Mensaje Individual
  #4 (permalink)  
Antiguo 10/07/2012, 16:38
leapastor
 
Fecha de Ingreso: marzo-2012
Mensajes: 10
Antigüedad: 12 años, 2 meses
Puntos: 0
Respuesta: Iframe con Java

Bueno, voy a pasar a explicar todo.
http://mastercoat.com.ar/producto/
Esa es la página en la que estoy teniendo problemas. Cuando se selecciona una opcion del primer menu, aparecen mas opciones en el segundo menú, y de ahí al tercero. (No intenten con el primero, porque ese solo hay un tipo. Seleccionen Aditivos de hormigon > Plastificantes > Sikacrate Plus. La idea, es que a partir de la opcion que se seleccione en el tercer menu, se cargue un iframe abajo..
Yo pensé que esas funciones eran en javascript como las que estaba poniendo yo. Si no es así, pido disculpas y que reubiquen el tema.
Estos menus, estan hechos en JavaScript, y aquí el código.

Cita:
<script type="text/javascript">
function slctr(texto,valor){
this.texto = texto
this.valor = valor
}
//*******PRIMER MENU ARRANCA *******************

var op1=new Array()
op1[0] = new slctr('-----Seleccione un producto-----')
op1[1] = new slctr("Sika 2",'sika2')
op1[2] = new slctr("Sika 3",'sika3')
op1[3] = new slctr("Sika 3 (sin cloruro)",'sika3sin')
op1[4] = new slctr("Antifrosto",'antifrosto')
op1[5] = new slctr("Friolite OC",'frioliteoc')


var op2=new Array()
op2[0] = new slctr('-----Seleccione un tipo de producto-----')
op2[1] = new slctr("PLASTIFICANTES",'plastificantes')
op2[2] = new slctr("REDUCTORES DE AGUA",'reductoresdeagua')
op2[3] = new slctr("SUPERFLUIDICANTES",'superfluidicantes')
op2[4] = new slctr("HIPERFLUIDIFICANTES",'hiperfluidificantes')
op2[5] = new slctr("ACELERANTES DE RESISTENCIA",'acelerantesderesistencia')
op2[6] = new slctr("AGENTES EXPANSIVOS",'agentesexpansivos')
op2[7] = new slctr("HIDROFUGOS",'hidrofugos')
op2[8] = new slctr("AGENTE ESPUMIGENO",'agenteespumigeno')
op2[9] = new slctr("INCORPORADORES DE AIRE",'incorporadoresdeaire')
op2[10] = new slctr("AYUDA DE BOMBEO",'ayudadebombeo')
op2[11] = new slctr("AGENTES DE CUADRO",'agentesdecuadro')
op2[12] = new slctr("DESMOLDANTES",'desmoldantes')

var op3=new Array()
op3[0] = new slctr('-----Seleccione un producto-----')
op3[1] = new slctr("SikaCim Ligante",'sikacimligante')
op3[2] = new slctr("Sika Latex",'sikalatex')

var op4=new Array()
op4[0] = new slctr('-----Seleccione un producto-----')
op4[1] = new slctr("Sikagrout 212",'sikagrout212')
op4[2] = new slctr("Sika AnchorFix -1",'sikaanchorfix-1')
op4[3] = new slctr("Sika AnchorFix -2",'sikaanchorfix-2')

var op5=new Array()
op5[0] = new slctr('-----Seleccione un producto-----')
op5[1] = new slctr("Sika Monotop 615",'sikamonotop615')
op5[2] = new slctr("Sika Monotop 620",'sikamonotop620')
op5[3] = new slctr("Sika Top Armatec 110 EC",'sikatoparmatec110ec')
op5[4] = new slctr("Sikaguard 720 EpoCem",'sikaguard720epocem')

var op6=new Array()
op6[0] = new slctr('-----Seleccione un producto-----')
op6[1] = new slctr("Sikadur 31",'sikadur31')
op6[2] = new slctr("Sikadur 32 Gel",'sikadur32gel')
op6[3] = new slctr("Sikadur 41 Mortero",'sikadur41mortero')
op6[4] = new slctr("Sikadur 42 CL",'sikadur42cl')
op6[5] = new slctr("Sikadur 52 Inyección",'sikadur52inyeccion')
op6[6] = new slctr("Sikadur 53",'sikadur53')

var op7=new Array()
op7[0] = new slctr('-----Seleccione un producto-----')
op7[1] = new slctr("Sika Carbodur 512",'sikacarbodur512')
op7[2] = new slctr("Sika Cardobur 1012",'sikacarbodur1012')
op7[3] = new slctr("Sikadur 30",'sikadur30')
op7[4] = new slctr("Sika Wrap 100 G",'sikawrap100g')
op7[5] = new slctr("Sika Wrap Hex 103C",'sikawraphex103c')
op7[6] = new slctr("Sikadur 300 (A+B)",'sikadur300a+b')

var op8=new Array()
op8[0] = new slctr('-----Seleccione un tipo de producto-----')
op8[1] = new slctr("MEMBRANAS LIQUIDAS DE POLIURETANO",'membranasliquidasdepoliuretano')
op8[2] = new slctr("MEMBRANA LIQUIDA DE ACRILICO",'membranaliquidadeacrilico')
op8[3] = new slctr("MEMBRANAS LIQUIDAS DE ASFALTO",'membranasliquidasdeasfalto')

var op9=new Array()
op9[0] = new slctr('-----Seleccione un producto-----')
op9[1] = new slctr("SikaCeram Porcellanato",'sikaceramporcellanato')
op9[2] = new slctr("SikaCeram Flexible",'sikaceramflexible')
op9[3] = new slctr("SikaCeram Imperdible",'sikaceramimperdible')

var op10=new Array()
op10[0] = new slctr('-----Seleccione un producto-----')
op10[1] = new slctr("Sikaguard 700S",'sikaguard700s')
op10[2] = new slctr("Sikaguard 70",'sikaguard70')

var op11=new Array()
op11[0] = new slctr('-----Seleccione un producto-----')
op11[1] = new slctr("Sikaguard Acryl",'sikaguardacryl')
op11[2] = new slctr("Sikafill frentes",'sikafillfrentes')
op11[3] = new slctr("Sika Monotopo 107",'sikamonotopo107')

var op12=new Array()
op12[0] = new slctr('-----Seleccione un producto-----')
op12[1] = new slctr("Sika 1",'sika1')

var op13=new Array()
op13[0] = new slctr('-----Seleccione un producto-----')
op13[1] = new slctr("Sikamur Injectocream",'sikamurinjectocream')
op13[2] = new slctr("Inertol Infiltracion",'inertolinfiltracion')
op13[3] = new slctr("Sikaguard antihumedad",'sikaguardantihumedad')

var op14=new Array()
op14[0] = new slctr('-----Seleccione un producto-----')
op14[1] = new slctr("Membranas asfaltica con aluminio",'mempre')

var op15=new Array()
op15[0] = new slctr('-----Seleccione un tipo de producto-----')
op15[1] = new slctr("PARA CUBIERTAS EXPUESTAS",'paracubiertasexpuestas')
op15[2] = new slctr("PARA CUBIERTAS NO EXPUESTAS",'pcubnoexp')
op15[3] = new slctr("PARA TANQUES DE AGUA POTABLE",'ptanaguapot')
op15[4] = new slctr("MANTO GEOTEXTIL",'mantogeotextil')
op15[5] = new slctr("ACCESORIOS PARA MEMBRANA DE PVC",'accmempvc')

var op16=new Array()
op16[0] = new slctr('-----Seleccione un tipo de producto-----')
op16[1] = new slctr("PISOS EPOXIDICOS",'pisosepoxidicos')
op16[2] = new slctr("PISOS EPOXIDICOS CEMENTICIOS",'pisosepoxcem')
op16[3] = new slctr("PISOS POLIURETANICOS",'pisospoliu')
op16[4] = new slctr("REVESTIMIENTOS POLIURETANICOS",'revpoliu')
op16[5] = new slctr("PISOS CEMENTICIOS",'pisoscemen')
op16[6] = new slctr("TRATAMIENTO PARA PISOS",'tratppisos')
op16[7] = new slctr("TRATAMIENTO PARA JUNTAS ANTIACIDAS",'tratjuntespec')

var op17=new Array()
op17[0] = new slctr('-----Seleccione un tipo de producto-----')
op17[1] = new slctr("PROTECCION DE SUPERFICIES METALICAS",'prosupmet')

var op18=new Array()
op18[0] = new slctr('-----Seleccione un tipo de producto-----')
op18[1] = new slctr("SELLADORES PARA LA INDUSTRIA Y LA CONSTRUCCION",'sellindustyconstr')
op18[2] = new slctr("SELLADORES DE SILICONAS",'sellsili')

var op19=new Array()
op19[0] = new slctr('-----Seleccione un tipo de producto-----')
op19[1] = new slctr("Sikabond T53",'sikabont53')
op19[2] = new slctr("Sikabond T35",'sikabondt35')
op19[3] = new slctr("Sika Primer MB",'sikaprimermb')
op19[4] = new slctr("Sika Layer - 03 (3mm)",'sikalayer03')
op19[5] = new slctr("SISTEMA DE SELLADO",'sistemadesellado')
op19[6] = new slctr("PERFILES DE PVC WATERSTOP",'perfilesdepvc')
op19[7] = new slctr("FONDO DE JUNTAS",'fondodejuntas')
op19[8] = new slctr("PRIMERS Y ACTIVADORES",'primersact')

var op20=new Array()
op20[0] = new slctr('-----Seleccione un producto-----')
op20[1] = new slctr("Inertol Infiltracion Embudo",'inerinfilembu')
op20[2] = new slctr("Sika Thinner",'sikathinner')
op20[3] = new slctr("Medidor de Humedad Tramex",'medhumtra')
op20[4] = new slctr("Rodillo de puas",'rodillopuas')
op20[5] = new slctr("Pistola manual",'pistolamanual')
op20[6] = new slctr("Pistola manual importada",'pistolamanualimp')
op20[7] = new slctr("Pistola manual H2",'pistmanh2')
op20[8] = new slctr("Pistola Neumatica",'pistneu')
op20[9] = new slctr("Pistola Neumatica Unipack",'pistneumuni')
op20[10] = new slctr("Pistola Manual para SikaFast 250ml",'pistmansikafast')


//*******PRIMER MENU TERMINA*******************
//*******TERCER MENU EMPIEZA*******************
var plastificantes=new Array()
plastificantes[0] = new slctr('-----Seleccione un producto-----')
plastificantes[1] = new slctr("Sikacrete Plus",'http://www.google.com.ar')
plastificantes[2] = new slctr("Plastiment Highway",null)
plastificantes[3] = new slctr("Plastiment BV",null)

var jardin = new Array()
jardin[0] = new slctr('-----Jardín-----')
jardin[1] = new slctr("podadora",null)
jardin[2] = new slctr("segadora" ,null)

var fontaneria = new Array()
fontaneria[0] = new slctr('- -Fontanería- -')
fontaneria[1] = new slctr("llave inglesa",null)
fontaneria[2] = new slctr("llave fija",null)

var salon = new Array()
salon[0] = new slctr('- -Salón- -')
salon[1] = new slctr("Mesa",null)
salon[2] = new slctr("silla" ,null)

var dormitorio = new Array()
dormitorio[0] = new slctr('- -Dormitorio- -')
dormitorio[1] = new slctr("cama",null)
dormitorio[2] = new slctr("mesita" ,null)

//*******TERCER MENU TERMINA*******************

function slctryole(cual,donde){
if(cual.selectedIndex != 0){
donde.length=0
cual = eval(cual.value)
for(m=0;m<cual.length;m++){
var nuevaOpcion = new Option(cual[m].texto);
donde.options[m] = nuevaOpcion;
if(cual[m].valor != null){
donde.options[m].value = cual[m].valor
}
else{
donde.options[m].value = cual[m].texto
}
}
}
}
Lo que yo intento, es que cuando se seleccionen las opciones del tercer menu, vayan cargando un iframe segun corresponda la opcion seleccionada. Como pueden ver, la primera opcion que tiene un link.. Con la función que me han facilitado no es posible. Solo carga la página que yo ponga entre parentesis en el onclick, y yo necesito que cargue una segun la opcion..