Sasa Posted January 7, 2009 Report Posted January 7, 2009 Kā lai panāk tādu efektu, ka ja pele atrodās pari kādam tekstam tad zem tā teksta fons iekrāsojas kāda krāsā? css: .addRemove { font-family:Tahoma; font-size:10pt; text-align:right; font-weight:normal; color:Navy; cursor:pointer } html: <span onclick="cutplanner('details');" class="addRemove" id="EditorRow">Cut Planner</span>
marcis Posted January 7, 2009 Report Posted January 7, 2009 <span onmouseover="this.style.backgroundColor='#f00';" onmouseout="this.style.backgroundColor='';">Lorem ipsum bla bla..</span>
Sasa Posted January 7, 2009 Author Report Posted January 7, 2009 bet CSS un hover ... šķiet ka ar hover ar sataisīt?
indoom Posted January 7, 2009 Report Posted January 7, 2009 .addRemove:hover { background-color:red; } Bet rēķinies, ka vecāki browseri, kā IE6 to nesapratīs
Evi Posted January 7, 2009 Report Posted January 7, 2009 (edited) IE6 var izmantot JS, lai straadaa :hover, ko bubu vienreiz deva, nez vairs linku http://dean.edwards.name/weblog/2008/01/ie7-2/ shis laikam bij Edited January 7, 2009 by Evi
Recommended Posts