Tools, FAQ, Tutorials:
Client-Side Image Maps in HTML
What Is a Client-Side Image Map?
✍: FYIcenter.com
A client-side image map is an image defined with the "ismap" attribute
and the "usemap" attribute. When a client-side image map is clicked in a browser window,
the browser will take mouse coordinates and map them to a predefined image map entry,
to retrieve a target URL. The browser will then redirects to that URL.
Here are the rules about "ismap" and "usemap" attributes:
Here is a tutorial example of how to define a client-side image map:
<?xml version="1.0" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title>Client-Side Image Map</title>
</head>
<body>
<h4>Inline Images</h4>
<p style="background-color: #eeeeee; padding: 8px;">
This is a client-side image map test.
Click this image <img src="/moonrise.jpg" alt="Moonrise"
width="69" height="91" ismap="ismap" usemap="#mymap"/>
to see what happens. Use browser back button to come
back.</p>
</body>
</html>
If you save the above document as client_image_map.html, and view it with Internet Explorer, you will see an image. You can click it. But nothing will happen, because there is no map entries defined.
⇐ Server-Side Image Maps in HTML
2017-03-22, ∼2175🔥, 0💬
Popular Posts:
Why am I getting this "Docker failed to initialize" error? After installing the latest version of Do...
How to Install Docker Desktop 2.5.0 on Windows 10? You can follow this tutorial to Install Docker De...
How to use the "send-one-way-request" Policy statement to call an extra web service for an Azure API...
How to include additional claims in Azure AD v2.0 id_tokens? If you want to include additional claim...
How to create the Hello-3.0.epub package? I have all required files to create Hello-3.0.epub. To cre...