Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    Regular Coder
    Join Date
    Jul 2002
    Posts
    226
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Can u emove the Dotted Box Around IMG Link when clicked?

    I want to know if its possible to stop the Dotted rectangle from apearing when you click a Image Link... Specificaly on image Maps...

    Why you ask? I just think it looks un-professional

  • #2
    New Coder
    Join Date
    Jul 2002
    Location
    scandinavia
    Posts
    16
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Put:

    onfocus="if(this.blur) this.blur();"

    in your <a> tag.

  • #3
    Regular Coder
    Join Date
    Jun 2002
    Location
    UK
    Posts
    577
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Or to do the entire page without adding to each anchor tag, you could use

    PHP Code:
    <script language="javascript">
    function 
    blurLinks(){ 
    if(
    document.links
    for(
    i=0i<document.links.lengthi++) 
    document.links[i].onfocus=function(){this.blur();} 

    document.onmousedown=blurLinks
    </script>
     
    Ökii - formerly pootergeist
    teckis - take your time and it'll save you time.

  • #4
    Regular Coder
    Join Date
    Jul 2002
    Posts
    226
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Awsome... Thanx for the help


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •