Foros del Web » Programando para Internet » Javascript »

Ayuda

Estas en el tema de Ayuda en el foro de Javascript en Foros del Web. Hola foreros, Necesito de su ayuda, tengo este codigo en javascript Código PHP: < html > < head > < meta http - equiv = "Content-Type"  ...
  #1 (permalink)  
Antiguo 20/03/2007, 09:11
Avatar de phabloart  
Fecha de Ingreso: octubre-2005
Ubicación: Argentina
Mensajes: 57
Antigüedad: 18 años, 6 meses
Puntos: 0
Ayuda

Hola foreros,

Necesito de su ayuda, tengo este codigo en javascript

Código PHP:
<html>

<
head>
<
meta http-equiv="Content-Type" content="text/html">
<
title>La pedrera</title>

<
style type="text/css">
<!--
html {
    
overflow:-moz-scrollbars-vertical;
    
min-height100&#37;;
    
max-bottom100%;
}
-->
</
style>

</
head>
<
body OnLoad="javascript:Menu_DoFSCommand('nosotros','')" topmargin="0" leftmargin="0" rightmargin="0" bottommargin="0" marginwidth="0" marginheight="0" 

background="fondo.gif">

<
script type="text/JavaScript">

function 
Menu_DoFSCommand(command,args) {

  if(
command=="nosotros"){
    
Esqueleto.height=700
  
}

  if (
command=='prestadores'){
    
Esqueleto.height=700
  
}

  if (
command=='principal'){
    
Esqueleto.height=1550
  
}

  if (
command=='servicios'){
    
Esqueleto.height=700
  
}

  if (
command=='libro_visitas_firmar'){
    
Esqueleto.height=700
  
}

  if (
command=='index'){
    
Esqueleto.height=1500
  
}

  if (
command=='convenios'){
    
Esqueleto.height=830
  
}

  if (
command=='centros'){
    
Esqueleto.height=700
  
}

  if (
command=='capacitacion'){
    
Esqueleto.height=700
  
}

  if (
command=='capacitacion 1'){
    
Esqueleto.height=700
  
}

  if (
command=='capacitacion 1'){
    
Esqueleto.height=700
  
}

}

</script>

<script language=vbscript>
sub Menu_FSCommand(command,args)
  call Menu_DoFSCommand(command,args)
end sub
</script>

<!-- <body topmargin="0" leftmargin="0" rightmargin="0" bottommargin="0" marginwidth="0" marginheight="0"> -->

<table border="0" width="100%" id="table1" cellspacing="0" cellpadding="0">
    <tr>
        <td valign="top" bgcolor="#CBDD3F" style="background-image: url('page_compartido/lateral_izquierdo.gif'); background-repeat: no-repeat; 

background-position: right top">
        &nbsp;</td>
        <td width="710" valign="top" bgcolor="#CBDD3F">
        <table Id="Esqueleto" border="0" width="100%" cellspacing="0" cellpadding="0" id="table2">
            <tr>
                <td height="362">
                <object classid="clsid:D27CDB6E-AE6D-11CF-96B8-444553540000" id="obj1" 

codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" border="0" width="710" height="362">
                    <param name="movie" value="barra.swf">
                    <param name="quality" value="High">
                    <embed src="barra.swf" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" 

name="obj1" width="710" height="362" quality="High"></object>
                </td>
            </tr>
            <tr>
                <td valign="top">
                [COLOR="Red"]<iframe name="Marco" id="Marco" frameborder="0" width="100%" height="288px" src="nosotros.htm" scrolling="no" ></iframe>[/COLOR]
                </td>
            </tr>
        </table>
        </td>
        <td style="background-image: url('page_compartido/lateral_derecho.gif'); background-repeat: no-repeat; background-position: left top">&nbsp;</td>
    </tr>
</table>

</body>

</html> 


Lo que tendria que hacer es que, dependiendo del link donde alguien entre se modificique la altura del FRAME.
Alguien me da una mano de si el codigo esta bien, por favor.

<body OnLoad="javascript:Menu_DoFSCommand('nosotros','')" topmargin="0" leftmargin="0" rightmargin="0" bottommargin="0" marginwidth="0" marginheight="0" background="fondo.gif">


Lo que coloree en verde que significa.

Muchas Gracias.
__________________
Por favor, sean amables todavia estoy aprendiendo

Última edición por phabloart; 07/04/2010 a las 23:44
  #2 (permalink)  
Antiguo 20/03/2007, 09:19
 
Fecha de Ingreso: abril-2006
Ubicación: Colombia
Mensajes: 648
Antigüedad: 18 años
Puntos: 3
Re: Ayuda

Hola

Bueno, pues lo que tienes en verde es lo que le llega de parametro a la funcion

Menu_DoFSCommand(command,args)
donde command es lo que le envias, y dependiendo del valor que le envies el va a asignarle un height a esqueleto,

Espero te sirva, suerte.
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 05:14.