Линка да е в цвят

XTYLING

Registered
някой може ли да ми даде CSS код или незнам точно как да го кажа но искам като напиша

Код:
<font color=red><a href="index.php">texta</a></font>
като го напиша това да излиза червен текст


ПП:
искам само да кажа някой да не ми даде пример за :

Код:
<a href="index.php"><font color=red>texta</font></a>

защотоо това не ми върши работа трябва ми това
Код:
<font color=red><a href="index.php">texta</a></font>
 
емаги мерси много но ми трябва както е така

<font color=red><a href="index.php">texta</a></font>


да пише цвета защото съм направил който е 1ви ранк да го пише с червено но тъй като едната таблица ми е с числа а тези числа са раси и заради тях немога да го направя .... ако имаш някаква идея как може да стане или имаш скайп даи ми пълномощно на : d4w97d9mc2y37hcghbbxqydfq
 
Код:
<?
include("config.php");
$query = "SELECT TOP 3 Name,Class,cLevel,Resets,MapNumber,AccountID,Money,PkCount,VIP from Character  order by Resets desc, cLevel desc, vip desc";

$result = mssql_query($query);

echo '<center>
                                        

<table height=10 border="0" cellpadding="0" cellspacing="0" width="540" bordercolor=#666666 >                
<tr> 
<td valign=top align=center width=10><strong><font color=#000000>Rank</strong></td>
<td valign=top align=center width=10><strong><font color=#000000>Name</strong></td>
<td valign=top align=center width=20><strong><font color=#000000>Class</strong></td>
<td valign=top align=center width=30><strong><font color=#000000>Level</strong></td>
<td valign=top align=center width=20><strong><font color=#000000>Resets</strong></td>
<td valign=top align=center width=20><strong><font color=#000000>Money</strong></td>
<td valign=top align=center width=20><strong><font color=#000000>PK</strong></td>
<td valign=top align=center width=20><strong><font color=#000000>VIP</strong></td>
</tr>';
for($i=0;$i < mssql_num_rows($result);++$i)
{
$row = mssql_fetch_row($result);

$query2="Select ConnectStat from MEMB_STAT where memb___id='$row[5]'";
$result2 = mssql_query($query2);
$row2 = mssql_fetch_row($result2);

$rank = $i+1;
if($row[1] == 0){ $row[1] ='<a href="?op=rankings&requested=resets&classes=dw&page=1"><font color=$color1>DW</font>';
}
if($row[1] == 1){ $row[1] ='<a href="?op=rankings&requested=resets&classes=sm&page=1"><font color=$color1>SM</font>';
}
if($row[1] == 16){ $row[1] ='<a href="?op=rankings&requested=resets&classes=dk&page=1"><font color=$color1>DK</font>';
}
if($row[1] == 17){ $row[1] ='<a href="?op=rankings&requested=resets&classes=bk&page=1"><font color=$color1>BK</font>';
}
if($row[1] == 32){ $row[1] ='<a href="?op=rankings&requested=resets&classes=elf&page=1"><font color=$color1>ELF</font>';
}
if($row[1] == 33){ $row[1] ='<a href="?op=rankings&requested=resets&classes=me&page=1"><font color=$color1>ME</font>';
}
if($row[1] == 48){ $row[1] ='<a href="?op=rankings&requested=resets&classes=mg&page=1"><font color=$color1>MG</font>';
}
if($row[1] == 64){ $row[1] ='<a href="?op=rankings&requested=resets&classes=dl&page=1"><font color=$color1>DL</font>';
}

if($rank == 1) { $color = 'red'; } else { $color='white'; } 

echo "<tr><td valign=top align=center width=10><font color=$color>$rank</td>
<td valign=top align=center width=20><a href='whoiz.php?name=$row[0]'><font color=$color>$row[0]</td>

</td>
<td valign=top align=center width=30><font color=$color>$row[1]</td>
<td valign=top align=center width=30><font color=$color>$row[2]</td> 
<td valign=top align=center width=30><font color=$color>$row[3]</td>
<td valign=top align=center width=30><font color=$color>$row[6]</td>
<td valign=top align=center width=30><font color=$color>$row[7]</td>
<td valign=top align=center width=30><font color=$color>$row[8]</td>
</tr>
</center>";
}

