dcsimg
www.webdeveloper.com
Results 1 to 7 of 7

Thread: How to make temporary border disappear in Firefox

  1. #1
    Join Date
    Jun 2006
    Location
    USA
    Posts
    4

    Question How to make temporary border disappear in Firefox

    Hi!

    I have a linked transparent graphic over the background of a door, so when the user clicks on the door it will be taken to the page I want.

    The problem is that when the user clicks on the door my transparent graphic gets an automatic border for a few seconds and reveals my ghost graphic.

    I took a screenshot of this problem so you know what I'm talking about:

    http://img68.imageshack.us/img68/637...problem3nm.jpg

    Noticed how the border of my transparent graphic shows up after clicking it?


    This only happens in Firefox. Is there a way to fix this in the code?

    Thanks!

    Melissa

  2. #2
    Join Date
    Jun 2006
    Posts
    263
    you can try ONCLICK="this.blur() Not sure of the compatibility between IE and Firefox but this works great in IE

  3. #3
    Join Date
    Jun 2006
    Location
    USA
    Posts
    4
    Thanks for the reply. Can you give me an example of where to put that code using "ghost.gif" as my file?

  4. #4
    Join Date
    Jun 2006
    Posts
    263
    <a href="whatever.html" onClick="this.blur();"><img src="ghost.gif" /></a>

  5. #5
    Join Date
    Jun 2006
    Location
    USA
    Posts
    4
    Thank you! That's a lot better. I will add this to my code and see if it works!

  6. #6
    Join Date
    Jun 2006
    Location
    USA
    Posts
    4
    Unfortunately, after implementing that code, the border still shows up for a few seconds when I click on the transparent image..

  7. #7
    Join Date
    Jun 2006
    Posts
    4
    have you tried setting the image border to 0?

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles