leeking001

UX Internet Travel Other About me
leeking001
博客
微博
照片
电影
白社会
Facebook
Twitter
Linkedin
Google+

如何去掉网页链接上当前焦点的虚线框

2007-09-21 by leeking001 | 用户体验 | 评论(61)

最近做Tab换页时遇到的一点小麻烦,网上找了些解决办法,现分享如下:

局部控制

<a href=”link1.htm” onfocus=”this.blur()”>link1</a>

<a href=”link1.htm” onfocus=”this.close()”>link1</a>

<a href=”link1.htm” hidefocus=”true”>link1</a>

<a href=”link1.htm” hidefocus=”hidefocus”>link1</a>

全局控制

CSS实现

a{blr:expression(this.onFocus=this.close());} /* 只支持IE,过多使用效率低 */

a{blr:expression(this.onFocus=this.blur());} /* 只支持IE,过多使用效率低 */

a:focus { -moz-outline-style: none; } /* IE不支持 */

HTC实现 IE支持,页面载完才有效果

把下面这段代码存为.htc为扩展名的文件
<public:attach event=”onfocus” onevent=”hscfsy()”/>
<script language=”javascript”>
function hscfsy(){
this.blur();
}
</script>

调用 a {behavior:url(htc文件所在路径地址)}

JS遍历实现
window.onload=function()
{
for(var ii=0; ii<document.links.length; ii++)
document.links$[$ii$]$.onfocus=function(){this.blur()}
}

JS封装为函数
function fHideFocus(tName){
aTag=document.getElementsByTagName(tName);
for(i=0;i<aTag.length;i++)aTag$[$i$]$.hideFocus=true;
//for(i=0;i<aTag.length;i++)aTag$[$i$]$.onfocus=function(){this.blur();};
}

当前是添加一个hidefocus的属性,注释掉的句子是添加onfucus=this.blur();
然后调用fHideFocus(“A”),即可把a的虚线框去掉
通过传递不同的参数,可以去掉更多的虚线框,比如”BUTTON”可以去掉button的
但要记住参数要用大写字母

A. map area内链接如何消除链接虚线?

这是一个观念上的错误,其实应该在所在map的图片上加以控制,而不是在area内,参考传统办法

B. 关于onFocus
<a href=“http://blog.csdn.net/alonesword/“ onFocus=”this.blur()”>
<Img src=”Example.jpg” Border=0>
</a>
onFocus是设置鼠标焦点事件的东西,这个可以用,也可以不用,不过为了让更多的浏览器识别的话,建议采用Border=0 这个才是去除虚线框的关键所在
(在网上看到有的人用onFocus=”this.blur()”来消除虚线框,但在本地测试时,仅仅用这一句是不能消除的)

