亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? lesson9.html

?? a collection of mega hacking tools
?? HTML
字號:
<HTML>

<HEAD>

<TITLE>Lesson 9: Creating Image Maps</TITLE>

</HEAD>



<BODY>



<MAP NAME="newmap">

<AREA SHAPE="rect" COORDS="30,30 , 194,69" HREF="../disclaimer.html">

<AREA SHAPE="circle" COORDS="204,106 , 57" HREF="../index.html">

<AREA SHAPE="poly" COORDS="355,108 , 291,174 , 421,174" HREF="../books.html">

<AREA SHAPE="default" NOHREF>

</MAP>



<H2>Lesson 9: Creating Image Maps</H2>



I'll bet you've surfed around the web for a while, and seen more than a few images on a variety of pages. Ever seen one of those images that you can click on different regions of to get to different pages? Think that's cool? In this lesson we'll be learning how to make them!<p>



Any image that is subdivided into regions that point to different pages is called a <i>Image Map</i>. There are two ways that you can put an image map on your page: by using Client Side image maps or Server Side image maps. Client side scripting is when the coordinates for the image map is stored on an HTML page. Server side image maps store the coordinates for the image map on the page's web server. Because Client Side image map's are quicker loading and easier to understand, we will only explain how to implement Client Side image maps.<p>



When we want to create an image map we use the &#60;MAP&#62; tag. The &#60;MAP&#62; tag, when put in the body part of our page, is our way of telling the browser "I'm going to put an image map on this page". The &#60;MAP&#62; tag takes one attribute: the NAME attribute. The NAME attribute gives our image map a name that we can call it with. It's just like calling a dog, you do'nt call it "dog" it's whole life, you name it something like "spot" and call it by name! Our basic &#60;MAP&#62; tag looks like this:<p>



&#60;MAP NAME="newmap"&#62;<p>



Now let's say that I have an image that I want to use on my site as an image map, maybe one that looks something like this:<p>



<IMG SRC="imagemap1.gif"><p>



How do I make it into an imagemap? Well, there's really no physical way to change it into an image map. All that you can do is divide it into areas that link to different pages. We do this by using the &#60;AREA&#62; tag. The &#60;AREA&#62; tag takes three arguments: SHAPE, COORDS, and HREF. SHAPE is easy: it tells the browser what shape the said area is. SHAPE can be given three arguments, "rect" for rectangle areas, "circle" for areas that are circles, and "poly" for polygons that are not rectangles. So far, our &#60;AREA&#62; tag looks like this:<p>



&#60;AREA SHAPE="circle, rect or poly"&#62;<p>



So how do we define the actual coordinates of our shape? As you've probably guessed, we use the COORDS attribute. For a rectangle, we have to pass the COORDS attibute the top left and bottom right  corners of our linking area.<p>



How do we find these coordinates? Most image editing programs, such as <A HREF="http://www.jasc.com">Paint Shop Pro</A> (free to try, my personal favorite!) show you what coordinates you're pointing at on the image. The first coordinate is the "x" or horizontal coordinate, and the second is the "y" or vertical coordinate (just like in algebra class!). I have already opened up my image in Paint Shop Pro and collected that the top left coordinates in the rectangle area of my image (the one surrounding "Disclaimer") are 30 (the "x" coordinate), and 30 (the "y" coordinate). I also got the bottom right coordinates, 194, 69. Now that we've done the hard part (getting the coordinates) all we have to do is pass them to the COORDS attribute. In our area tag, it looks like this:<p>



&#60;AREA SHAPE="rect" COORDS="30,30 , 194,69"&#62;<p>



Whew! That's the most work we've done in this whole tutorial! But we're not done yet, we still need to pass where we want this section of our image to point to.<p>



If we want our rectangle area to point somewhere, we're going to have to use one more attribute: HREF. The HREF attribute simply takes the <i>Hypertext Reference</i> (also called a link) that you want to use in this area as an argument. So our complete &#60;AREA&#62; tag looks like this:<p>



