Page 61 - DCAP202_Fundamentals of Web Programming
P. 61

Fundamentals of Web Programming




                    Notes          width=”225"  height=”151"  border=”0"
                                   alt=”Mueller  Hut,  Mount  Cook,  and  I”
                                   usemap  =”#muellermap”  />
                                   <map  id  =”muellermap”
                                   name=”muellermap”>
                                     <area  shape  =”rect”  coords  =”90,80,120,151"
                                     href  =”javascript:alert(‘Me’);”  target=”_blank”  alt=”Me”  />
                                     <area  shape  =”poly”  coords  =”55,55,120,80,90,80,90,100,70,100,20,80,55,55"
                                     href  =”http://en.wikipedia.org/wiki/Mount_Cook”  target=”_blank”  alt=”Mount
                                   Cook”  />
                                     <area  shape  =”poly”  coords  =”145,80,145,100,215,90,215,80,180,60,145,80"
                                     href  =”http://www.natural-environment.com/places/mueller_hut.php”
                                   target=”_blank”  alt=”Mueller  Hut”  />
                                   </map>
                                   In our example, we use the <area> tag in conjunction with the shape and coord attributes. These
                                   accept the following attributes:

                                    shape   Defines a shape for the clickable area. Possible values:
                                             default
                                             rect
                                             circle
                                             poly

                                    coords   Specifies the coordinates of the clickable area. Coordinates are specified as follows:
                                             rect: left, top, right, bottom
                                             circle: center-x, center-y, radius
                                             poly: x1, y1, x2, y2, ...

                                   5.3.8 Sending e-mail to Specific Link Address


                                   Having a link that allows visitors to send email from your website can be a great addition to
                                   your site, making it easy for your visitors to send questions or comments. There is a special link
                                   for this action.
                                   Email links are done much the same as links to other pages, using the <a href> tag.
                                   An email link would require the following code:
                                          <a  href=”mailto:youremailaddress”>Email  Me</a>
                                   This will result in the visitor’s email program opening a new email with your address already
                                   in the To: field.

                                   If you wish to have a specific subject in the email, you can add it to the html code using subject=
                                   setting :
                                     <a  href=”mailto:email@echoecho.com?subject=SweetWords”>  Send  Email</a>
                                   Suppose you want an email link for your visitors containing specific text in the body of their
                                   message, simply add &body=:
                                   <a href=”mailto:email@echoecho.com?body=Please send me a copy of your new program!”>Send
                                   Email</a>







          54                                LOVELY PROFESSIONAL UNIVERSITY
   56   57   58   59   60   61   62   63   64   65   66