Dec. 05, 2008, 05:28 PM
basically for IE only (Opera fixes this itself, Firefox has other means to fix):
origin: http://codylindley.com/blogstuff/js/dottedfocus.htm
the filter removes the dotted border that would normally be shown such as the below .png...
Code:
Name = "Header Top Add: User JS Code - Hide Link Focus Border {Cody Lindley} [add]"
Active = TRUE
URL = "$TYPE(htm)"
Limit = 16
Match = "(^(^<ProxHdrTop>))$STOP()"
Replace = "<script type="text/javascript">//<![CDATA[\r\n"
"//add event function\r\n"
"function addEvent(obj, evType, fn){\r\n"
" if (obj.addEventListener){\r\n"
" obj.addEventListener(evType, fn, true);\r\n"
" return true;\r\n"
" } else if (obj.attachEvent){\r\n"
" var r = obj.attachEvent("on"+evType, fn);\r\n"
" return r;\r\n"
" } else {\r\n"
" return false;\r\n"
" }\r\n"
"}\r\n"
"\r\n"
"// Find all link elements and add an onfocus attribte and value\r\n"
"function hideFocusBorders(){\r\n"
"var theahrefs = document.getElementsByTagName("a");\r\n"
"if (!theahrefs){return;}\r\n"
"for(var x=0;x!=theahrefs.length;x++){\r\n"
"theahrefs[x].onfocus = function stopLinkFocus(){this.hideFocus=true;};\r\n"
"}\r\n"
"}\r\n"
"\r\n"
"//event added using the addEvent() function above\r\n"
"addEvent(window, 'load', hideFocusBorders);\r\n"
"\r\n"
"//]]>\</script>\r\n"
origin: http://codylindley.com/blogstuff/js/dottedfocus.htm
the filter removes the dotted border that would normally be shown such as the below .png...