Wednesday, June 23, 2010

How do i apply to onMouseover javascript event to more than one image in a single document?

question says it all!! and i need an explanation as well :O quick help!!! :OHow do i apply to onMouseover javascript event to more than one image in a single document?
Make an array with all the images you want to apply the onMouseover and apply it to the array.How do i apply to onMouseover javascript event to more than one image in a single document?
I'm not sure what explanation you'd need beyond, for each img,





%26lt; img src='; ... '; alt='; ... '; height='; ... '; width='; ...';


onmouseover='; whatever '; %26gt;





where ';whatever'; is the event and could be a call to an external javascript routine that returns the value ';true';





or ';javascript: [series of statements] ;return true();';





You could do something similar (not identical) by surrounding the images with an %26lt; a %26gt; and using CSS with the a:hover selector to achieve some effect.

No comments:

Post a Comment

 
albinism