poner color al link
Hola, queria consultarles como puedo cambiar el color a una serie de links, les mando el programita en php.
No me sale de color los link "principal" y "secundario"
Desde ya gracias
<font face="Arial, Helvetica, sans-serif" size="3" color="#FFFFFF" link="#FFFFFF" vlink="#FFFFFF" alink="#FFFFFF"> <b>
<?php
$links_arr = array(
"Principal" => "http://www.eldominio.com.ar/index.html",
"Secundario" => "http://www.eldominio.com.ar/index.html?secc=int.php3"
);
$separator = " | "; /* Put a vertical bar between links */
/* Main code begins here */
/* Step through the array.... */
for (reset($links_arr); $name = key($links_arr); next($links_arr)) {
$hyper = 1; /* Hyperlink on by default */
if ($REQUEST_URI == $links_arr[$name]) {
$hyper = 0; /* Don't hyperlink a page to itself */
}
/* Conditionally do the <A HREF...> part for hyperlinks */
if ($hyper) {
print "<A HREF="" . $links_arr[$name] . "">";
}
print $name ; /* Print the name of the link */
if ($hyper) { print "</A>"; } /* Close the hyperlink */
if (next($links_arr)) { print $separator; prev($links_arr); }
}
?>
</b></font>
No me sale de color los link "principal" y "secundario"
Desde ya gracias
<font face="Arial, Helvetica, sans-serif" size="3" color="#FFFFFF" link="#FFFFFF" vlink="#FFFFFF" alink="#FFFFFF"> <b>
<?php
$links_arr = array(
"Principal" => "http://www.eldominio.com.ar/index.html",
"Secundario" => "http://www.eldominio.com.ar/index.html?secc=int.php3"
);
$separator = " | "; /* Put a vertical bar between links */
/* Main code begins here */
/* Step through the array.... */
for (reset($links_arr); $name = key($links_arr); next($links_arr)) {
$hyper = 1; /* Hyperlink on by default */
if ($REQUEST_URI == $links_arr[$name]) {
$hyper = 0; /* Don't hyperlink a page to itself */
}
/* Conditionally do the <A HREF...> part for hyperlinks */
if ($hyper) {
print "<A HREF="" . $links_arr[$name] . "">";
}
print $name ; /* Print the name of the link */
if ($hyper) { print "</A>"; } /* Close the hyperlink */
if (next($links_arr)) { print $separator; prev($links_arr); }
}
?>
</b></font>
Lamentablemente tampoco pude cambiar el link con el TAG <body link="#FFFFFF" vlink="#FFFFFF" alink="#FFFFFF">
Alguna otra idea?
Alguna otra idea?
Prueba a poner este TAG BODY:
<body link="#FFFFFF" vlink="#FFFFFF" alink="#FFFFFF">
<body link="#FFFFFF" vlink="#FFFFFF" alink="#FFFFFF">
Bueno , vereis ... uno muchas veces peca de concienzudo! (yo lo llamo ser cabezota), lo que hace que nos olvidemos de lo basico! En fin no me lio .... pero que os habeis olvidado de las fabulosas Hojas de Estilo (CSS)?????? Dame hojas de estilo y no hay javascript que se me acerque.
<style type="text/css" rel="stylesheet">M
<!--M
/* General layout */M
A:link { font-weight: normal; text-decoration: none; color: #333399; }M
A:visited { text-decoration: none; color: #333399; font-weight: normal; }M
A:hover { text-decoration: none; color: #990033; }M
-->M
</style>M
Esto ha sido un ejemplillo , ya podeis echarle imaginacion y no parar.
saludos
<style type="text/css" rel="stylesheet">M
<!--M
/* General layout */M
A:link { font-weight: normal; text-decoration: none; color: #333399; }M
A:visited { text-decoration: none; color: #333399; font-weight: normal; }M
A:hover { text-decoration: none; color: #990033; }M
-->M
</style>M
Esto ha sido un ejemplillo , ya podeis echarle imaginacion y no parar.
saludos
