In HTML, how to remove the border from the area in the map

Source: Internet
Author: User

HTML code


<map name= "Safemap" id= "Safemap" >
<area shape= "rect" coords= "4,191,156,233" href= "http://www.cadf.org.cn/" target= "_blank"/>
<area shape= "rect" coords= "163,191,320,233" href= "http://hk.shmzj.gov.cn/" target= "_blank"/>
<area shape= "rect" coords= "322,191,480,233" href= "http://www.yintongcard.com/ytcard/zh_CN/index.html" target= "_ Blank "/>

<area shape= "rect" coords= "4,240,156,282" href= "http://cn.unionpay.com/" target= "_blank"/>
<area shape= "rect" coords= "163,240,320,282" href= "http://www.chinaums.com/" target= "_blank"/>
<area shape= "rect" coords= "322,240,480,282" href= "http://www.chinapay.com/" target= "_blank"/>

<area shape= "rect" coords= "4,291,156,333" href= "http://www.cpic.com.cn/cpic/index.shtml" target= "_blank"/>
<area shape= "rect" coords= "164,291,321,333" href= "http://www.pingan.com/index.shtml" target= "_blank"/>
<area shape= "rect" coords= "327,291,480,333" href= "http://www.spdb.com.cn/" target= "_blank"/>
</map>

Effect:

Problem:

When you move the mouse over the area of the map, a blue border will appear when the mouse clicks down.

Scheme:

Add onfocus= "blur (this) to the <area> tag where you want to remove the border.

Analysis: The onfocus event occurs when the object receives focus, so blur (this) loses focus on the current object. The blue border that appears when the mouse is pressed is the focus line.

Note: Generally for the appearance of the page and the effect of the same, to remove the effect of this HTML tag comes with. However, usually, try not to deliberately remove.

If you want to add to each aera, only use JS to do a bit of processing

$ (function () {

$.each ($ ("#safeMap area"), function (I,val) {
$ (val). attr ({"onfocus": "Blur (This)"});

})

})

In HTML, how to remove the border from the area in the map

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.