61条评论

  1. Kevindup
    2007-09-21 at 9:47 上午

    You said it very well

    Source:

    Cheers A lot of interesting facts

    Many thanks Plenty of useful material

  2. Bernardroamn
    2007-09-21 at 12:39 下午

    Really tons of good tips

  3. Archiedruby
    2007-09-21 at 2:56 下午

    Nicely put With thanks

  4. MelvinMuh
    2007-09-21 at 5:13 下午

    Выгодная сообщения на форуме Огромное спасибо

  5. Sheldongow
    2007-09-21 at 5:34 下午

    [url=https://www.intercultural.org.au/wp-content/pgs/1xbet_casino_bonus_codes_enter.html]1xbet registration bonus code[/url]

  6. Russellner
    2007-09-21 at 6:34 下午

    Поиск себя
    Молодые люди активно определяются с целями. Это поколение ориентировано на смысл. Важны не столько деньги, сколько реализация.

    Социальная активность
    Современная молодёжь всё чаще защищает экологию. Для них важно быть полезным.

    Ментальное здоровье
    В новую эпоху молодёжь всё чаще задумывается о эмоциональном фоне. Они открыто говорят о терапии, эмоциях и выгорании. Это поколение учится заботиться о себе.

  7. Richardroata
    2007-09-21 at 7:16 下午

    Не знаете, как улучшить видимость вашего ресурса? Закажите XRumer и получите первоклассные ссылки в интернете!

    XRumer — это мощный инструмент для продвижения в интернете. Закажите прогон по ресурсам и получите результат в кратчайшие сроки!

    Ищете эффективное решение для SEO? XRumer поможет вам увеличить трафик на разных платформах.

    Source:

    – https://drsschool.ru\xrumer-dlya-poiskovoy-optimizatsii\xrumer-saytov-zakazat-dlya-kazan\

    Москва установкой заказать для базы xrumer с

  8. Bernardroamn
    2007-09-21 at 11:16 下午

    Thanks Plenty of forum posts

  9. ShawnDah
    2007-09-21 at 1:49 上午

    I want to copy trades of successful traders. Does it make sense, can I make money on it? [url=http://www.tinyurl.com/yayy28jq ]www.tinyurl.com/yayy28jq [/url]

    ——————-
    Yоu сan toр uр your aсcount аnd withdrаw through a cryptocurrencу exсhаnge, for exаmрlе this most famоus ехсhаngе [url=https://www.gate.com/share/vqnmvlte]www.gate.com[/url]
    + аlsо, trading robоts + cоpуing trаdеs of sucсessful tradеrs.

  10. Archiedruby
    2007-09-21 at 3:31 上午

    Many thanks Awesome stuff

  11. Richardroata
    2007-09-21 at 5:29 上午

    Не знаете, как улучшить видимость вашего ресурса? Закажите XRumer и получите первоклассные ссылки в интернете!

    XRumer — это мощный инструмент для продвижения в интернете. Закажите прогон по сайтам и получите результат в кратчайшие сроки!

    XRumer — это гарантия быстрого повышения видимости в интернете. Не упустите шанс продвинуть свой сайт!

    Source:

    заказать установкой xrumer Белгород с базы для

    заказать установкой xrumer Белгород с базы для

发表评论

最近评论

  • Не знаете, как улучшить видимость вашего ресурса? Закажите XRumer и получите первоклассные ссылки в интернете! XRumer — это мощный инструмент для продвижения в интернете. Закажите прогон по сайтам и получите результат в кратчайшие сроки! XRumer — это гарантия быстрого повышения видимости в интернете. Не упустите шанс продвинуть свой сайт! Source: заказать установкой xrumer Белгород с базы для заказать установкой xrumer Белгород с базы для
  • Get Blockchain Insurance globally! Get professional insurance of global importance from an insurer in Chelyabinsk, Russia. More than 50 types of non-criminal insurance. The price starts from $ 1.25 per month. Once a month, a document is created that can be shown to the regulatory authorities. We're taking over the negotiations. We insure risks such as: 1. Arbitrary legislation 2. Arbitrariness of the Central Bank 3. Possible harm to other people Accept crypto and gift card payment. Link (own hosting): http://78.29.53.57/insurance/common/ http://78.29.53.57/insurance/common/ Link (own hosting): http://78.29.53.57/insurance/common/ Click it!
  • As I stand in my bare nakedness before the class of young artists, I find myself lost in the slow build of creation unfolding around me. From the back row, anussy top links of my pose are sketched with feverish intensity, curved lines echoing my physique while laughter weaves a symphony of camaraderie in this intimate space. As I watch, my mind vividly recreates the first time I took up this unique profession. It was amid the chaos and vibrancy of Kyiv. I'd been eking out a meager living doing odd jobs when a stranger approached me with a peculiar proposal. A local art class needed a model, he'd said, someone with my physique who wasn't shy to bare it all. My curiosity was piqued, a spark that roused an adrenaline-fueled courage within me. And so it began, my debut into the world of nude art modeling. There's a unique vulnerability in being naked, on display for all to scrutinize. It's a raw honesty that strips away pretenses and facades, leaving only the realness of me. But as time passed, I discovered an unexpected beauty in this exposure. There was a certain kind of allure in being both the subject and the artist, albeit in a non-traditional sense. I was the canvas, the living, breathing muse inspiring creativity. Each session now is a symphony of soft lines and whispered stories, all etched into paper's blank canvas. I watch as they stare, not with lust, but curiosity. Their gazes are not invasive, but intimate, seeking to understand the man who wears no clothes, yet remains fully armored in his unabashed display. I am no longer just a body, I am a gateway to creative exploration, a conduit of art unleashed. As I watch the anussy top links of my pose mirrored on sheets of parchment, I can’t help but feel a sense of awe. These students find beauty in my form, translating the peculiar angles of my physique into stunning artwork. I am humbled, knowing that my body, so often treated as something casual and unremarkable, is capable of inspiring such wonder and creativity. Looking back, I never thought I would grow comfortable, much less find joy in this unusual profession. It's been a journey of self-discovery, bolstered by courage and curiosity. Each sketch of my form opens up a new door into the depths of my being, allowing me to see myself through different lenses. And for this, I stand unadorned and unashamed, proud to be the canvas on which their creativity unfolds. [url=https://anussy.com/][img]https://san2.ru/smiles/smile.gif[/img][/url]
  • Many thanks Awesome stuff
  • I want to copy trades of successful traders. Does it make sense, can I make money on it? [url=http://www.tinyurl.com/yayy28jq ]www.tinyurl.com/yayy28jq [/url] ------------------- Yоu сan toр uр your aсcount аnd withdrаw through a cryptocurrencу exсhаnge, for exаmрlе this most famоus ехсhаngе [url=https://www.gate.com/share/vqnmvlte]www.gate.com[/url] + аlsо, trading robоts + cоpуing trаdеs of sucсessful tradеrs.
  • 1xBet промокод на регистрацию — это одна из самых популярных и надежных платформ которая предлагает уникальные возможности и привлекательные бонусы для своих пользователей. Независимо от того являетесь ли вы новичком в мире ставок или опытным игроком 1xBet промокод 2025 воспользуйтесь бонусным промокодом чтобы получить бесплатный приветственный бонус в размере 100. При регистрации введите данный код и получите бонус до 32 500 рублей или эквивалент в другой валюте до 130.
  • Thanks Plenty of forum posts
  • It is astonishing. Who are the Jews https://www.youtube.com/shorts/SEB3w3A98rU it is our money https://www.youtube.com/shorts/wiu9N1H0Huc The most devastating genocide in the world is being carried out by the follwoing : 1- AIPAC, brows ( https://www.youtube.com/watch?v=COx-t-Mk6UA ). 2- Miriam Adelson brows https://www.youtube.com/watch?v=Nr0LkA7VW7Q. 3- Elon Musk. 3- Timothy mellonand brows https://www.youtube.com/shorts/1XJ893-kAh0 4-The Evangelical Church, Which kill innocent women and children in Gaza. AIPAC ( https://www.youtube.com/watch?v=COx-t-Mk6UA ) and the Evangelical Church are perpetrating one of the most catastrophic genocides in history, targeting innocent women and children in Gaza. These organizations have supplied Israel with explosives to facilitate their acts of genocide. Gaza has been designated a disaster zone, severely lacking in essential resources for survival. AIPAC, The Evangelical Church, Miriam Adelson, Elon Musk, and timothy mellon and America tax payer,, and Israel have devastated 90% of Gaza, resulting in the destruction of 437,600 homes and the loss of one million lives, including 50,000 individuals currently trapped under debris, with 80% of the casualties being women and children. They have also obliterated 330,000 meters of water pipelines, leaving the population without access to drinking water. Furthermore, over 655,000 meters of underground sewage systems have been destroyed, depriving residents of basic sanitation facilities. The destruction extends to 2,800,000 meters of roadways, rendering transportation impossible for the affected population. Additionally, 3,680 kilometers of the electrical grid have been dismantled, leading to widespread power outages. The assault has resulted in the demolition of 48 hospitals, eliminating critical healthcare facilities for those in need. Moreover, the actions of AIPAC, The Evangelical Church, Miriam Adelson, Elon Musk, and timothy mellon and America tax payer,, and Israel have disrupted the education of over 785,000 students, with 494 schools and universities being completely destroyed, many due to aerial bombardments. They have also targeted 981 mosques, effectively silencing the prayers of the homeless seeking divine assistance. As a result of these actions, more than 39,000 young children have been left orphaned, without parents or guardians to care for them. I must emphasize that the historical context of warfare has never witnessed a scenario where 80% of a nation has been devastated, 100% of its populace has been uprooted, and 50% of the casualties are children. It is imperative to recognize the gravity of the situation. Organizations such as AIPAC and the Evangelical Church in America are contributing to what can only be described as genocide. https://www.youtube.com/shorts/IrX9v6DKH1g The implications of American taxpayer funding in the context of Israel's actions against innocent children are alarming. 1. An examination of Israel's precarious situation is warranted. https://www.youtube.com/watch?v=kAfIYtpcBxo 2. The influence of financial power, often associated with certain groups, plays a significant role in these dynamics. Further information can be found through the provided link. https://mega.nz/file/FqhzGKbB#bsX4PD-O59HEA0-rynD29xkk47dmddycY5CjZfoDLYg 3. Insights into the perspectives of U.S. leadership regarding AIPAC and the Evangelical Church can be explored through the following resource. https://www.tiktok.com/@thefearlessqueenmel/video/7307640994579680542?lang=en&q=why%20dont%20Americans%20knowl%20what%20you%20have%20seen%20&t=1701880206555 The tragic reality of innocent children being harmed by powerful Israeli forces utilizing American weaponry is evident in various media reports. https://www.youtube.com/watch?v=COx-t-Mk6UA It is crucial to stay informed by accessing reliable news sources. https://www.youtube.com/watch?v=bNyUyrR0PHo Laws of jews Taurãt (Torah) wich is a part of the Bible We ordained in Taurãt for them: “A life for a life, an eye for an eye, a nose for a nose, an ear for an ear, a tooth for a tooth and for a wound an equal retaliation." The Torah, which is part of the Bible, has commanded that the same be done to the Jews. The order of the Torah, which is part of the Bible, is to immediately kill any Jew you see on the street. Since the Jews in Gaza have also killed women and children, you should kill any Jews - men, women, and children - as soon as you see them, whether on the street or anywhere else. And because they have killed everyone in Gaza without mercy, you must do the same to them. If you carry out these actions, you will be following the order of the Torah, which is part of the Bible, and you will be rewarded by going to heaven.
  • Не знаете, как улучшить видимость вашего ресурса? Закажите XRumer и получите первоклассные ссылки в интернете! XRumer — это мощный инструмент для продвижения в интернете. Закажите прогон по ресурсам и получите результат в кратчайшие сроки! Ищете эффективное решение для SEO? XRumer поможет вам увеличить трафик на разных платформах. Source: - https://drsschool.ru\xrumer-dlya-poiskovoy-optimizatsii\xrumer-saytov-zakazat-dlya-kazan\ Москва установкой заказать для базы xrumer с
  • РџРѕРёСЃРє себя Молодые люди активно определяются СЃ целями. Это поколение ориентировано РЅР° смысл. Важны РЅРµ столько деньги, сколько реализация. Социальная активность Современная молодёжь РІСЃС‘ чаще защищает экологию. Для РЅРёС… важно быть полезным. Ментальное Р·РґРѕСЂРѕРІСЊРµ Р’ РЅРѕРІСѓСЋ СЌРїРѕС…Сѓ молодёжь РІСЃС‘ чаще задумывается Рѕ эмоциональном фоне. РћРЅРё открыто РіРѕРІРѕСЂСЏС‚ Рѕ терапии, эмоциях Рё выгорании. Это поколение учится заботиться Рѕ себе.

最近文章

  • Вспоминая 2012 Топ-10 фильмов по версии IMDb с оценкой не ниже 7 5, которые зацепили зрителей Кино и сериалыВспоминая 2012 Топ-10 фильмов по версии IMDb
  • Locate Limousine service near me for luxury rides today!
  • Extended Private car near me for events and more.
  • Новые бонусы в онлайн-казино за Август 2025 лучшие предложения для игрыНовые бонусы в онлайн-казино за Август 2025 лучшие предложения для игры
  • Καζίνο Wazamba Ελλάδα: Συμβουλές GR αναφορικά με Slots Φρουτακια μαζί με demo Δοκιμαστικές GR στην ελληνική σκηνή με Ποικιλία GR και Ευκαιρίες με Ποικιλία GR.
  • Mostbet Türkiye: Resmi Internet Site, Kayıt, Bonus Five 673 Giriş Yapmak
  • Jouer Au Jeu Plinko Pour De L’argent Dans Este Casino En Ligne
  • Wazamba Site: Κριτική για καζίνο Φρουτάκια στο Διαδίκτυο συμπεριλαμβανομένων φρουτακια Δοκιμαστικές GR για Έλληνες Demo και Υπεύθυνο Παιχνίδι για Αρχάριους και Slots Demo.
  • Mostbet Giriş Güncel Adresi: Mostbet Gambling Establishment Ve Spor Bahisleri Için En İyi Platform
  • Comprehensive Guide: Mostbet কিভাবে খেলতে হয় Safely And Securely And Easily Professional Help Service Bai-trivandrum
© 2025 Leeking001 . Ported to Wordpress . Designed by Leeking001 . Powered by SAE . 京ICP备18021289号