Re: Images & mouseovers

by Peter-Paul Koch <ppk(at)xs4all.nl>

 Date:  Sat, 23 Sep 2000 21:54:57 +0200
 To:  hwg-xml(at)hwg.org
 References:  mscounties abbeyink
  todo: View Thread, Original
>Following my 24-36 hour crash course, /any/ style attributes are not 
>allowed in XHTML tags. So, borders must be attributed in the style sheet. 
>Darrell kindly sent this:

<...sigh...>

>.imgBorder { border: solid; border-width: 2; border-color: #FF0000 }
>
>then:
><.img class="imgBorder" ...
>
>But, using it as img class is not recognized by NN 4.5. So, 

This is not because of the class, but because NN doesn't recognize styles
for images anyway.

he suggested 
>using a div tag, but XHTML only allows one div tag, 

??? What do you mean? Why can't you use as many div's as you like? No
(X)HTML spec limits the number of elements you can use.

>And, still no progress on the mouseovers -- yet. A few attempts and ideas, 
>but none that validate, so I guess I'll end up going with the 
>tried-and-true even if it doesn't validate. Rats, I really like to validate 
>too.

<img name=""> is allowed in HTML 4.01, so why not in XHTML? For a mouseover
script based on numbers, see

http://www.xs4all.nl/~ppk/js/

under Archives => Old Mouseover script. This initially uses names, but I
reworked it to use numbers. The script assumes that you want a mouseover
effect for a row of buttons and that there are no images between the
mouseover images in your source code.

ppk

HWG hwg-xml mailing list archives, maintained by Webmasters