If JS float off year member

I am using JS to add a class to an element when it is hovered over.

I also want to remove that class when the element is no longer hovered over.

How do you do this?

I also want to ensure it works on touch devices as well as with the mouse.

I don’t want to use jQuery (or any library).

This entry was posted in Codes & Scripts and tagged , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *


You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>