3. SIMPLE CALCULATOR APPLICATION
<html>
<head>
<title>calculator</title>
<script language="javascrit">
function add()
{
var a = document.f.t1.value;
var b = document.f.t2.value;
document.f.t3.value = parseFloat(a)+parseFloat(b);
}
function sub()
{
var a = document.f.t1.value;
var b = document.f.t2.value;
document.f.t3.value = parseFloat(a)-parseFloat(b);
}
function mul()
{
var a = document.f.t1.value;
var b = document.f.t2.value;
document.f.t3.value = parseFloat(a)*parseFloat(b);
}
function div()
{
var a = document.f.t1.value;
var b = document.f.t2.value;
document.f.t3.value = parseFloat(a)/parseFloat(b);
}
</script>
</head>
<body>
<from name="f">
<table width="50%" align="center" bgcolor="pink">
<tr>
<td>
<marquee><h1>using simple calculator</h1></marquee>
</td>
</tr>
</table>
<br>
4. <br>
<table align="center">
<tr>
<td>Enter the first value:</td>
<td><input type="text" size="25"name="6">
</td>
</tr>
<tr>
<td>Enter the second value;</td.
<td><input type="text" size="25" name="t2"></td>
</tr>
<tr>
<td>The resultant value is:</td>
<td><input type="text read only size="25"name="t3">
</td>
<td colspan="2" align="center">
<input type="button" value="ADD" on click="add()">
<input type="button" value="SUB" on click="sub()">
<input type="button" value="MUL" on click="mul()">
<input type="button" value="DIV" on click="div()">
<input type="reset" value="CLEAR">
</td>
</tr>
</table>
</form>
</body>
</html>
6. IMPLEMENTING MOUSE OVER EVENT
<html>
<head>
<title> mouse pointer</title>
<script language="javascript">
function move()
{
Window.open("calculator.html");
}
</script>
</head>
<body>
<center>
<h2>move the mouse pointer over the following tag</h2>
<a href="The page going to the img.html" on mouse over="move();">
click here!</a>
</center>
</body>
</html>
8. AUTOMATIC WINDOW LOADING
<html>
<head>
<title>new window</title>
<script language = "javascript">
{
var a = prompt("enter your HTML programe name","any programe name");
var b = open(a,"win","menubar=no toolbar=no statusbar=no hight=300 width=600");
}
function close()
{
b.close();
}
</script>
</head>
<body onload="set time outc"close()":2000)>
</body>
</html>
10. E-Mail SENDING WEB PAGE
<html>
<head>
<title>my link</title>
</head>
<body width="50" height="50" bgcolor="pink">
<h1><font color="maroon">
<u><l><center> Things to remember</center></l></u>
</font></h1>
<hr width="75%" size="t3"color="blue">
<font face="arial" color="green" size="+1">
Education is the mainfestation of prefection that is already in human. Everybody
wants to go to heaven, but nobody wants to die. Everyday there's sad news but each
day itself is glad news. Every good friend once was a stornger. Everyone hearts what
you say listen to what you say. Every person is a foot in some body's opinion.
Everything is possible, just not too probabke
</font><hr color="blue">
<center><h3>
<a href="mailto : pravin_vinhai@yahoo.com">
click here to send message</a></h3>
</center>
</body>
</html>
15. OWN USING FRAMES
<html>
<frameset rows="70,*">
<frame src="head.html">
<frameset cols="35%,*">
<frame src="sct.html">
<frame src="desc.html">
<frameset></frameset>
</html>
head.html
<html>
<body bgcolor="pink">
<center><h1>Cellphones</h1></center>
</body>
</html>
sct.html
<html>
<body bgcolor="pink">
<center>
<img src="/home/yassir/Desktop/1.jpg">
</cetnter>
</body>
</html>
desc.html
<html> <body bgcolor="pink">
<b><center>HOW IS WONGS:CELLUAR PHONES</center></b><br><br>
<h1> There are two basic types of cellular phones analog and digital by for the phone
that most people(at least in the Usa) HAVE BEEN EXPOSED IS THE ANALOG
ALLURE PHONE HOWEVER THE DIGITAL
IS GROWING IN TERMS OF NUMBERS IN SERVICE AND ANY
DISEVESSION OF HOW CELLULAR PHONE WORK WOULD HER BE
COMPILE WITH AT COVERING ALL THE BASS.</h1>
</body> </html>