jQuery 消除連結虛線

如標題 ... 就是消除連結虛線 ...

如標題 ... 就是消除連結虛線 ...

放在<head>標籤內吧 ...

只是要記得 在他前面就要載入jQuery元件

<script type="text/javascript" src="js/JQuery.Intellisense.js"></script>

    <script type="text/javascript">
        $(document).ready(function() { 
            $("a").each(function() {
                var ionFocus = $(this).attr("onFocus");
                if (ionFocus == null) {
                    $(this).attr("onFocus", "this.blur();");
                }
                else {
                    $(this).attr("onFocus", ionFocus + ";this.blur();");
                }
                $(this).attr("hideFocus", "hidefocus");
            });
            $('input[@type="image"]').each(function() {
                var ionFocus = $(this).attr("onFocus");
                if (ionFocus == null) {
                    $(this).attr("onFocus", "this.blur();");
                }
                else {
                    $(this).attr("onFocus", ionFocus + ";this.blur();");
                }
                $(this).attr("hideFocus", "hidefocus");
            });
        });
    </script>