MauricioC13 de Febrero del 2004
PreguntaHola, 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>