&#60;AREA SHAPE="rect" COORDS="30,30 , 194,69" HREF="../disclaimer.html"&#62;<p>



(Note: Because our Disclaimer page is in the directory above the current one, if we use relative linking we need to add a '../' before our page name.)<p>



So far we've flagged off the rectangular portion surrounding "Disclaimer" in our image to point to the page "disclaimer.html". But what about that circular portion around "Home"? This one's a simple switch, but let's take it one attribute at a time to make sure we get it.<p>



The SHAPE attribute's argument has to change from "rect" to "circle", since we're no longer flagging off a rectangular area and now using a circular area. To get our coordinates, we're going to have to fire up the old graphics editing program. This time there are no corners to find, so we need to get the coordinates of the center of the circle and its radius (in pixels). For those of you who did'nt take geometry in high school (shame on you!) the radius of a circle is the distance from the center of the circle to any point on the edge of the circle. Paint Shop Pro tells me that the center of my circle's coordinate's are 204, 106. It also tells me that the circle's radius is 57. Knowing this, we can change our &#60;AREA&#62; tag to look like this:<p>



&#60;AREA SHAPE="circle" COORDS="204,106 , 57" HREF="../index.html"&#62;<p>



(Note: The "index.html" page, like the "disclaimer.html" page, is in the directory above the current one.)<p>



You may notice that the circle and rectangle overlap a little bit. When there are overlapping area's in an image map, the area that is defined in the source HTML first is considered "on top". So if you click on the overlapping area and our rectangle was the first &#60;AREA&#62; tag in the source HTML, you would be taken to the Disclaimer page.<p>



Wait just one minute! The last area in our image is a triangle? But the SHAPE attribute does'nt take "triangle" as an argument! How do we get around this? With the use of the "poly" argument of course!<p>



The "poly" (or polygon) argument to the SHAPE attribute is used to define areas that are not rectangles or circles. In fact, you can define up to a 100 cornered polygon with the "poly" argument! The poly argument simply takes the coordinates of all the corners in the polygon, and connects them, dot to dot style. Since our lovely triangle has three corners, it has three coordinate pairs: 355,108 (top), 291,174 (bottom left) and 421,174 (bottom right). If we put them into our complete &#60;AREA&#62; tag, it looks like this:<p>



&#60;AREA SHAPE="poly" COORDS="355,108 , 291,174 , 421,174" HREF="../books.html"&#62;<p>



Note that the browser automatically connects the last coordinate pair to the first coordinate pair to complete our polygon.<p>



Now we have a complete image map, but what if we want the parts of our image that do'nt point anywhere yet to lead somewhere? That's where the "default" argument to the SHAPE attribute comes in. We could make "default" point somewhere, like this:<p>



&#60;AREA SHAPE="default" HREF="../magazines.html"&#62;<p>



This would make the area not in the circle, rectangle or triangle point to "magazines.html" in the directory above the current one. But since I do'nt want this part of the image to point anywhere right now, I use the NOHREF attribute, which simply says "no link in this area!".<p>



Our completed image map code looks like this:<p>



&#60;MAP NAME="newmap"&#62;<BR>

&#60;AREA SHAPE="rect" COORDS="30,30 , 194,69" HREF="../disclaimer.html"&#62<BR>

&#60;AREA SHAPE="circle" COORDS="204,106 , 57" HREF="../main.php3"&#62;<BR>

&#60;AREA SHAPE="poly" COORDS="355,108 , 291,174 , 421,174" HREF="../books.html"&#62;<BR>

&#60;AREA SHAPE="default" NOHREF&#62;<BR>

&#60;/MAP&#62;<p>



To put our image map on the page we use an &#60;IMG&#62; tag with the USEMAP attribute. The USEMAP attribute tells the browser "use this image map". In this example, we're going to pass USEMAP the map that we made and named "newmap", like this:<p>



