11
ii)Server side image map
Server side image map is an image map run by common gateway interface. simply put the image
inside a hyper link and use ismap attribute which makes it special image and when the user clicks some
place within the image, the browser passes the coordinates of the mouse pointer along with the URL
specified in the <a> tag to the web server.
The server uses the mouse-pointer coordinates to determine which document to deliver back to the
browser.
<a href=‖url address‖>
<img src=‖peacock.jpg‖ width=‖200‖
height=‖250‖is map>
</a>
The coordinates of the mouse position are screen pixels counted from the upper-left corner of the image,
beginning with (0,0).
Example
<html>
<body>
<a href="f/cse.jpg " target="_self">
<img ismap src="d/images/logo.png" alt="Tutorials Point" border="0"/>
</a>
</body>
</html>
(OR)
19.(b). (i) Explain about cookies.[5]
Cookies
Cookies are information , stored in a small files on our browser. It contains some data.
1. A name-value pair containing the actual data
2. An expiry date after which it is no longer valid
3. The domain and path of the server it should be sent to
When a user visit a web page, his username stored in a cookie. Next time user visit a web page ,
the cookie just remember his username
Cookies contains the following components.
i) name -Cookies are set and retrieved in the form of key-value pairs
ii) expires -The date the cookie will expire. If this is blank, the cookie will expire when the visitor
quits the browser.
iii) Domain − The domain name of your site.
iv) Path − The path to the directory or web page that set the cookie
v) Secure − If this field contains the word "secure", then the cookie may only be retrieved with a
secure server. If this field is blank, no such restriction exists.
vi) Name=Value − Cookies are set and retrieved in the form of key-value pairs
Use of cookies
1. Web servers to perform functions such as tracking information about user visits to websites.
2. it is used to store information between web pages
3. The main use of the cookie is to identify the user and customize web page for them according
to the information stored in the cookie
19.
(b) (ii) Array objects in javaScript
.[5]
An array object stores multiple values in a single variable. An array is used to store a collection of
data, but it is often more useful to think of an array as a collection of variables of the same type.
Syntax