Set webpage image hotspot links and coordinate values

Source: Internet
Author: User

Sometimes you need to set several areas on an image. You can click different areas of the image to enter different pages, or click an area of the image to enter a page, this is the hotspot link of the webpage.

 

Note: The usemap attribute in can reference the id or name attribute in <map> (determined by the browser). Therefore, we need to add both the id and name attributes to <map>.

 

So how can we get the coordinate value?

Method 1: Create an html page and insert the following code into the body:

 

Note thatIsmap = 'ismap'", With this attribute, open the html page and move the cursor to any position on the image. The status bar in the lower left corner of the page displays the current coordinate value.

In this way, the coordinate value can be obtained.

Method 2:

Open Dreamwever, create a page, insert an image,

Click "rectangle" or another hotspot tool, and then drag the position on the image.

Then open the code area.

This is all generated.

Related Article

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.