473,624 Members | 2,458 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Beginner Q: Focus Rectangle Woes

Hi there,

I've got a page with two frames. The top frame hosts a menu, which is
simply a collection of text-links. Whenever a text-link in the top frame
gets selected, the bottom-frame is filled with the appropriate contents.
Unfortunately, after clicking the link, a focus-rectangle stays around the
selected text-link. Is there a way to get rid of it? Maybe with some
Javascript setting the focus to something different after selecting the link?

If you want to have a look: http://emvoid.de

Thanks in advance!

Matthias
Jul 23 '05 #1
2 1348
Matthias S. <po*****@NEEDSR EMOVEemvoid.de> wrote in message
news:36******** *****@individua l.net...
Hi there,

I've got a page with two frames. The top frame hosts a menu, which is
simply a collection of text-links. Whenever a text-link in the top frame
gets selected, the bottom-frame is filled with the appropriate contents.
Unfortunately, after clicking the link, a focus-rectangle stays around the
selected text-link. Is there a way to get rid of it? Maybe with some
Javascript setting the focus to something different after selecting the link?
If you want to have a look: http://emvoid.de

Thanks in advance!

Matthias


Try this:

for(var i=0, len=document.li nks.length; i<len; i++)
document.links[i].onmouseup=func tion(){if(this. blur)this.blur( )}

Use with other mouse events may cause accessibility problems.
--
S.C.
http://makeashorterlink.com/?H3E82245A

Jul 23 '05 #2
Stephen Chalmers wrote:
Matthias S. <po*****@NEEDSR EMOVEemvoid.de> wrote in message
news:36******** *****@individua l.net...
Hi there,

I've got a page with two frames. The top frame hosts a menu, which is
simply a collection of text-links. Whenever a text-link in the top frame
gets selected, the bottom-frame is filled with the appropriate contents.
Unfortunately , after clicking the link, a focus-rectangle stays around the
selected text-link. Is there a way to get rid of it? Maybe with some
Javascript setting the focus to something different after selecting the


link?
If you want to have a look: http://emvoid.de

Thanks in advance!

Matthias

Try this:

for(var i=0, len=document.li nks.length; i<len; i++)
document.links[i].onmouseup=func tion(){if(this. blur)this.blur( )}

Use with other mouse events may cause accessibility problems.
--
S.C.
http://makeashorterlink.com/?H3E82245A

Stephen,

thanks a ton. Works fine!

Matthias
Jul 23 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
10549
by: Chris | last post by:
I'm using eight links listed horizontally as a menu on my site. I'm using font-variant:small-caps and they are padded so that they mimic buttons. My gripe is with the way IE handles the focus rectangle on these links. It insists on drawing this crazy shape that traces the text, which with small caps looks rather assinine. Firefox handles the same task very gracefully (yeah Gecko!) and I would like to force IE to do the same. The site...
0
2155
by: Steve Bezner | last post by:
I have an issue in which a link label on a windows form does not draw the focus rectangle if you programmatically force it to have focus via the Control.Focus() method. To duplicate, create a new windows app, place a button and a link label on the form. In the button click event, place the following code, this.linkLabel1.Focus(). Run the app and press tab between the two controls and you notice that the link label has the focus...
1
5040
by: cider123 | last post by:
I've tried working with the SelectedIndices and Items.Selected attributes to get the problem to go away, but not having any luck. Questions I have are: 1) How do you move (using code) the focus Rectangle when your Selected Index changes ? 2) If there are no selected rows, can that focus rectangle be removed? 3) What other quirks exist in this simple example I might need to code for ?
4
3943
by: SJ | last post by:
Hi all, I have come across a weird problem when attempting to automatically set the focus in a vb.net form to a checkbox control... In my form I have (on a tab page in a tab control) several textboxes and a checkbox. The behaviour I want from my app is as follows:- When the textbox (which is prior in tab order to the tab control) has been filled with a certain length of text by the user, the focus is
0
8175
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8680
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8625
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8482
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7168
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6111
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4082
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
1791
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1487
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.