I think this is a quick fix so if anyone could do this for free it would be greatly appreciated.

If you can make it so that on my site (WebEvader.org - Proxy Listing Site) the top 5 listing are red and that they rotate randomly every time the site refreshes (like 5-25 green)

Here is the code involved:

Code:
<?php

$detect=$_SERVER['PHP_SELF'];
$detect2=$_SERVER['SERVER_NAME'].$_SERVER['PHP_SELF'];

$detect3=explode("/",$detect2);
$count=count($detect3);

$ddd="";
for ($i=0;$i<$count-1;$i++){
	if ($i==0){
	$ddd=$detect3[$i];
}else{$ddd=$ddd."/".$detect3[$i];}
}
$detect3=$ddd."/";

$f = fopen("proxylist.js","w");
flock($f,2);



    $link = mysql_connect("$db_host", "$db_user", "$db_pass") or die("Could not connect");
    mysql_select_db($db_name) or die("Could not select database");

    $query = "SELECT * FROM submission ORDER BY `hits` DESC;";
    $result = mysql_query($query) or die("Query failed");
$count=-1;
    while ($line = mysql_fetch_row($result)){
     	$count++;
	$file[$count]="$line[0]::$line[3]"; 
    }

$currently_count=$count+1;
   
$count_t=$count+1;

fputs($f,"// Copyright (c) 2005-2007 http://$detect3. All Rights Reserved.



document.write('<form method=GET name=form action=\"http://$detect3/count_hits.php\" target=_blank>');
document.write('<table border=0 cellspacing=0 cellpadding=0 align=center style=\"border-color:#000000; border-style:solid; border-width:1px; padding:3px;\"><tr><td align=center nowrap>');
document.write('');
document.write('');
document.write('');
document.write('<small><b>Choose one of $count_t working proxies:</b></small><br>');
document.write('<select name=url size=11 style=\"width: 200px;\" onclick=\"document.form.submit();\">');
");

echo <<<D
<div style="overflow: hidden"><a href="" target=_blank onClick="return false;">$currently_count Currently Active Proxies</a></div>
D;

for($i=0;$i<=$count;$i++){
	$parse=explode("::",$file[$i]);
	if ($parse[1]==4){ $parse[0]=trim($parse[0]);
		$top_1 = '<div id=red class=h><a href="count_hits.php?url='.$parse[0].'" target=_blank>'.$parse[0]."</a></div>"; fputs($f,"document.write('<option style=\"background-color:#F09696;\" value=\"$parse[0]\">".str_replace("http://","",str_replace("www.","",$parse[0]))."');
");
	}

	if ($parse[1]==3){ $parse[0]=trim($parse[0]);
		$top_2 = '<div id=red class=h><a href="count_hits.php?url='.$parse[0].'" target=_blank>'.$parse[0]."</a></div>"; fputs($f,"document.write('<option style=\"background-color:#F09696;\" value=\"$parse[0]\">".str_replace("http://","",str_replace("www.","",$parse[0]))."');
");
	}

	if ($parse[1]==2){ $parse[0]=trim($parse[0]);
		$top_3 = '<div id=red class=h><a href="count_hits.php?url='.$parse[0].'" target=_blank>'.$parse[0]."</a></div>"; fputs($f,"document.write('<option style=\"background-color:#F09696;\" value=\"$parse[0]\">".str_replace("http://","",str_replace("www.","",$parse[0]))."');
");
	}
}

if (isset($top_1)){print $top_1;}
if (isset($top_2)){print $top_2;}
if (isset($top_3)){print $top_3;}

$count_top=-1;
for($i=0;$i<=$count;$i++){
	$parse=explode("::",$file[$i]);
	if ($parse[1]==1){
		$count_top++;
		$filex[$count_top]=$parse[0];
	}
}


for($i=0;$i<=$count_top;$i++){
	$a[$i]=rand(0,30000)."::".$filex[$i];
}
for ($i=0; $i<=($count_top); $i++){
	
	for ($j=($i+1); $j<=$count_top; $j++){ 
	
	if ($a[$j]<$a[$i]){
		$b=$a[$j];
		$a[$j]=$a[$i];
		$a[$i]=$b;

			
		}
	}
	
}

for ($i=0;$i<=$count_top;$i++){
	$parse=explode("::",$a[$i]);  $parse[1]=trim($parse[1]);
	print '<div id=green class=h><a href="count_hits.php?url='.$parse[1].'" target=_blank>'.$parse[1]."</a></div>"; fputs($f,"document.write('<option style=\"background-color:#56CD5C;\" value=\"$parse[1]\">".str_replace("http://","",str_replace("www.","",$parse[1]))."');
");
	
}

// ############

$count_top=-1;
for($i=0;$i<=$count;$i++){
	$parse=explode("::",$file[$i]);
	if ($parse[1]==0 or $parse[1]==8){
		$count_top++;
		$file[$count_top]=$parse[0]."::".$parse[1]; //if ($parse[1]==8){$file[$count_top]=$file[$count_top]."::8";}else{$file[$count_top]=$file[$count_top]."::0";}
	}
}



for ($i=0;$i<=$count_top;$i++){  
	$parse=explode("::",$file[$i]); if ($parse[1]==0){$color="#DDEEFF";} if ($parse[1]==8){$color="E7DB5A";} $parse[1]=trim($parse[1]);
	print "<div"; if ($parse[1]==8){print " id=orange";} print ' class=h><a href="count_hits.php?url='.$parse[0].'" target=_blank>'; print "$parse[0]</a>"; print "</div>"; fputs($f,"document.write('<option style=\"background-color:$color\" value=\"$parse[0]\">".str_replace("http://","",str_replace("www.","",$parse[0]))."');
");
	
}
	
fputs($f,"document.write('</select><br><small>Powered by <a href=\"http://$detect3\" style=\"color: black; text-decoration: none\">http://$detect3</a></small></td></tr></table></form>');
");	

    mysql_free_result($result);
    mysql_close($link);
?>
Thanks in advance