...

View Full Version : Can u emove the Dotted Box Around IMG Link when clicked?



Squintz
08-20-2002, 12:56 PM
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

snowtown
08-20-2002, 02:03 PM
Put:

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

in your <a> tag.

Íkii
08-20-2002, 02:07 PM
Or to do the entire page without adding to each anchor tag, you could use


<script language="javascript">
function blurLinks(){
if(document.links)
for(i=0; i<document.links.length; i++)
document.links[i].onfocus=function(){this.blur();}
}
document.onmousedown=blurLinks
</script>

Squintz
08-20-2002, 02:28 PM
Awsome... Thanx for the help



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum