Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [JS]Podmiana class
ydy10
post 24.05.2007, 12:52:11
Post #1





Grupa: Zablokowani
Postów: 87
Pomógł: 0
Dołączył: 29.07.2006

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


chcialem, by po najechaniu na link - zmienilo sie tlo - w wyniku zmiany class - ale nie dziala sad.gif - zere reakcji
  1. <td class="menu_n_l" name="asqw">
  2. <a onMouseOver="document.asqw.className='menu_n_l_'" onMouseOut="document.asqw.className='menu_n_l'" class="item1" href="aaa">Start</a>
  3. </td>


Kod
.menu_n_l
{
    background-image: url('./menu/menu_01.png');
    width: 107px;
    text-align: center;
}

.menu_n_l_
{
    background-image: url('./menu/menu_01_.png');
    width: 107px;
    color: red;
    text-align: left;
}
Go to the top of the page
+Quote Post
nospor
post 24.05.2007, 13:23:30
Post #2





Grupa: Moderatorzy
Postów: 36 557
Pomógł: 6315
Dołączył: 27.12.2004




  1. <a onmouseover="this.parentNode.className='menu_n_l_'" onmouseout="this.parentNode.className='menu_n_l'" class="item1" href="aaa">Start</a>


--------------------

"Myśl, myśl, myśl..." - Kubuś Puchatek || "Manual, manual, manual..." - Kubuś Programista
"Szukaj, szukaj, szukaj..." - Kubuś Odkrywca || "Debuguj, debuguj, debuguj..." - Kubuś Developer

Go to the top of the page
+Quote Post
ydy10
post 24.05.2007, 13:36:47
Post #3





Grupa: Zablokowani
Postów: 87
Pomógł: 0
Dołączył: 29.07.2006

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


rowniez nie dziala sad.gif
Go to the top of the page
+Quote Post
piotrekkr
post 24.05.2007, 18:37:54
Post #4





Grupa: Zarejestrowani
Postów: 386
Pomógł: 25
Dołączył: 28.09.2005

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


sproboj zamiast name="costam" uzywac id="costam"

Ten post edytował piotrekkr 24.05.2007, 18:38:13
Go to the top of the page
+Quote Post
ydy10
post 24.05.2007, 21:28:47
Post #5





Grupa: Zablokowani
Postów: 87
Pomógł: 0
Dołączył: 29.07.2006

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


rowniez niedziala z getelementbyid sad.gif
Go to the top of the page
+Quote Post
Cysiaczek
post 25.05.2007, 07:42:05
Post #6





Grupa: Moderatorzy
Postów: 4 465
Pomógł: 137
Dołączył: 26.03.2004
Skąd: Gorzów Wlkp.




  1. <a id="ident" href="http://costam" onmouseover='document.getElementById(this.id).className="nazwa_klasy";'>link</a>


To działa na 100%


--------------------
To think for yourself you must question authority and
learn how to put yourself in a state of vulnerable, open-mindedness;
chaotic, confused, vulnerability, to inform yourself.
Think for yourself. Question authority.
Go to the top of the page
+Quote Post

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

 



RSS Wersja Lo-Fi Aktualny czas: 19.06.2025 - 06:46