Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MouseOver

Status
Not open for further replies.

needydude

Technical User
Oct 5, 2003
14
US
The MouseOver/MouseOut method I'm using involves creating a false "a href" link...."#"...then, later...."OnClick="false return". This works well enough until a person clicks on the actual pictures. I'm using round gif files with transparent backgrounds to hide the fact that the file is square, not really round. When a person clicks on the picture(s), a box appears around the image(s) and stays there until the person again clicks the left mouse button. My question: is there any way to eliminate this? I want the MouseOver/MouseOuts to work and NOTHING to happen when they click on the image(s). I don't want that darn box to appear. Is there any way to accomplish this?
 
That could probably be accomplished by forcing blur like this:

instead of just using OnClick="return false" try
OnClick = "this.blur();return false"

I'm not positive where that is going to go in your code... but it is worth a try. That does however mess with the Active Link CSS properties in some cases not showing a link active because you forced it not to be.

anyway. Give it a try and see how it works.






Travis Hawkins
BeachBum Software
travis@cfm2asp.com
 
Travis, thanks, man. That works a lot better. The box still appears when you click on the image, but it doesn't stay there--disappearing as soon as you let go of the mouse button.

NOTE TO OTHER POTENTIAL POSTERS: If anyone knows how to prevent the box from appearing at all, please post.

If there isn't anyway to totally prevent the box, again, thanks Travis, I'll just go with your suggestion which is a big improvement.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top