On Fri, 2004-05-21 at 18:01, Halsted Trust wrote: > I received an error message stating > "there is no attribute "NAME" in the following extract of code > onMouseOut="window.status=' '; return true"><IMG name="imgH1" > > The "name" relates to JavaScript used to control rollover images. > > If I can't use "name" in this context, I'd be grateful if you'd advise me > what I can use instead in my JavaScript to achieve the same result. You did not mention which DTD / HTML version you're using, so I'll guess HTML 4.0; <img> does not have a "name" attribute there (it does in 4.01). Anyway, a better choice might be the "id" attribute. See http://www.w3.org/TR/html4/struct/objects.html#adef-name-IMG (Or depending on exactly what you want to do, it might be possible to skip the id/name issue altogether in the rollovers, using something like <img src="..." onmouseover="this.src='...'" onmouseout="this.src='...'"> but that's off topic on this list :)Received on Saturday, 22 May 2004 19:50:41 GMT
This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 7 December 2009 10:57:14 GMT