CAM PartA Labmanual
CAM PartA Labmanual
PART A
1. Develop and demonstrate a IlT ML document that illustrates a) Image as a background
b) Hyper link using an image c) Hyperlink with another web page (A, Base, I-Ircf)
d) Link to email address, FTP Websites
PM-A Program-I
<style>
a{color:white;}
Send Email
q'body>
</html>
OUPUT:
GFGC,SHIMOGA. Page 1
COMPUTER MULTIMEDIA AND ANIMATION LAB MANUAL
2. Multimedia: - a) Develop a "eb page to play audio filc using <a>Tag. b) Develop a wcb
page to play video file using <Embcd>Tag.
<head>
<title> video </title>
</html>
OUTPUT:
3. Write a JavaScript program to determine whether a given year is a leap year in the
Gregorian Calendar.
<H EAD>
<TITLE> JavaScript program to check a given year is a leap year r </TITLE>
<body>
Input Year: <input type="text" id="year">
Leap Year">
<input type = "button" id="button" onClick="leapyear()" value="Check
function leapyear()
Page 2
GFGC,SHIMOGA.
COMPUTER MULTIMEDIA AND ANIMATION LAB MANUAL
</script>
</body>
</html>
OUTPUT:
Input Year: 2000
leap year
function temperatureConverter(valNum)
valNum = parseFloat(valNum);
document.getElementById("outputCelsius").innerHTML= (valNum-32)/l .8;
(F-32)/1.8 = C
GFGC,SHIMOGA.
Page 3
COMPUTER MULTIMEDIA AND ANIMATION LAB MANUAL
(valNum I * I .8)+32;
</head>
<body>
<label> Fahrenheit </label>
<input type="number" placeholder="Fahrenheit"
on input="temperatureConverter(this.value)"
onchange="temperatureConverter(this.value)">
OUTPUT:
Fahrenheit 3C
Fahrenheit: 140
GFGC,SHIMOGA. Page 4
COMPUTER MULTIMEDIA AND ANIMATION LAB MANUAL
idth:
height: 100px;
backereund-color:red;
position:relative:
animation-name:evample;
animation-duration:4s:
frames example
top:0px;}
25%{background-color:orange;left:200px; top:0px;}
50%{background-color:green;left:200px; top:200px;}
75%{background-color:blue;left:0px: top:200px;}
100% t top:0px;}
</style>
<body>
<h I>Animat ion</h I >
<div>
<p><b>note:</b>When an animation is finished, it goes back to its original style.</p>
</html>
OUTPUT:
Animation
Page 5
GFGC,SHIMOGA.
COMPUTER MULTIMEDIA AND ANIMATION LAB MANUAL
GFCÆ.SHIMOGA
Page