?>

това е кода искам расите BK ELF MG ME SM DW да са в червено само ако са на 1во място

ето демо как е в момента: http://89.215.37.123/modules/whoiz.php?name=KuzmaN
 
<?
include("config.php");
$query = "SELECT TOP 3 Name,Class,cLevel,Resets,MapNumber,AccountID,Money,PkCount,VIP from Character order by Resets desc, cLevel desc, vip desc";

$result = mssql_query($query);

echo '<center>


<table height=10 border="0" cellpadding="0" cellspacing="0" width="540" bordercolor=#666666 >
<tr>
<td valign=top align=center width=10><strong><font color=#000000>Rank</strong></td>
<td valign=top align=center width=10><strong><font color=#000000>Name</strong></td>
<td valign=top align=center width=20><strong><font color=#000000>Class</strong></td>
<td valign=top align=center width=30><strong><font color=#000000>Level</strong></td>
<td valign=top align=center width=20><strong><font color=#000000>Resets</strong></td>
<td valign=top align=center width=20><strong><font color=#000000>Money</strong></td>
<td valign=top align=center width=20><strong><font color=#000000>PK</strong></td>
<td valign=top align=center width=20><strong><font color=#000000>VIP</strong></td>
</tr>';
for($i=0;$i < mssql_num_rows($result);++$i)
{
$row = mssql_fetch_row($result);

$query2="Select ConnectStat from MEMB_STAT where memb___id='$row[5]'";
$result2 = mssql_query($query2);
$row2 = mssql_fetch_row($result2);

$rank = $i+1;
if($row[1] == 0){ $row[1] ='<a href="?op=rankings&requested=resets&classes=dw&page=1" style="color:$color">DW</a>';
}
if($row[1] == 1){ $row[1] ='<a href="?op=rankings&requested=resets&classes=sm&page=1" style="color:$color">SM</a>';
}
if($row[1] == 16){ $row[1] ='<a href="?op=rankings&requested=resets&classes=dk&page=1" style="color:$color">DK</a>';
}
if($row[1] == 17){ $row[1] ='<a href="?op=rankings&requested=resets&classes=bk&page=1" style="color:$color">BK</a>';
}
if($row[1] == 32){ $row[1] ='<a href="?op=rankings&requested=resets&classes=elf&page=1" style="color:$color">ELF</a>';
}
if($row[1] == 33){ $row[1] ='<a href="?op=rankings&requested=resets&classes=me&page=1" style="color:$color">ME</a>';
}
if($row[1] == 48){ $row[1] ='<a href="?op=rankings&requested=resets&classes=mg&page=1" style="color:$color">MG</a>';
}
if($row[1] == 64){ $row[1] ='<a href="?op=rankings&requested=resets&classes=dl&page=1" style="color:$color">DL</a>';
}

if($rank == 1) { $color = 'red'; } else { $color='white'; }

echo "<tr><td valign=top align=center width=10 style='color:$color'>$rank</td>
<td valign=top align=center width=20><a href='whoiz.php?name=$row[0]' style='color:$color'>$row[0]</a></td>

</td>
<td valign=top align=center width=30 style='color:$color'>$row[1]</td>
<td valign=top align=center width=30 style='color:$color'>$row[2]</td>
<td valign=top align=center width=30 style='color:$color'>$row[3]</td>
<td valign=top align=center width=30 style='color:$color'>$row[6]</td>
<td valign=top align=center width=30 style='color:$color'>$row[7]</td>
<td valign=top align=center width=30 style='color:$color'>$row[8]</td>
</tr>
</center>";
}

?>
 
http://89.215.37.123/modules/whoiz.php?name=MakeFresh


нестава :(

има ли начин някак си през CSS да се направи да стой колора който е преди линка ?
 

Back
Горе