Post
#1
|
|
|
Grupa: Zarejestrowani Postów: 203 Pomógł: 0 Dołączył: 10.06.2004 Skąd: Gliwice Ostrzeżenie: (0%)
|
Witam,
mam w stronce taki fragment tekstu: Kod <div class="mg_l" onMouseOver="this.style.backgroundColor='#CDE288';" onMouseOut="this.style.backgroundColor='';"><a href="#">...</a></div> i validator wywala taki bład: Error Line 32 column 30: there is no attribute "onMouseOver". <div class="mg_l" onMouseOver="this.style.backgroundColor='#CDE288';" onMouseOut You have used the attribute named above in your document, but the document type you are using does not support that attribute for this element. This error is often caused by incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Transitional" document type to get the "target" attribute), or by using vendor proprietary extensions such as "marginheight" (this is usually fixed by using CSS to achieve the desired effect instead). This error may also result if the element itself is not supported in the document type you are using, as an undefined element will have no supported attributes; in this case, see the element-undefined error message for further information. How to fix: check the spelling and case of the element and attribute, (Remember XHTML is all lower-case) and/or check that they are both allowed in the chosen document type, and/or use CSS instead of this attribute. Domyślam się że należy zrobić taki sam efekt ale przy użyciu stylów, tylko jak zrobić w stylach, że po najechaniu na div, zmieni sie jego tlo? .mg_l:hover nie działa. |
|
|
|
3miel DIV i hover, niezgodność z Validatorem 9.12.2005, 14:03:55
sopel po pierwsze nie napisales jak masz zdefiniowany do... 9.12.2005, 14:14:37
3miel Takie to proste Myślałem że jednak to będzie coś ... 9.12.2005, 14:18:16
Zajec Kolejny przykład zbędnego użycia JS?
[XML] pobier... 10.12.2005, 12:40:33
gulldarek Zajec - zakladasz, ze umiescil tam tylko <a... 10.12.2005, 23:32:55
mike_mech A ostatnio właśnie znalazłem sposób na pseudoklasę... 10.12.2005, 23:38:30
gulldarek mike_mech: właśnie powiększyłeś moją liste IE hack... 11.12.2005, 13:39:56
Zajec Cytat(gulldarek @ 2005-12-10 23:32:55)Zajec -... 11.12.2005, 15:44:34
skl Witam
To moj pierwszy post na forum wiec chcialem ... 16.11.2006, 18:27:08
Zajec Przede wszystkim w drzewie DOM nie ma czegoś takie... 17.11.2006, 09:53:55 ![]() ![]() |
|
Aktualny czas: 22.12.2025 - 07:07 |