Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP] Menu
blandzi
post
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
blandzi
post
Post #2





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

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


Dzieki za pomoc wszystko ladnie dziala ale gdy chcialem zrobic dla kilku to mi sie tylko pokazuje ostatni element menu
Kod
<html>
  <head>
  <script type="text/javascript" src="mintAjax.js"></script>
  
  <style type="text/css">
  a
  {
  font-size: 20px;
  color: #B7C059;
  text-decoration: none;
  }
  </style>
  <script type="text/javascript">
  
  function ColorIn() {
  mint.fx.Color("link", "color", null, "B22222", 20, 500);
  }
  function ColorOut() {
  mint.fx.Color("link", "color", null, "B7C059", 20, 500);
  }
  
  
  function ColorIn1() {
  mint.fx.Color("link1", "color", null, "B22222", 20, 500);
  }
  function ColorOut1() {
  mint.fx.Color("link1", "color", null, "B7C059", 20, 500);
  }
  
  function ColorIn2() {
  mint.fx.Color("link2", "color", null, "B22222", 20, 500);
  }
  function ColorOut2() {
  mint.fx.Color("link2", "color", null, "B7C059", 20, 500);
  }
  
  function ColorIn3() {
  mint.fx.Color("link3", "color", null, "B22222", 20, 500);
  }
  function ColorOut3() {
  mint.fx.Color("link3", "color", null, "B7C059", 20, 500);
  }
  
  function ColorIn4() {
  mint.fx.Color("link4", "color", null, "B22222", 20, 500);
  }
  function ColorOut4() {
  mint.fx.Color("link4", "color", null, "B7C059", 20, 500);
  }
  
  
  </script>
  </head>
  <body>
  
  <A HREF="index.php" id="link" class="link" onmouseover="ColorIn()" onmouseout="ColorOut()>Strona główna</A><BR>
  <A HREF="lab.php" id="link1" class="link1" onmouseover="ColorIn1()" onmouseout="ColorOut1()>Moje projekty</A><BR>
  <A HREF="ja.php" id="link2" class="link2" onmouseover="ColorIn2()" onmouseout="ColorOut2()>O mnie</A><BR>
  <A HREF="linki.php" id="link3" class="link3" onmouseover="ColorIn3()" onmouseout="ColorOut3()>Linki</A><BR>
  <A HREF="wiadomosc.php" id="link4" class="link4" onmouseover="ColorIn4()" onmouseout="ColorOut4()>Napisz do mnie</A>
  
  </body>
  </html>

Co zmienic zeby wyswietlalo mi wszystkie elementy menu? i w jaki sposob moge zrobic zeby dla kazdego elemeu nie tworzyc nowej funkcji?

Ten post edytował blandzi 1.02.2009, 16:15:48
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: 7.10.2025 - 21:14