Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
UBBDev.com
UBBWiki.com
Who's Online
1 registered (SteveS), 29 Guests and 14 Spiders online.
Key: Admin, Global Mod, Mod
Featured Member
Registered: 06/05/06
Posts: 105
Top Posters (30 Days)
Ruben 49
Gizmo 24
DennyP 24
Dunny 17
SteveS 14
AllenAyres 12
dbremer 10
drkknght00 9
SD 9
driv 8
Latest Photos
OK Corral Shoot Out
Testing
Basildon Train Station
Basildon Town Centre looking from the rounderbout
Basildon Town Square
Topic Options
#169194 - 11/27/06 03:19 AM SPAN: onFocus / blur
jgeoff Offline
Pooh-Bah
Registered: 08/08/06
Posts: 1922
Loc: NJ

I'm not a big fan of how the entire body of a post gets focused when you right-click in it.

On some sites, I remember using this in anchor tags (especially images) so it wouldn't show the focus outline when clicked:
Code:
onFocus="if(this.blur)this.blur()"


I don't know if this can be added to the post body SPAN or not, or site-wide -- I haven't tried it yet (this is my reminder to try it tomorrow \:D ) -- but does anyone know a better way around having the SPAN focus like it does?

Thanks!
_________________________
GangsterBB.NET (Ver. 7.5.6)
2007 Content Rulez Contest - Hon Mention
UBB.classic 6.7.2 - RIP
Browsers: Chrome, Firefox, & Safari (Win7 and iPhone); No IE, ever!
Top
Express Hosting
Express Hosting "We are the official hosting company of UBB.threads. Ask us about our free migration services to migrate your UBB.threads installation."
#169204 - 11/27/06 02:07 PM Re: SPAN: onFocus / blur [Re: jgeoff]
jgeoff Offline
Pooh-Bah
Registered: 08/08/06
Posts: 1922
Loc: NJ
P.S. Okay, this seems to be happening in Firefox but not IE. I'll try to play with it...
_________________________
GangsterBB.NET (Ver. 7.5.6)
2007 Content Rulez Contest - Hon Mention
UBB.classic 6.7.2 - RIP
Browsers: Chrome, Firefox, & Safari (Win7 and iPhone); No IE, ever!
Top
#169207 - 11/27/06 02:35 PM Re: SPAN: onFocus / blur [Re: jgeoff]
jgeoff Offline
Pooh-Bah
Registered: 08/08/06
Posts: 1922
Loc: NJ
Okay, this seems to work

IN /templates/default/showflat.tpl (Line 132)
AND /templates/default/showmessage.tpl (Line 72)

CHANGE:
Code:
<span class="post_inner">
TO:
Code:
<span class="post_inner" onFocus="if(this.blur)this.blur()">


IN /templates/default/island_shoutbox.tpl (Line 18)

CHANGE:
Code:
<div id="shout_box" style="height:300px; width: 100%; overflow:auto;"
TO:
Code:
<div id="shout_box" style="height:300px; width: 100%; overflow:auto;" onFocus="if(this.blur)this.blur()">


onFocus="if(this.blur)this.blur()" can probably be added elsewhere as well, but this should give you an idea if you don't like the current behavior in Firefox.
_________________________
GangsterBB.NET (Ver. 7.5.6)
2007 Content Rulez Contest - Hon Mention
UBB.classic 6.7.2 - RIP
Browsers: Chrome, Firefox, & Safari (Win7 and iPhone); No IE, ever!
Top
#169219 - 11/27/06 08:11 PM Re: SPAN: onFocus / blur [Re: jgeoff]
ntdoc Offline
Registered: 11/09/06
Posts: 3384
I found it on line 123 and modified it as you have it.

Still seems to highlight most of the box on those with code tags.
Those with just normal posting it highlights all the text written.

Not sure I really like that either, but suppose better than default code.
Top
#169243 - 11/28/06 02:55 AM Re: SPAN: onFocus / blur [Re: ntdoc]
jgeoff Offline
Pooh-Bah
Registered: 08/08/06
Posts: 1922
Loc: NJ

Done properly -- at least for me -- there should be no difference whatsoever to what you'd expect... so not sure what you mean. And not sure why you'd change a different line than I mentioned (altho my line #s are from 7.00 files, so it's possible)...

To be clear, the attached file is the "box" I'm talking about, that shows up when you right-click in Firefox...


Attachments
233-FocusBox.gif (20 downloads)

_________________________
GangsterBB.NET (Ver. 7.5.6)
2007 Content Rulez Contest - Hon Mention
UBB.classic 6.7.2 - RIP
Browsers: Chrome, Firefox, & Safari (Win7 and iPhone); No IE, ever!
Top
#169246 - 11/28/06 03:53 AM Re: SPAN: onFocus / blur [Re: jgeoff]
ntdoc Offline
Registered: 11/09/06
Posts: 3384
Yes that's correct and yes it is on a different line apparently in 7.02

Just not sure I guess what I'd want it to really do different, thus yes seems okay and better than defaults of 7.02 code.
Top



Moderator:  AllenAyres, Harold, Ian, Ron M 
Shout Box

Today's Birthdays
No Birthdays
Recent Topics
Ability to "like" individual posts (not Facebook "likes)
by doug
Yesterday at 09:03 AM
Island Permissions
by ThreadsUser
05/22/12 03:03 PM
streaming video
by prkrgrp
05/20/12 07:02 PM
New Posts Corrupted? Can someone help?
by PianoWorld
05/19/12 09:41 AM
Custom forum permissions
by ntdoc
05/18/12 02:07 PM
Forum Stats
10489 Members
36 Forums
33840 Topics
181693 Posts

Max Online: 978 @ 06/24/07 11:19 PM
Random Image