Ver Mensaje Individual
  #1 (permalink)  
Antiguo 09/06/2007, 04:18
manguiti
 
Fecha de Ingreso: junio-2007
Ubicación: Cádiz
Mensajes: 369
Antigüedad: 17 años, 8 meses
Puntos: 7
cambiar el titulo en pantalla principal

Hola, vereis tengo que inscrustar un codigo javascript en el que,cuando se cargue en el frame principal una pagina cuyo titulo es "informatica",cambie el titulo de la ventana que contiene los frames,index para que me entendais...lo he intentado asi pero no lo consigo....a ver si podeis echarme una mano...


<HTML>

<HEAD>
<TITLE> index </TITLE>

<script LANGUAGE="JavaScript" type="text/javascript">

function titulo(frame){

if (frames[principal].document.title == 'informatica')
{
document.title = 'I.E.S LA PILA'+'(frames[principal].document.title)';
}
else
{
document.title = 'I.E.S LA PILA';
}

}

</script>

</HEAD>

<FRAMESET ROWS="82,25,*" onload="titulo()">
<FRAME NAME="titulo" SRC="html/titulo.html" noresize scrolling="no" FRAMEBORDER="0">
<FRAME NAME="menu" SRC="html/menu.html" noresize scrolling="no" FRAMEBORDER="0">
<FRAMESET COLS="130,*,130">
<FRAME NAME="menu_secundario" SRC="html/menu_defecto.html" noresize scrolling="no" FRAMEBORDER="0">
<FRAME NAME="principal" SRC="html/principal.html" noresize scrolling="auto" FRAMEBORDER="0">
<FRAME NAME="zonas" SRC="html/zonas_y_enlaces.html" noresize scrolling="no" FRAMEBORDER="0">
<NOFRAME>
<p>Su navegador no permite paginas de marcos</p>
</NOFRAME>
</FRAMESET>

</FRAMESET>


</HTML>