Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> hover z jednego <a> do drugiego <a>
HBK
post
Post #1





Grupa: Zarejestrowani
Postów: 33
Pomógł: 0
Dołączył: 3.08.2008

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


Hej,

Mam taką sytuację:

Jest sobie jeden link:

  1. <a href="#"><img src=""></a>



i drugi:

  1. <a href="#">link 1</a>



Jak zrobić żeby najeżdżając na obrazek z pierwszego linka podświetlił się hover z drugiego linka?
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
HBK
post
Post #2





Grupa: Zarejestrowani
Postów: 33
Pomógł: 0
Dołączył: 3.08.2008

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


Rozwiązałem to przy pomocy onMouse ale wolałbym to w jQuery...


Pierwszy link:
  1. <a onMouseOver="document.getElementById('col1').style.color='red'" onMouseOut="document.getElementById('col1').style.color='#fff'" href="#" title=""><img width="100" height="100" src="#" alt="" title="" /></a>
  2.  
  3. <a onMouseOver="document.getElementById('col2').style.color='red'" onMouseOut="document.getElementById('col2').style.color='#fff'" href="#" title=""><img width="100" height="100" src="#" alt="" title="" /></a>
  4.  
  5. <a onMouseOver="document.getElementById('col3').style.color='red'" onMouseOut="document.getElementById('col3').style.color='#fff'" href="#" title=""><img width="100" height="100" src="#" alt="" title="" /></a>


Drugi link:
  1. <a id="col1" href="#" title=""><p>#</p></a>
  2.  
  3. <a id="col2" href="#" title=""><p>#</p></a>
  4.  
  5. <a id="col3" href="#" title=""><p>#</p></a>



Może podjąłby się ktoś przerobienia tego na jQuery? (IMG:style_emoticons/default/tongue.gif)


Z góry przepraszam moderatora temat z CSS zszedł na JS (IMG:style_emoticons/default/smile.gif)
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: 27.12.2025 - 12:32