Topic: Button Image Focus Problem (Page 1 of 1) Pages that link to <a href="http://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

IP logged posted posted 12-05-2007 04:00 Edit Quote

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

IP logged posted posted 12-05-2007 04:33 Edit Quote

Add this to your button:

code:
onclick="this.blur()"


Good?

Karl
Bipolar (III) Inmate

From: Phoenix
Insane since: Jul 2001

IP logged posted posted 12-05-2007 05:57 Edit Quote

That works : )

Suho1004
Maniac (V) Mad Librarian

From: Seoul, Korea
Insane since: Apr 2002

IP logged posted posted 12-05-2007 09:15 Edit Quote

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

IP logged posted posted 12-05-2007 14:12 Edit Quote

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

Karl
Bipolar (III) Inmate

From: Phoenix
Insane since: Jul 2001

IP logged posted posted 12-07-2007 09:58 Edit Quote
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

IP logged posted posted 12-08-2007 01:23 Edit Quote

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

IP logged posted posted 12-08-2007 07:47 Edit Quote
quote:
Karl said:

Was this directed towards me?


Yup.



Post Reply
 
Your User Name:
Your Password:
Login Options: Remember Me On This Computer
 
Your Text:
Loading...
Options: Show Signature
Enable Slimies
Enable Linkwords

« BackwardsOnwards »

Show Forum Drop Down Menu