Ver Mensaje Individual
  #1 (permalink)  
Antiguo 28/12/2009, 07:31
rastafinis
 
Fecha de Ingreso: mayo-2006
Mensajes: 86
Antigüedad: 18 años
Puntos: 0
un pequeño dilema

bueno ise una consulta de base de datos

que me arroja lo resultados en una tabla

el problema es que deseo que al pasar el mouse por los retultados el color del td que lo contiene cambie de colo lo he intentado pero solo el td que contien primer dato cambia y no al que apunte aqui el code


Código:
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
                  <tr>
                    <td height="25"><div id="modf"><? echo $lang['titulo'] ?></div></td>
                  </tr>
<?
$connection = mysql_connect ($lang['bd_host'],$lang['bd_usuario'],$lang['bd_password']);
if(!$connection) { die(mysql_error()); }
mysql_select_db($lang['bd_base']);
if(!@mysql_select_db($lang['bd_base'],$connection)) { die(mysql_error()); }
if ($cat == 0){$sql_text = "SELECT * FROM johwic_t WHERE f_id <> '$cat' order by grupo_id desc "; }
else {$sql_text = "SELECT * FROM johwic_t WHERE f_id = '$cat' order by grupo_id desc "; }
if ($r = mysql_query($sql_text,$connection)){
while ($row = mysql_fetch_array($r)){
	

                 $doctores ++; 


?>
                  <tr bgcolor="#163E6D">
                    <td align="left" valign="top" onClick="MM_goToURL('parent','ficha.php?ndii=<? echo $row['topico_id'] ?>');return document.MM_returnValue" id="resultadosdb" onmouseover="MM_changeProp('resultadosdb','','color','#000','TD');MM_changeProp('resultadosdb','','backgroundColor','#96C8E2','TD');MM_changeProp('resultadosdb','','textDecoration','underline','TD')" onmouseout="MM_changeProp('resultadosdb','','textDecoration','none','TD');MM_changeProp('resultadosdb','','color','#FFF','TD');MM_changeProp('resultadosdb','','backgroundColor','#4FA0CC','TD')" >
					
					<? $idf = $row['f_id']; 
							if($idf == 1) { ?><img src="http://www.forosdelweb.com/f18/imagenes/ico/flash.gif" width="20" height="20"><? } 
							if($idf == 2) { ?><img src="http://www.forosdelweb.com/f18/imagenes/ico/flash.gif" width="20" height="20"><? }
							if($idf == 3) { ?><img src="http://www.forosdelweb.com/f18/imagenes/ico/flash.gif" width="20" height="20"><? }
							if($idf == 4) { ?><img src="http://www.forosdelweb.com/f18/imagenes/ico/flash.gif" width="20" height="20"><? }
							if($idf == 5) { ?><img src="http://www.forosdelweb.com/f18/imagenes/ico/flash.gif" width="20" height="20"><? }
							if($idf == 6) { ?><img src="http://www.forosdelweb.com/f18/imagenes/ico/flash.gif" width="20" height="20"><? }
							if($idf == 7) { ?><img src="http://www.forosdelweb.com/f18/imagenes/ico/flash.gif" width="20" height="20"><? }
							if($idf == 8) { ?><img src="http://www.forosdelweb.com/f18/imagenes/ico/flash.gif" width="20" height="20"><? }
							if($idf == 9) { ?><img src="http://www.forosdelweb.com/f18/imagenes/ico/flash.gif" width="20" height="20"><? }
							if($idf == 10) { ?><img src="http://www.forosdelweb.com/f18/imagenes/ico/flash.gif" width="20" height="20"><? }
							if($idf == 11) { ?><img src="http://www.forosdelweb.com/f18/imagenes/ico/flash.gif" width="20" height="20"><? }
							if($idf == 12) { ?><img src="http://www.forosdelweb.com/f18/imagenes/ico/flash.gif" width="20" height="20"><? }
							if($idf == 13) { ?><img src="http://www.forosdelweb.com/f18/imagenes/ico/flash.gif" width="20" height="20"><? }
							if($idf == 14) { ?><img src="http://www.forosdelweb.com/f18/imagenes/ico/flash.gif" width="20" height="20"><? }
							if($idf == 15) { ?><img src="http://www.forosdelweb.com/f18/imagenes/ico/flash.gif" width="20" height="20"><? }
							if($idf == 16) { ?><img src="http://www.forosdelweb.com/f18/imagenes/ico/flash.gif" width="20" height="20"><? }
							if($idf == 17) { ?><img src="http://www.forosdelweb.com/f18/imagenes/ico/flash.gif" width="20" height="20"><? }
							if($idf == 18) { ?><img src="http://www.forosdelweb.com/f18/imagenes/ico/flash.gif" width="20" height="20"><? }
							if($idf == 19) { ?><img src="http://www.forosdelweb.com/f18/imagenes/ico/flash.gif" width="20" height="20"><? }
							if($idf == 20) { ?><img src="http://www.forosdelweb.com/f18/imagenes/ico/flash.gif" width="20" height="20"><? }
							if($idf == 21) { ?><img src="http://www.forosdelweb.com/f18/imagenes/ico/flash.gif" width="20" height="20"><? }
							if($idf == 22) { ?><img src="http://www.forosdelweb.com/f18/imagenes/ico/flash.gif" width="20" height="20"><? }
							if($idf == 23) { ?><img src="http://www.forosdelweb.com/f18/imagenes/ico/flash.gif" width="20" height="20"><? }
							if($idf == 24) { ?><img src="http://www.forosdelweb.com/f18/imagenes/ico/flash.gif" width="20" height="20"><? }
							if($idf == 25) { ?><img src="http://www.forosdelweb.com/f18/imagenes/ico/flash.gif" width="20" height="20"><? }
							if($idf == 26) { ?><img src="http://www.forosdelweb.com/f18/imagenes/ico/flash.gif" width="20" height="20"><? }
							if($idf == 27) { ?><img src="http://www.forosdelweb.com/f18/imagenes/ico/flash.gif" width="20" height="20"><? }
							if($idf == 28) { ?><img src="http://www.forosdelweb.com/f18/imagenes/ico/flash.gif" width="20" height="20"><? }
							if($idf == 29) { ?><img src="http://www.forosdelweb.com/f18/imagenes/ico/flash.gif" width="20" height="20"><? }
							if($idf == 30) { ?><img src="http://www.forosdelweb.com/f18/imagenes/ico/flash.gif" width="20" height="20"><? }


                           ?>                      <? echo $row['grupo_id']; ?> <? echo $row['t_titulo']; ?></td>
                  </tr>
<?
                 }}
mysql_close($connection);

              if($doctores == 0) {

                  $doctores = 0; }
?>
                </table>