|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hi,
I'm using the OnFocus event to get rid of these annoying dynamic outlines around a link when I click on it. This is the code I use:<BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">code:</font><HR><pre> <div id="sneaky" style="position:absolute; left:-200px; top:-200px"> <form id="sneaky1"> <input type="text" name="sneaky2"> </form></div><a href="..." onFocus="sneaky1.sneaky2.focus()">[/code] As you can see, I'm redirecting the focus to an input field off the screen. (I'm not the author of this, I found it on the Net) It works fine for my menu but not for pages that scroll! So now I'm looking for an other solution to get rid of these outlines. I'm working with IE5!Can somebody help? Greetz, ARos ![]() |
|
#2
|
|||
|
|||
|
try :
<a href="linkpage.htm" target="_blank" onclick="this.blur()">click here</a> =========================================== <BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">quote:</font><HR>Originally posted by ARos: Hi, I'm using the OnFocus event to get rid of these annoying dynamic outlines around a link when I click on it. This is the code I use:<BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">code:</font><HR><pre> <div id="sneaky" style="position:absolute; left:-200px; top:-200px"> <form id="sneaky1"> <input type="text" name="sneaky2"> </form></div><a href="..." onFocus="sneaky1.sneaky2.focus()">[/code] As you can see, I'm redirecting the focus to an input field off the screen. (I'm not the author of this, I found it on the Net) It works fine for my menu but not for pages that scroll! URL So now I'm looking for an other solution to get rid of these outlines. I'm working with IE5! Can somebody help? Greetz, ARos URL[/quote] |
|
#3
|
|||
|
|||
|
It works (with onClick & onFocus)! Thanks a lot!
ARos ![]() |
|
#4
|
|||
|
|||
|
If you want this for every link, and want to save some code, try:
<script language="Javascript"> <!--// for (i=0;i<document.links.length;i++) { document.links[i].onclick=document.links[i].blur } //--> </script> Place this right before your: </body> tag ------------------ Jason****Contact Me Moderator @ www.wsabstract.com Javascript Request and Installation Help forum |
|
#5
|
|||
|
|||
|
Great! Thanks!
ARos ![]() |
![]() |
| Viewing: Dev Shed Forums > Web Design > HTML Programming > get rid of 'dynamic outlines' around selections |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|