Foros del Web » Programando para Internet » ASP Clásico »

Ayuda con este codigo...

Estas en el tema de Ayuda con este codigo... en el foro de ASP Clásico en Foros del Web. Buenas, soy nuevo en asp, y estoy intentando entender el siguiente codigo. se trata de un menu muy interesante... strL1 = Request.Querystring("L1") strL2 = Request.Querystring("L2") ...
  #1 (permalink)  
Antiguo 24/03/2003, 04:58
 
Fecha de Ingreso: enero-2002
Mensajes: 1.872
Antigüedad: 23 años, 4 meses
Puntos: 3
Ayuda con este codigo...

Buenas, soy nuevo en asp, y estoy intentando entender el siguiente codigo. se trata de un menu muy interesante...

strL1 = Request.Querystring("L1")
strL2 = Request.Querystring("L2")
'strL1 = "*"
'strL2 = "*"

strHTMLOutPut = ""
strBase1 = "<tr><td width='100%' align='left' nowrap>"
strBase2 = "</td>" & vbCrLf
strJS1 = " onMouseOver='show("
strJS2 = "GR"
strJS3 = ");' onMouseOut='normalize();'"
strLinkBase1 = "<a href='menu.asp?L1="
strLinkBase2 = "&L2="
strLinkBase3 = "' target='_self'"
strLinkBase4 = "</a>"
strLinkOut1 = "<a href='"
strLinkOut2 = "'"
strLinkOut3 = "</a>"
strSeparator = strBase1 & "<img border='0' src='_imgs/icons/menuSEP.gif' width='150' height='3'>" & strBase2

strJS2 = "GRon"
strItemGrupo1 = strBase1 & strLinkBase1 & "G" & strLinkBase3 & strJS1 & strJS2 & strJS3 & "><font class='Level1'><img border='0' src='_imgs/icons/point.gif'>Filosofia</font>" & strLinkBase4 & strBase2
strJS2 = "GRhion"
strItemGrupo2 = strBase1 & strLinkOut1 & "mainGRHis.asp" & strLinkOut2 & strJS1 & strJS2 & strJS3 & "><font class='Level2'><img border='0' src='_imgs/dummy.gif' width='10' height='1'>Historia</font>" & strLinkOut3 & strBase2
strJS2 = "GRtron"
strItemGrupo3 = strBase1 & strLinkOut1 & "mainGRTray.asp" & strLinkOut2 & strJS1 & strJS2 & strJS3 & "><font class='Level2'><img border='0' src='_imgs/dummy.gif' width='10' height='1'>Trayectoria</font>" & strLinkOut3 & strBase2
strJS2 = "GRpron"
strItemGrupo4 = strBase1 & strLinkOut1 & "mainGRProyec.asp" & strLinkOut2 & strJS1 & strJS2 & strJS3 & "><font class='Level2'><img border='0' src='_imgs/dummy.gif' width='10' height='1'>Proyección</font>" & strLinkOut3 & strBase2

alguien podria explicarme el funcionamiento de este menu? voy algo perdido, y me interesaria entender como funciona..

Gracias!
  #2 (permalink)  
Antiguo 24/03/2003, 06:30
 
Fecha de Ingreso: enero-2002
Mensajes: 1.872
Antigüedad: 23 años, 4 meses
Puntos: 3
ya he conseguido descifrar gran parte del codigo. el problema estaba en que esta separado en variables. ahora mi problema es el siguiente. tengo dos frames, y el menu esta en el leftframe, y quiero q los links se muestren en el frameright. tengo lo siguiente:

strHTMLOutPut = ""
strBase1 = "<tr><td width='100%' align='left' nowrap>"
strBase2 = "</td>" & vbCrLf
strJS1 = " onMouseOver='show("
strJS2 = "GR"
strJS3 = ");' onMouseOut='normalize();'"
strLinkBase1 = "<a href='menu.asp?L1="
strLinkBase2 = "&L2="
strLinkBase3 = "' target='_self'"
strLinkBase4 = "</a>"
strLinkOut1 = "<a href='"
strLinkOut2 = "'"
strLinkOut3 = "</a>"

y el link va aqui:

strItemGrupo2 = strBase1 & strLinkOut1 & "mainGRHis.asp" & strLinkOut2 & strJS1 & strJS2 & strJS3 & "><font class='Level2'><img border='0' src='_imgs/dummy.gif' width='10' height='1'>Historia</font>" & strLinkOut3 & strBase2

como hago para que me vaya al target=frameright???

gracias!
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 11:05.