Topic: Button Image Focus Problem (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=29746" title="Pages that link to Topic: Button Image Focus Problem (Page 1 of 1)" rel="nofollow" >Topic: Button Image Focus Problem <span class="small">(Page 1 of 1)</span>\

 
Karl
Bipolar (III) Inmate

From: Phoenix
Insane since: Jul 2001

posted posted 12-05-2007 04:00

I have an image button that simply pops up a hidden layer...
After the image button is clicked it remains focused, leaving the dashed rectangle around it. So how do I move the focus off of the button immediately after the click?

Thanks,

Karl..

zavaboy
Paranoid (IV) Inmate

From: f(x)
Insane since: Jun 2004

posted posted 12-05-2007 04:33

Add this to your button:

code:
onclick="this.blur()"


Good?

Karl
Bipolar (III) Inmate

From: Phoenix
Insane since: Jul 2001

posted posted 12-05-2007 05:57

That works : )

Suho1004
Maniac (V) Mad Librarian

From: Seoul, Korea
Insane since: Apr 2002

posted posted 12-05-2007 09:15

Huh. I always wondered if there was a way around that. Neat.


___________________________
Suho: www.liminality.org | Cell 270 | Sig Rotator | the Fellowship of Sup

reisio
Paranoid (IV) Inmate

From: Florida
Insane since: Mar 2005

posted posted 12-05-2007 14:12

So you're going out of your way to break the UI...why?

Karl
Bipolar (III) Inmate

From: Phoenix
Insane since: Jul 2001

posted posted 12-07-2007 09:58
quote:

reisio said:

So you're going out of your way to break the UI...why?




Was this directed towards me?

zavaboy
Paranoid (IV) Inmate

From: f(x)
Insane since: Jun 2004

posted posted 12-08-2007 01:23

If it's just the dotted outline you want gone, I'd just use this CSS on it:

code:
outline:none;


Works even if JavaScript is disabled, unlike my previous example. Though it doesn't work in Mozilla, read more.

reisio
Paranoid (IV) Inmate

From: Florida
Insane since: Mar 2005

posted posted 12-08-2007 07:47
quote:
Karl said:

Was this directed towards me?


Yup.



Post Reply
 
Your User Name:
Your Password:
Login Options:
 
Your Text:
Loading...
Options:


« BackwardsOnwards »

Show Forum Drop Down Menu