&#60;IMG SRC="imagemap1.gif" USEMAP="#newmap"&#62;<BR>



Where imagemap1.gif is the name of my image. Take a look at how we had to put a "#" in front of the name of our map. This is because when you name a map, you flag it off so we can call it later. The "#" tell's the browser that we're going to be using a certain part of an html page. Knowing this, we can use image maps from other pages like this:<p>



&#60;IMG SRC="imagemap1.gif" USEMAP="lesson9.html#newmap"&#62;<p>



Where lesson9.html (this page) is the page that newmap is on.<p>



Well that was'nt too hard! We've got our image map all divvied up, and it looks like this:<p>



<IMG SRC="imagemap1.gif" USEMAP="#newmap"><p>



Not bad huh? I'll show you even cooler tricks in the <A HREF="lesson10.html">next lesson</A>!<p>



<A HREF="../main3.html">Back to Blacksun's Mainpage</A>



</BODY>

</HTML>

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
激情小说欧美图片| 亚洲一二三区视频在线观看| 欧美精品一卡两卡| 欧美专区在线观看一区| 91传媒视频在线播放| 欧美天堂亚洲电影院在线播放| 在线视频你懂得一区| 欧美综合一区二区| 欧美理论片在线| 日韩手机在线导航| 久久九九全国免费| 亚洲视频每日更新| 日韩精品91亚洲二区在线观看| 日韩成人午夜精品| 国产伦精品一区二区三区视频青涩 | 欧美日韩一区成人| 91超碰这里只有精品国产| 日韩一卡二卡三卡| 国产精品久久久久久亚洲毛片| 一色屋精品亚洲香蕉网站| 亚洲电影在线免费观看| 久久成人麻豆午夜电影| 成人精品gif动图一区| 欧美日韩精品是欧美日韩精品| 欧美成人性战久久| 亚洲人一二三区| 日韩av电影天堂| av电影在线观看完整版一区二区| 日本道在线观看一区二区| 欧美一级高清大全免费观看| 欧美经典一区二区| 一区二区欧美视频| 国产麻豆成人精品| 制服丝袜亚洲播放| 中文字幕在线观看一区| 美脚の诱脚舐め脚责91| 色视频欧美一区二区三区| 日韩三区在线观看| 亚洲精品国产高清久久伦理二区| 久久精品国产999大香线蕉| 91丨九色porny丨蝌蚪| 精品卡一卡二卡三卡四在线| 亚洲视频1区2区| 国产精品羞羞答答xxdd | 欧美aaaaaa午夜精品| 成人动漫一区二区| 日韩美女一区二区三区四区| 国产精品成人一区二区三区夜夜夜| 日韩精彩视频在线观看| 色哟哟日韩精品| 国产精品水嫩水嫩| 国产一区999| 欧美成人一区二区| 日本一区中文字幕| 欧美私人免费视频| 中文字幕一区视频| 高清在线观看日韩| 精品国产三级a在线观看| 亚洲成人777| 欧美日韩一卡二卡| 亚洲一区二区四区蜜桃| 91猫先生在线| 亚洲欧洲制服丝袜| 99国内精品久久| 国产精品传媒视频| 92精品国产成人观看免费| 国产欧美日韩激情| 懂色av一区二区三区免费观看 | 色综合视频在线观看| 国产精品欧美极品| 成人午夜电影小说| 国产亚洲综合色| 成人深夜福利app| 日本一区二区成人在线| 成人性生交大片免费看中文| 国产日产欧美精品一区二区三区| 国产一区视频导航| 国产调教视频一区| 91原创在线视频| 亚洲美腿欧美偷拍| 欧美日韩亚洲综合一区| 水野朝阳av一区二区三区| 制服丝袜成人动漫| 国产一区二区不卡| 欧美国产激情二区三区| 97国产一区二区| 亚洲高清在线精品| 精品sm捆绑视频| 99这里只有久久精品视频| 综合色天天鬼久久鬼色| 欧美精品一级二级三级| 精品在线观看免费| 国产精品乱码人人做人人爱| 色激情天天射综合网| 日韩二区三区在线观看| 久久久久久久久久电影| 色综合久久综合中文综合网| 日本中文一区二区三区| 久久亚洲欧美国产精品乐播| 成人网页在线观看| 亚洲高清视频的网址| 久久综合色8888| 色婷婷久久一区二区三区麻豆| 天堂蜜桃一区二区三区| 国产欧美日韩在线| 欧美日韩免费电影| 国产一区二区女| 亚洲一区免费在线观看| 久久综合av免费| 欧美性大战久久| 成人免费福利片| 久久精品国产亚洲a| 亚洲视频狠狠干| 国产亚洲美州欧州综合国| 欧美日韩国产高清一区二区三区| 国产成人鲁色资源国产91色综| 亚洲国产精品一区二区久久 | 日韩视频一区二区三区在线播放| 不卡一区二区在线| 日韩1区2区3区| 亚洲精选一二三| 久久久久国产精品麻豆| 欧美一区二区三区在线电影| 色综合久久综合网欧美综合网| 捆绑变态av一区二区三区| 一区二区三区**美女毛片| 国产女同性恋一区二区| 欧美草草影院在线视频| 在线观看av一区二区| 国产成人8x视频一区二区| 麻豆精品久久久| 天天操天天色综合| 亚洲一区二区欧美日韩| 亚洲精品日韩综合观看成人91| 国产欧美一二三区| 亚洲精品一线二线三线| 精品日本一线二线三线不卡| 欧美日韩成人综合天天影院| 色婷婷国产精品综合在线观看| 国产福利一区二区三区| 国产综合色视频| 激情久久久久久久久久久久久久久久| 日韩精品一级二级 | 日本系列欧美系列| 亚洲成a人片在线观看中文| 亚洲精品乱码久久久久久 | 亚洲福利电影网| 亚洲一区二区三区中文字幕| 亚洲黄色av一区| 亚洲国产精品一区二区久久| 香蕉成人伊视频在线观看| 日韩二区三区四区| 久久精品噜噜噜成人88aⅴ| 久久精品99国产精品| 国内久久精品视频| 国产成人午夜精品影院观看视频| 国产高清不卡二三区| 成人免费视频免费观看| 91在线播放网址| 欧洲精品在线观看| 7777女厕盗摄久久久| 精品日韩一区二区三区| 久久精品欧美日韩| 亚洲三级免费电影| 亚洲综合在线电影| 日韩激情av在线| 国产在线播精品第三| 成年人国产精品| 欧美四级电影在线观看| 精品国产污污免费网站入口| 国产日韩综合av| 一区二区三区日本| 老司机精品视频在线| 成人午夜短视频| 欧美日韩国产高清一区二区 | 一二三四社区欧美黄| 午夜久久久久久| 国内成人精品2018免费看| jiyouzz国产精品久久| 欧美日韩国产在线播放网站| 精品少妇一区二区三区日产乱码 | 国产乱妇无码大片在线观看| 不卡一区二区在线| 91精品国产91久久久久久一区二区 | 日韩精品专区在线影院重磅| 国产亚洲欧洲997久久综合| 成人欧美一区二区三区小说| 天堂一区二区在线免费观看| 成人在线视频首页| 欧美美女一区二区在线观看| 中文字幕av一区 二区| 天天综合色天天综合| 国产成人免费视频网站| 欧美日韩精品二区第二页| 国产日韩高清在线| 丝袜亚洲另类欧美| 一本色道久久综合亚洲精品按摩 | 成人中文字幕在线| 欧美一区国产二区| 亚洲一区二区三区爽爽爽爽爽|