Sasa Posted January 7, 2009 Report Share 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> Link to comment Share on other sites More sharing options...
marcis Posted January 7, 2009 Report Share Posted January 7, 2009 <span onmouseover="this.style.backgroundColor='#f00';" onmouseout="this.style.backgroundColor='';">Lorem ipsum bla bla..</span> Link to comment Share on other sites More sharing options...
Sasa Posted January 7, 2009 Author Report Share Posted January 7, 2009 bet CSS un hover ... šķiet ka ar hover ar sataisīt? Link to comment Share on other sites More sharing options...
indoom Posted January 7, 2009 Report Share Posted January 7, 2009 .addRemove:hover { background-color:red; } Bet rēķinies, ka vecāki browseri, kā IE6 to nesapratīs Link to comment Share on other sites More sharing options...
Evi Posted January 7, 2009 Report Share 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 Link to comment Share on other sites More sharing options...
Recommended Posts