Closed Thread Icon

Preserved Topic: global script to kill link dots in IE (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=17894" title="Pages that link to Preserved Topic: global script to kill link dots in IE (Page 1 of 1)" rel="nofollow" >Preserved Topic: global script to kill link dots in IE <span class="small">(Page 1 of 1)</span>\

 
butcher
Paranoid (IV) Inmate

From: New Jersey, USA
Insane since: Oct 2000

posted posted 12-19-2000 22:54

Sorry guys, I know this was posted in a thread somewhere before, but I looked through the archives and couldn't find it. I remember that someone in that thread had a good script that globally killed the dots that show up around image links in IE after you click on them. I would be appreciative of anyone that remembers it, or if the one that wrote it would share it again.

Thanks

DocOzone
Maniac (V) Lord Mad Scientist
Sovereign of all the lands Ozone and just beyond that little green line over there...

From: Stockholm, Sweden
Insane since: Mar 1994

posted posted 12-20-2000 00:28

try this inside your hrefs...

onClick="window.focus()"

That should take the the focus off the button and onto the whole window, eliminating the 'dots'.

Your pal, -doc-

Bugimus
Maniac (V) Mad Scientist

From: New California
Insane since: Mar 2000

posted posted 12-20-2000 01:05

here's a variation on the theme:

onClick="this.blur()"

this one takes the focus off your href, where it goes when you use blur is anybody's guess

butcher
Paranoid (IV) Inmate

From: New Jersey, USA
Insane since: Oct 2000

posted posted 12-20-2000 01:10

Thanks guys I appreciate it. But I could'a sworn that someone around here had a script to put in the head that took care of it gloabally. Unless it was just to many meds on my part that day.

[This message has been edited by butcher (edited 20-12-2000).]

DL-44
Maniac (V) Inmate

From: under the bed
Insane since: Feb 2000

posted posted 12-20-2000 01:17

I know I've seen bitdameged put a bit into his scripts that combines the process with a function he'll already be calling for another purpose -- so when you call the function (the one I remember was one to show/hide divs when you click a link) it automatically inlcudes the focus part.

Sash
Paranoid (IV) Inmate

From: Canada, Toronto
Insane since: May 2000

posted posted 12-20-2000 02:06

Try this. http://www.developer.irt.org/script/1498.htm

Bugimus
Maniac (V) Mad Scientist

From: New California
Insane since: Mar 2000

posted posted 12-20-2000 05:26

The solution from that link adds a completely unnecessary element of complexity to the solution. Using window.focus or this.blur in each href is still the better way until we can come up with a global setting for all the hrefs on the page.

Pugzly
Paranoid (IV) Inmate

From: 127.0.0.1
Insane since: Apr 2000

posted posted 12-20-2000 05:41

But, Sash, thanks for the link. Lots of questions answered at that site!

Pat Richard
Web weenie
http://www.gurusnetwork.com
ICQ 23113317

Bugimus
Maniac (V) Mad Scientist

From: New California
Insane since: Mar 2000

posted posted 12-20-2000 06:04

Check this out! Put this in your header and it should get rid of the dots.

<script language="JavaScript">
document.onclick=handleClick
function handleClick() { window.focus() }
</script>

This script is ignored in NN4 (which is good), it works like a charm in IE5, and I'm looking into a way to make it work in NN6.

Could everyone please see if this works for them too? I'm pretty sure it's a global solution.

Bugimus
Maniac (V) Mad Scientist

From: New California
Insane since: Mar 2000

posted posted 12-20-2000 06:07

Oops I didn't intend to be rude, Sash, sorry about that.

mr.maX
Maniac (V) Mad Scientist

From: Belgrade, Serbia
Insane since: Sep 2000

posted posted 12-20-2000 09:23

Here's another solution that also works in NGLayout/Gecko based browsers (Mozilla Seamonkey, Netscape 6, etc.)

<SCRIPT TYPE="text/javascript" LANGUAGE="JavaScript">
<!-- ;
// MAX's Focus Rectangle Killer :-)
// Copyright © 2000 mr.maX

butcher
Paranoid (IV) Inmate

From: New Jersey, USA
Insane since: Oct 2000

posted posted 12-20-2000 13:54

This is weird, I wrote out a whole post thanking everyone for there help in this thread. Thanked Bugimus, and told him that his looks like the one I remember from the thread I couldn't find, and that it seems to work fine. Then I thanked Mr. Max for his script that works equally as well. Checked my spelling, and hit the submit button. When I came back to the forum later, no post from me..... go figure.

Bugimus
Maniac (V) Mad Scientist

From: New California
Insane since: Mar 2000

posted posted 12-20-2000 21:37

Cool! This has been a very productive thread. Mr. Max, thanks for the SeaMonkey syntax, that really helps! I am starting to tackle the NN6 way of doing things and handling events is a bit tricky.

What do you think the chances are that the next version of IE will conform more to the w3c standards?

butcher
Paranoid (IV) Inmate

From: New Jersey, USA
Insane since: Oct 2000

posted posted 12-20-2000 21:56

What!!?? And lose a forum as eloquently named as All Browsers Suck!
Never!

mr.maX
Maniac (V) Mad Scientist

From: Belgrade, Serbia
Insane since: Sep 2000

posted posted 12-20-2000 22:37

Bugimus, IE already has *partial* support for W3C DOM specification (DOM Level 1 specification was finished a way back in 1998, but nobody used it in that period ). In the future, things can only get better...

Whatch out - IE6 is coming!!!

DocOzone
Maniac (V) Lord Mad Scientist
Sovereign of all the lands Ozone and just beyond that little green line over there...

From: Stockholm, Sweden
Insane since: Mar 1994

posted posted 12-21-2000 00:02

Hmm, we could maybe change the name to "Nearly All Browsers Suck?" I'll wait on that, at least until it's more true, heh.

Thinking more on the focus/blur thing, one of the things i do on most of my active links, at least the ones with mouseovers, is include an onClick="..." bit anyway, so that the buttons don't get stuck in one mode or another. Unless I need something specific, I have it either do the onOver or onOut fnction. I put my window.focus() bit in that function, so I don't need to do it in too many places.

Your pal, -doc-

galaxal
Paranoid (IV) Inmate

From:
Insane since: Oct 2000

posted posted 12-22-2000 19:45

haha, it's not efficient as I expected, the dots still appeared for like .5 seconds, tehn dispeared, better than the oldway still. (I am on a 200mhz computer, that might be why).

I use windows2000's IE, the dots are not shown by default, and I don't know how to get it on. but if you are using ImageMap, the dots will appear, that's my experience.

Bugimus
Maniac (V) Mad Scientist

From: New California
Insane since: Mar 2000

posted posted 12-22-2000 19:52

galaxal, yes, the focus first goes to the item you click on then the blurring occurs. So it makes sense that on a slower machine you will actually see that happening for longer. I am on a fairly fast machine and I can still see the dots for a blink of an eye. Like you say, it's better than nothing

butcher
Paranoid (IV) Inmate

From: New Jersey, USA
Insane since: Oct 2000

posted posted 12-22-2000 23:40

It's alot better than nothing, especially if you are using frames and your nav doesn't reload after you click it. Those dots stay there forever.

« BackwardsOnwards »

Show Forum Drop Down Menu