View Single Post
Staro 29.07.2006., 19:24   #1
EmP!
UbErPwNerSkillZor
 
Datum registracije: Sep 2005
Lokacija: Dubrovnik
Postovi: 101
html u php-u block!!

Code:
          <tr>
           <td onmouseover='this.style.backgroundColor='#F3EDE4'; this.style.cursor='hand';' onmouseout='this.style.backgroundColor='#E8DCCE'' class='mainTable' width='185'><a href='#a'>Index</a></td>
          </tr>

znači dok ovo save-am u html-u, kad pređem mišem preko linka cijeli td promijeni boju, ALI dok to saveam u php file-u, znači npr

<?
$button=" <tr>
<td onmouseover='this.style.backgroundColor='#F3EDE4'; this.style.cursor='hand';' onmouseout='this.style.backgroundColor='#E8DCCE'' class='mainTable' width='185'><a href='#a'>Index</a></td>
</tr>";
echo $button;
?>

onda RADI CSS (mainTable) Ali ovaj code onmouseover neradi, tj. ne mijenja boju kad pređem mišom..

hmm.. zašto? thx
EmP! je offline   Reply With Quote