Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP] Menu
blandzi
post 1.02.2009, 13:14:03
Post #1





Grupa: Zarejestrowani
Postów: 35
Pomógł: 0
Dołączył: 9.12.2008

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


Jak zrobić menu jak tutaj http://haker.org.pl/news.php które zmienia kolor po przejechaniu po danej kategorii?
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
piotrooo89
post 1.02.2009, 16:27:32
Post #2


Newsman


Grupa: Moderatorzy
Postów: 4 005
Pomógł: 548
Dołączył: 7.04.2008
Skąd: Trzebinia/Kraków




  1. <script type="text/javascript">
  2.  
  3. function ColorIn1() {
  4. mint.fx.Color("link", "color", null, "B22222", 20, 500);
  5. }
  6. function ColorIn2() {
  7. mint.fx.Color("link2", "color", null, "B22222", 20, 500);
  8. }
  9. function ColorIn3() {
  10. mint.fx.Color("link3", "color", null, "B22222", 20, 500);
  11. }
  12.  
  13. function ColorOut1() {
  14. mint.fx.Color("link", "color", null, "B7C059", 20, 500);
  15. }
  16. function ColorOut2() {
  17. mint.fx.Color("link2", "color", null, "B7C059", 20, 500);
  18. }
  19. function ColorOut3() {
  20. mint.fx.Color("link3", "color", null, "B7C059", 20, 500);
  21. }
  22.  
  23. </head>
  24. <a href="" id="link" class="link" onmouseover="ColorIn1()" onmouseout="ColorOut1()">Link</a>
  25. <a href="" id="link2" class="link2" onmouseover="ColorIn2()" onmouseout="ColorOut2()">Link</a>
  26. <a href="" id="link3" class="link3" onmouseover="ColorIn3()" onmouseout="ColorOut3()">Link</a>
  27. </body>


a jak zrobić żeby za każdym razem nie trzeba było dodawać od nowa, po prostu nie wiem smile.gif


--------------------
Go to the top of the page
+Quote Post

Posty w temacie


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: 14.08.2025 - 19:18