$intro=$_COOKIE['intro']; if(!isset($intro)){setcookie('intro', 0, 0, '/', '',0);} $format=$_COOKIE['format']; if(!isset($format)){setcookie('format', 0, 0, '/', '',0);} $list=$_COOKIE['list']; if(!isset($list)){setcookie('list', 0, 0, '/', '',0);} $tables=$_COOKIE['tables']; if(!isset($tables)){setcookie('tables', 0, 0, '/', '',0);} $images=$_COOKIE['images']; if(!isset($images)){setcookie('images', 0, 0, '/', '',0);} $links=$_COOKIE['links']; if(!isset($links)){setcookie('links', 0, 0, '/', '',0);} $frames=$_COOKIE['frames']; if(!isset($frames)){setcookie('frames', 0, 0, '/', '',0);} $forms=$_COOKIE['forms']; if(!isset($forms)){setcookie('forms', 0, 0, '/', '',0);} $media=$_COOKIE['media']; if(!isset($forms)){setcookie('media', 0, 0, '/', '',0);} $introduccion=$_GET['introduccion']; $formato=$_GET['formato']; $listas=$_GET['listas']; $tablas=$_GET['tablas']; $imagenes=$_GET['imagenes']; $enlaces=$_GET['enlaces']; $marcos=$_GET['marcos']; $formularios=$_GET['formularios']; $multimedia=$_GET['multimedia']; //---------------------------------------------------------- if(isset($introduccion)) { if ($introduccion==0) { setcookie('intro', 1, 0, '/', '',0); $_COOKIE['intro']=1; }else{ setcookie('intro', 0, 0, '/', '',0); $_COOKIE['intro']=0; } } if($_COOKIE['intro']==0) { $introduccion_img="img/+.gif"; }else{ $introduccion_img="img/-.gif"; } //------------------------------------------------------------ if(isset($formato)) { if ($formato==0) { setcookie('format', 1, 0, '/', '',0); $_COOKIE['format']=1; }else{ setcookie('format', 0, 0, '/', '',0); $_COOKIE['format']=0; } } if($_COOKIE['format']==0) { $formato_img="img/+.gif"; }else{ $formato_img="img/-.gif"; } //-------------------------------------------------------- if (isset($listas)) { if ($listas==0) { setcookie('list', 1, 0, '/', '',0); $_COOKIE['list']=1; } else { setcookie('list', 0, 0, '/', '',0); $_COOKIE['list']=0; } } if($_COOKIE['list']==0) { $listas_img="img/+.gif"; }else{ $listas_img="img/-.gif"; } //----------------------------------------------------------- if (isset($tablas)) { if ($tablas==0) { setcookie('tables', 1, 0, '/', '',0); $_COOKIE['tables']=1; } else { setcookie('tables', 0, 0, '/', '',0); $_COOKIE['tables']=0; } } if($_COOKIE['tables']==0) { $tablas_img="img/+.gif"; }else{ $tablas_img="img/-.gif"; } //--------------------------------------------------------------------------------- if (isset($imagenes)) { if ($imagenes==0) { setcookie('images', 1, 0, '/', '',0); $_COOKIE['images']=1; } else { setcookie('images', 0, 0, '/', '',0); $_COOKIE['images']=0; } } if($_COOKIE['images']==0) { $imagenes_img="img/+.gif"; }else{ $imagenes_img="img/-.gif"; } //--------------------------------------------------------------------- if (isset($enlaces)) { if ($enlaces==0) { setcookie('links', 1, 0, '/', '',0); $_COOKIE['links']=1; } else { setcookie('links', 0, 0, '/', '',0); $_COOKIE['links']=0; } } if($_COOKIE['links']==0) { $enlaces_img="img/+.gif"; }else{ $enlaces_img="img/-.gif"; } //---------------------------------------------------------------- if (isset($marcos)) { if ($marcos==0) { setcookie('frames', 1, 0, '/', '',0); $_COOKIE['frames']=1; } else { setcookie('frames', 0, 0, '/', '',0); $_COOKIE['frames']=0; } } if($_COOKIE['frames']==0) { $marcos_img="img/+.gif"; }else{ $marcos_img="img/-.gif"; } //------------------------------------------------------------------- if (isset($formularios)) { if ($formularios==0) { setcookie('forms', 1, 0, '/', '',0); $_COOKIE['forms']=1; } else { setcookie('forms', 0, 0, '/', '',0); $_COOKIE['forms']=0; } } if($_COOKIE['forms']==0) { $formularios_img="img/+.gif"; }else{ $formularios_img="img/-.gif"; } //-------------------------------------------------- if (isset($multimedia)) { if ($multimedia==0) { setcookie('media', 1, 0, '/', '',0); $_COOKIE['media']=1; } else { setcookie('media', 0, 0, '/', '',0); $_COOKIE['media']=0; } } if($_COOKIE['media']==0) { $multimedia_img="img/+.gif"; }else{ $multimedia_img="img/-.gif"; } ?>
$titulo_limpio=str_replace('_',' ',$titulo);
echo $titulo_limpio;?>
| |
Esta ocasión se produce cuando estamos interesados en que al pulsar sobre un enlace
este se abra en el marco (recuadro o panel) que nos interese. Para conseguir esto , deberemos de insertar en la etiqueta <a> el atributo target="nombre_del_frame_donde_queremos_abrir_el_documento", que tendrá como objetivo el frame donde queremos que se abra. Ejemplo: <html> <head> <title>Página Con Marcos</title> </head> <frameset cols="20%, 80%"< <frame src="pagina1.html" name="frame_izd"> </frame> <frame src="pagina2.html" name="frame_dcha"> </frame> <noframes< <body< Lo sentimos su navegador no soporta frames </body< </noframes> </frameset> </html<En el frame de la izquierda se muestrará la pagina_1.html. Pensemos que queremos que el marco derecho se muestre la pagina_3.html al pulsar en un enlace. Este enlace deberá de ser : <a href="pagina_3.html" target="frame_dcha"> pagina 3</a> El atributo targetEl atributo target="nombre del marco de destino, _top / _blank/ _self / _parent"._top: muestra el documento enlazado ocupando toda la ventana del navegador. Sale de los frames. _blank: abre un ventana nueva en el navegador(sin frames), en la cual carga el fichero. _self : carga el documento en le marco desde donde pulsamos el enlace. Es la opción por defecto. _parent: carga el documento en el frame anterior al que contine el enlace "padre". En caso de no haber lo muestra en una ventana completa. <a href="http://www.innovanetworks.com" target="_top"> ir a Innova Networks </a> | |
=1){ ?> < < }?> | > > }?> |