How To Do Everything With Html Xhtml [Electronic resources] نسخه متنی

اینجــــا یک کتابخانه دیجیتالی است

با بیش از 100000 منبع الکترونیکی رایگان به زبان فارسی ، عربی و انگلیسی

How To Do Everything With Html Xhtml [Electronic resources] - نسخه متنی

James H. Pence

| نمايش فراداده ، افزودن یک نقد و بررسی
افزودن به کتابخانه شخصی
ارسال به دوستان
جستجو در متن کتاب
بیشتر
تنظیمات قلم

فونت

اندازه قلم

+ - پیش فرض

حالت نمایش

روز نیمروز شب
جستجو در لغت نامه
بیشتر
لیست موضوعات
توضیحات
افزودن یادداشت جدید








Quick Reference: Image Maps


Image maps are fun to create and can give you a real feeling of accomplishment the first time you see them working on your Web site. However, that feeling of accomplishment should not be allowed to cloud some of the problems that come along with image maps. Don’t allow yourself to get so carried away with the fun of creating image maps that you forget why they’re on your page—to help people find their way around. Make sure that your image maps are easy to understand and always provide an alternate, text-based means of navigation. The following table will help you remember the details of creating image maps:










































To Do This




Use This




Define a client-side image map



<map> </map>



Assign a name to your map



<map name="mymap"> (deprecated) or


<map id="mymap">




Specify coordinates for hotspots on a client-side image map



<map id="mymap">


<area />


</map>




Specify the type of shape you are mapping




<area shape=“polygon” />


(or circle or rectangle)




Specify coordinates for a rectangle




<area shape=“rectangle” coords=“x, x, x, x” />


Plot the coordinates for the upper-left and lower-right corners




Specify coordinates for a circle




<area shape=“circle” coords=“xx, xx, xx” />


Plot the coordinates for the center of the circle (first two numbers); then do the same for the radius




Plot the radius of a circle




Find the coordinate at the middle-left side of the circle.


Repeat for the middle-right side


Subtract the smaller number from the larger


Divide the result in half




Specify coordinates for a polygon




<area shape=“polygon” coords=“x,x, x,x, x,x, x,x “/>


Start at the upper-left point and move clockwise, plotting the coordinates at angles and direction changes




Specify the image you want to use for


your image map



<img src="/image/library/english/
10231_/image/library/english/
10231_image.gif" usemap="mymap" />



Use your web browser to plot coordinates for an image map




<a href=">


<img src="/image/library/english/
10231_/image/library/english/
10231_image.gif" ismap="ismap" />


</a>






/ 126