He estado probando el listado de la página web que me indicas y no consigo el mismo efecto que la página web que te indicaba yo en el primer post
Tengo varios problemas.
El resultado de aplicar esta técnica es el siguiente
Código HTML:
Ver original<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>Index of
<!–#echo var="REQUEST_URI" –></title> <!--<link rel="stylesheet" href="http://www.sinfocol.org/style.css" type="text/css" media="screen" />-->
body {
font-family : Trebuchet MS, Verdana, Arial, Helvetica, sans-serif;
font-size : 25pt;
text-indent : 15pt;
letter-spacing : 2pt;
}
.subheader {
font-family : Trebuchet MS, Verdana, Arial, Helvetica, sans-serif;
font-size : 9pt;
text-indent : 10pt;
letter-spacing : 1pt;
}
a {
font-family : Trebuchet MS, Verdana, Arial, Helvetica, sans-serif;
font-size : 10pt;
text-decoration : none;
letter-spacing : 1pt;
}
* {
font-family : Trebuchet MS, Verdana, Arial, Helvetica, sans-serif;
font-size : 10pt;
text-decoration : none;
letter-spacing : 1pt;
}
h1{
font-size:30px;
}
img{
border:0;
}
<h1>Index of
<!–#echo var="REQUEST_URI" –></h1><pre><img src="/iconos/blank.png" alt="Icon " width="24" height="24"> <a href="?C=N;O=D">Name
</a> <a href="?C=M;O=A">Last modified
</a> <a href="?C=S;O=A">Size
</a> <a href="?C=D;O=A">Description
</a>
<a href="/secciones/"><img src="/iconos/back.png" alt="[DIR]" width="24" height="24"></a> <a href="/secciones/">Parent Directory
</a> -
<a href="ejemplo1.php"><img src="/iconos/php.png" alt="[ ]" width="24" height="24"></a> <a href="ejemplo1.php">ejemplo1.php
</a> 29-Nov-2009 13:02 1.4K
<a href="estilo.css"><img src="/iconos/text.png" alt="[TXT]" width="24" height="24"></a> <a href="estilo.css">estilo.css
</a> 29-Nov-2009 12:56 16K
<a href="pwstrength.js"><img src="/iconos/unknown.png" alt="[ ]" width="24" height="24"></a> <a href="pwstrength.js">pwstrength.js
</a> 29-Nov-2009 12:51 1.8K
<a href="pwstrength.php"><img src="/iconos/php.png" alt="[ ]" width="24" height="24"></a> <a href="pwstrength.php">pwstrength.php
</a> 29-Nov-2009 13:04 15K
PROBLEMA 1
Si os fijáis no me muestra el valor de las variables <!–#echo var="REQUEST_URI" –>
PROBLEMA 2
Tampoco pone la información como si de una tabla se tratase Ej bueno.
http://jooh.no/root/web_pages/
Código HTML:
Ver original<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
BODY {
font-family : Trebuchet MS, Verdana, Arial, Helvetica, sans-serif;
font-size : 25pt;
text-indent : 15pt;
letter-spacing : 2pt;
}
.subheader {
font-family : Trebuchet MS, Verdana, Arial, Helvetica, sans-serif;
font-size : 9pt;
text-indent : 10pt;
letter-spacing : 1pt;
}
A {
font-family : Trebuchet MS, Verdana, Arial, Helvetica, sans-serif;
font-size : 10pt;
text-decoration : none;
letter-spacing : 1pt;
}
* {
font-family : Trebuchet MS, Verdana, Arial, Helvetica, sans-serif;
font-size : 10pt;
text-decoration : none;
letter-spacing : 1pt;
}
Index of /root/web_pages/
<div class="subheader">(Movie files; please save target as)
<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="2"> <TD width="400"><CENTER>Name
</TD> <TD><CENTER>MIME Type
</TD>
<TD><IMG SRC="/listicons/up24.png"></TD> <TD NOWRAP STYLE="padding-right: 2em; padding-left: 5px"> <A HREF="../"> ... Parent Directory
</A></TD> <TD NOWRAP ALIGN="right" STYLE="padding-right: 1em">-
</TD>
<TD><IMG SRC="/listicons/dir224.png"></TD> <TD NOWRAP STYLE="padding-right: 2em; padding-left: 5px"> <A HREF="ForumBackup/">ForumBackup/
</A></TD> <TD NOWRAP ALIGN="right" STYLE="padding-right: 1em">-
</TD>
<TD><IMG SRC="/listicons/dir224.png"></TD> <TD NOWRAP STYLE="padding-right: 2em; padding-left: 5px"> <A HREF="Rainbows_Wishes_and_Whimsy_files/">Rainbows_Wishes_and_Whimsy_files/
</A></TD> <TD NOWRAP ALIGN="right" STYLE="padding-right: 1em">-
</TD> <TD><IMG SRC="/listicons/dir224.png"></TD>
<TD NOWRAP STYLE="padding-right: 2em; padding-left: 5px"> <A HREF="sn.no/">sn.no/
</A></TD> <TD NOWRAP ALIGN="right" STYLE="padding-right: 1em">-
</TD> <TD><IMG SRC="/listicons/dir224.png"></TD> <TD NOWRAP STYLE="padding-right: 2em; padding-left: 5px"> <A HREF="TV%202_no%20-%20Rikets%20Tilstand_files/">TV 2_no - Rikets Tilstand_files/
</A></TD>
<TD NOWRAP ALIGN="right" STYLE="padding-right: 1em">-
</TD> <TD><IMG SRC="/listicons/dir224.png"></TD> <TD NOWRAP STYLE="padding-right: 2em; padding-left: 5px"> <A HREF="voodoo_doodoo/">voodoo_doodoo/
</A></TD> <TD NOWRAP ALIGN="right" STYLE="padding-right: 1em">-
</TD>
<TD><IMG SRC="/listicons/htm24.png"></TD> <TD NOWRAP STYLE="padding-right: 2em; padding-left: 5px"> <A HREF="caishop_mailinglist.html">caishop_mailinglist.html
</A></TD> <TD NOWRAP ALIGN="right" STYLE="padding-right: 1em">79.69
KB
</TD> <TD NOWRAP>text/html
</TD>
<TD><IMG SRC="/listicons/ukn24.png"></TD> <TD NOWRAP STYLE="padding-right: 2em; padding-left: 5px"> <A HREF="Paul_Boutin_Hunt_the_Boeing_Answers.mht">Paul_Boutin_Hunt_the_Boeing_Answers.mht
</A></TD> <TD NOWRAP ALIGN="right" STYLE="padding-right: 1em">33.45
KB
</TD> <TD NOWRAP>application/octet-stream
</TD>
<TD><IMG SRC="/listicons/htm24.png"></TD> <TD NOWRAP STYLE="padding-right: 2em; padding-left: 5px"> <A HREF="Rainbows_Wishes_and_Whimsy.htm">Rainbows_Wishes_and_Whimsy.htm
</A></TD> <TD NOWRAP ALIGN="right" STYLE="padding-right: 1em">68.31
KB
</TD> <TD NOWRAP>text/html
</TD>
<TD><IMG SRC="/listicons/htm24.png"></TD> <TD NOWRAP STYLE="padding-right: 2em; padding-left: 5px"> <A HREF="sn.no.html">sn.no.html
</A></TD> <TD NOWRAP ALIGN="right" STYLE="padding-right: 1em">8.45
KB
</TD> <TD NOWRAP>text/html
</TD> <TD><IMG SRC="/listicons/htm24.png"></TD>
<TD NOWRAP STYLE="padding-right: 2em; padding-left: 5px"> <A HREF="TV%202_no%20-%20Rikets%20Tilstand.htm">TV 2_no - Rikets Tilstand.htm
</A></TD> <TD NOWRAP ALIGN="right" STYLE="padding-right: 1em">20.66
KB
</TD> <TD NOWRAP>text/html
</TD> <TD><IMG SRC="/listicons/htm24.png"></TD> <TD NOWRAP STYLE="padding-right: 2em; padding-left: 5px"> <A HREF="voodoo_doodoo.html">voodoo_doodoo.html
</A></TD>
<TD NOWRAP ALIGN="right" STYLE="padding-right: 1em">17.08
KB
</TD> <TD NOWRAP>text/html
</TD>
He visto otros ejemplos que utilizan listados personalizados y todos utilizan tablas, no entiendo porque el mio muestra una estructura diferente
http://howto.unixdev.net/dirlist.html
Muchas gracias de antemano!