Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Podświetlenie po najechaniu myszka
sylsaw
post
Post #1





Grupa: Zarejestrowani
Postów: 62
Pomógł: 0
Dołączył: 29.06.2005

Ostrzeżenie: (10%)
X----


chcialbym po najechaniu kursorem na dana tabelke zeby ona sie podswietlila, jak to zrobic
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
revyag
post
Post #2





Grupa: Przyjaciele php.pl
Postów: 2 258
Pomógł: 16
Dołączył: 21.09.2004
Skąd: Kielce

Ostrzeżenie: (0%)
-----


To możesz zmienić tło, albo krawędzie,albo to i to (IMG:http://forum.php.pl/style_emoticons/default/snitch.gif)
Kod
<script type="text/javascript">
function hl(t,c) {
    if(c) {
        t.style.backgroundColor='#efefef';
        t.style.border='1px solid #cccccc';
    } else {
        t.style.backgroundColor='#ffffff';
        t.style.border="0";
    }
}
</script>

  1. <table id="table" onmouseover="hl(this,true)" onmouseout="hl(this,false)">
  2. <tr>
  3. <td>lalal</td>
  4. </tr>
  5. <tr>
  6. <td>aaaa</td>
  7. </tr>
  8. <tr>
  9. <td>bbbb</td>
  10. </tr>
  11. <tr>
  12. <td>cccc</td>
  13. </tr>
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 10.10.2025 - 20:23