Skip to content
Advertisement

Tag: onmouseover

How to get onMouseOver to work on both elements

I’m building an image slider with arrow keys above the image. I want to hide the arrow icons upon leaving the arrow icons and entering the image. I have gotten it to work on the left arrow icon but once I hover over the right arrow it doesn’t render only the left arrow allows both icons to appear. I would

Can I add onmouseover attribute to run only once?

Say I have a link like the following: <a class=”link” href=”www.rich.com” onmouseover=”go(this)”>Link</a> Is there a way to configure the onmouseover event, calling go(this) to run only a single time while still using the inline onmouseover=<some code> notation? I want it defined inline, not with a JavaScript call. Currently, I have this, but it is not what I want: Answer You

Advertisement