11-09-2011, 05:10 PM
Question 1: (10)
Suppose you have an image mc00000000.jpg (your vu id). You have to create an image map in html by using the given image. The map should have following properties:
1. Use rectangle shape
2. The map area should start from 100 pixels away from top and left border of the image.
3. The height and width of map area should be 100 and 150 pixels respectively.
4. When user clicks on the map area, www. google. com should open in a new window.
[B][size=14]Idea solution code is given[/SIZE]
[HTML]<html>
<title>
It430 assignment no 2
</title>
<body>
<img src="mc090205531.jpg" usemap="#green" border="0">
<map name="green">
<area shape="rect" coords="1,1" href="http://www.google.com">
</map>
</body>
</html>[/HTML]
Question 2: (10)
Suppose you have a media file yourname.mp3 (your name). Your task is to play media file on the html page. The player should have following properties.
1. The height and width should be 50 and 250 pixels respectively.
2. Media file should play automatically on loading the page.
3. File should play using play button after first loop.
[/B]
[size=14]Idea solution for 2nd question[/SIZE]
[HTML]
<html>
<body>
<audio controls="controls" height="50px" width="250px">
<source src="song.mp3" type="audio/mpeg" />
<source src="song.ogg" type="audio/ogg" />
<embed height="50px" width="100px" src="song.mp3" />
</audio>
</body>
</html>[/HTML]
Suppose you have an image mc00000000.jpg (your vu id). You have to create an image map in html by using the given image. The map should have following properties:
1. Use rectangle shape
2. The map area should start from 100 pixels away from top and left border of the image.
3. The height and width of map area should be 100 and 150 pixels respectively.
4. When user clicks on the map area, www. google. com should open in a new window.
[B][size=14]Idea solution code is given[/SIZE]
[HTML]<html>
<title>
It430 assignment no 2
</title>
<body>
<img src="mc090205531.jpg" usemap="#green" border="0">
<map name="green">
<area shape="rect" coords="1,1" href="http://www.google.com">
</map>
</body>
</html>[/HTML]
Question 2: (10)
Suppose you have a media file yourname.mp3 (your name). Your task is to play media file on the html page. The player should have following properties.
1. The height and width should be 50 and 250 pixels respectively.
2. Media file should play automatically on loading the page.
3. File should play using play button after first loop.
[/B]
[size=14]Idea solution for 2nd question[/SIZE]
[HTML]
<html>
<body>
<audio controls="controls" height="50px" width="250px">
<source src="song.mp3" type="audio/mpeg" />
<source src="song.ogg" type="audio/ogg" />
<embed height="50px" width="100px" src="song.mp3" />
</audio>
</body>
</html>[/HTML]

mileys15: