Beruflich Dokumente
Kultur Dokumente
<!--PSEUDO ELEMENTS-->
<html>
<head>
</head>
<style type="text/css">
body
margin:0.5in;background-color:white
ul
list-style-image:url(E:\karthi\web\emperor\23.gif);
list-style-position:outside;padding-left:20
pre
font-family:arial;color:red;background-color:yellow
color:red;
clear:left
a:link
color:lime
}
a:visited
color:firebrick
a:active
color:yellow
p.firsttype:first.letter
color:red
p.firsttype:first-line
font-variant:small-caps
</style>
<body>
<p style="white-space:pre">
</p>
<ul>
<pre>
<li> lists
<li> headers
<li> images
<li> paragraphs
<li> tables
</pre>
</u>
<p>
</p>
</body>
</html>
OUTPUT:
RESULT:
<html>
<head>
<title>table examples</title>
</head>
<body>
<form>
information:</caption>
<tfoot>
<tr>
<td> </td>
<td>
</td>
<td>
</td>
<td></td>
</tr>
<tbody>
</tr>
</tr>
<tr>
<td>
<select name="colors">
<option value="w1">white/black
<option value="wb">white/blue
<option value="ar">aqua/rust
</select>
</td>
<td>
<select name="colors2">
<option value="w1">white/black
<option value="wb">white/blue
<option value="ar">aqua/rust
</select>
</td>
</tr>
<tr>
</td>
</td>
</tr>
</table>
</form>
</body>
</html>
OUTPUT:
RESULT:
<html>
<frameset rows="*,80">
</frameset>
</html>
<html>
<head>
<style type="text/css">
body{background-color:white}
#heading{color:yellow;position:absolute;left:15;top:10;font-size:24pt}
#heading2{color:black;position:absolute;left:17;top:12;font-size:24pt}
</style>
<script language="javascript1.2">
<!--
//change layer to reflect image map mouse position function change content(item){
parent.workFrame.document.content.document.write(string);
parent.workFrame.document.content.document.close();
//-->
</script>
<script language="javascript">
<!--
//change layer to reflect image map mouse position function change content(item){
parent.workFrame.content.innerHTML=string;
//-->
</script>
</head>
<body>
<map name=menu>
('help')">
</map>
<span id="heading">welcome</span>
<span id="heading2">welcome</span>
</html>
<!--main frame page main2.htm-->
<html>
<head>
<style type="text/css">
body{ background-color:black;color:yellow;
h2{color:lime;font-size:48pt;
font-family:cursive;font-style:italic
</style>
</head>
<body>
<h1>main body</h1>
<h1>starting contents</h1>
</div>
</body>
</head>
</html>
OUTPUT:
RESULT:
<html>
<head>
<title>multimedia</title>
</head>
<body>
<h1>shelly's first</h1>
</td><td width=50%>
</object>
</td><td width=40%>
</td><tr>
<tr><td colspan=3>
</td></tr>
</table>
</body>
</html>
OUTPUT:
RESULT:
Thus the html program for displaying multimedia elements has been
executed successfully and the result is displayed.
PROGRAM:
<!—EMBEDDED OBJECTS-->
<html>
<head>
<title>MULTIMEDIA</title>
<style type="text/css">
h1
color:red;
text-align:center;
</style>
</head>
<body>
<object classid="CLSID:05589FA1-C356-11CE-BF01-00AA0055595A"
style="position:absolute;left:35%;top:100">
</object>
</body>
</html>
OUTPUT:
RESULT:
Thus the html program for displaying embedded objects has been executed
successfully and the result is displayed.
PROGRAM:
<!—CREATING A FORM-->
<html>
<head>
<title>TEXT CONTROLS</title>
<style type="text/css">
#formlayout
background-color:aqua;
padding:10;position:absolute;left:10;top:10;width:600
TD.label
width:150;text-align:right;color:red;font-family:Univers;
font-size:18pt
TD.control
text-align:left
INPUT
color:red;font-family:Cursive;
font-style:italic;
font-size:14pt
</style>
</head>
<body>
<!--form 1-->
<DIV id="formlayout">
<!--first row-->
</LABEL></a></td>
<td class=control>
</td></tr>
<!--Second row-->
<tr><td class=label>
</LABEL></a></td>
<td class=control>
style="color:maroon;font-family:sans-serif;font-variant:small-caps">
</TEXTAREA>
</td></tr>
<!--Third row-->
<tr><td class=label>
</LABEL></td>
</td>
<td class=control>
</td></tr>
<!--Fourth row-->
<FIELDSET>
</FIELDSET>
</td></tr>
</FORM>
</DIV>
</BODY></html>
OUTPUT:
RESULT:
Thus the program to display page elements has been executed successfully.
PROGRAM:
<head>
<title>simple multiplication</title>
<script type="text/javascript">
function multiply()
var number_one=document.the_form.field_one.value;
var number_two=document.the_form.field_two.value;
var result=number_one*number_two;
alert(number_one+"times"+number_two+"is:"+result);
</script>
</head>
<body>
<form name="the_form">
multiply them!</a>
</form>
</body>
</html>
OUTPUT:
RESULT:
Thus the java script program for multiplying two numbers executed
successfully.
PROGRAM:
<!—FORM FOR ORDERING PRODUCTS ONLINE-->
<HTML>
<HEAD>
</HEAD>
<BODY>
<HR>
<FORM NAME="OrderForm">
<TR>
<TD><I>First Name</I></TD>
<TD>
</TD>
</TR>
<TR>
<TD><I>Last Name</I></TD>
<TD>
</TD>
</TR>
<TR>
<TD><I>Street Address</I></TD>
<TD COLSPAN="3">
</TD>
</TR>
<TR>
<TD><I>City</I></TD>
<TD>
</TD>
<TD><I>State</I></TD>
<TD>
</TD>
<TD><I>ZIP</I></TD>
<TD>
</TR>
</TABLE>
<p>
<CENTER>
</CENTER>
<p>
<p>
<SELECT NAME="OrderItem">
</SELECT>
<p>
<OPTION VALUE=2>Two
<OPTION VALUE=3>Three
</SELECT>
<p>
onfocus="totalOrder(this.form) ";>
<HR>
<p>
</FORM>
<SCRIPT LANGUAGE="JavaScript1.1">
<!--
function notify() {
function totalOrder(form) {
var x = form.OrderItem.options[form.OrderItem.selectedIndex].value;
var y = form.Quantity.options[form.Quantity.selectedIndex].value;
form.Total.value = due;
//-->
</SCRIPT>
</BODY>
</HTML>
OUTPUT:
RESULT:
Thus the form for ordering products in online as been executed successfully.
PROGRAM:
<html>
<head>
<script type="text/javascript">
function checkMandatoryFields()
if(window.document.the_form.the_text.value=="")
if(window.document.the_form.state.selectedIndex<0)
var radio_selected="false";
index++)
radio_Selected="true";
} }
if(radio_Selected=="false")
if(error_Message==" ")
return true;
else
alert(error_Message);
return false;
} }
</script>
</head>
<body bgcolor="lightblue">
<tr>
<td><b>name:</b></td>
</tr>
<tr>
<td><b>State:</b></td>
<td>
<option value="andra">andrapradesh</option>
<option value="bihar">bihar</option>
</select>
</td> </tr>
<tr>
<td><b>Gender:</b></td>
<td>
</td></tr>
<tr>
</tr>
</table>
</form>
</body>
</html>
OUTPUT:
RESULT:
Thus the java script for form validation has been executed successfully.
PROGRAM:
<head>
<style>
body
background-color:white
h1
font-size:30pt;
font-weight:bold;
color:red
h2
font-size:18pt;
color:green;
background-color:cyan }
p {
font-size:12pt;
color:purple;
text-indent:30px }
</style>
<!--
function on() {
if(document.styleSheets(0).disabled)
document.styleSheets(0).disabled=false;
}else
document.styleSheets(0).disabled=true;
-->
</script>
</head>
<body>
<h1>Title</h1>
<h2>First Paragraph</h2>
<h2>Second Paragraph</h2>
<div id="state">
</div>
</body>
</html>
OUTPUT:
RESULT:
Thus the java script for enabling and disabling style sheet has been
executed successfully.
PROGRAM:
<!—Accessing Elements by their ID -->
<HTML>
<HEAD>
<STYLE type="text/css">
span{color:orange; }
.hidden{visibility:hidden;color:green;}
</STYLE>
<SCRIPT language=”javascript”>
function mClick( )
if(document.all.hid.style.visibility="visible")
document all.hid.style.visibility="visible";
document all.hid.style.backgroundColor=”yellow";
else
document.all.hid.style.visibility="hidden";
document.all.hid.style.backgroundColor="white";
</SCRIPT>
</HEAD>
<BODY>
<BR>
<B>Precipitation:</B>
Water that falls on the earths surface as rain, sleet, snow, etc.
</SPAN>
</BODY>
</HTML>
OUTPUT:
RESULT:
Thus the java script for Accessing elements using their ID has been
executed successfully.
PROGRAM:
<html>
<head>
<title>Untitled Page</title>
</head>
<div id="wb_Shape1"
style="position:absolute;left:562px;top:376px;width:196px;height:122px;z-index:0"
align="center">
<div id="wb_Text1"
style="position:absolute;left:372px;top:317px;width:623px;height:42px;z-index:1"
align="left">
<div id="wb_Image1"
style="overflow:hidden;position:absolute;left:570px;top:97px;z-index:3"
align="left">
</body>
</html>
ABOUT US:
<html>
<head>
<title>Untitled Page</title>
<style type="text/css">
div#container
position: absolute;
left: 50%;
top: 50%;
width: 1024px;
height: 786px;
margin-top: -393px;
margin-left: -512px;
</style>
<style type="text/css">
.SlideMenu1_folder
font-family: Arial;
font-size: 11px;
text-transform: uppercase;
background-color: #2569BC;
padding-left: 5px;
width: 100%;
border-style: solid;
border-width: 1;
border-color: #2569BC;
.SlideMenu1_item
font-family: Arial;
font-size: 11px;
background-color: #93BEEB;
padding-left: 5px;
width: 100%;
border-style: solid;
border-width: 1;
border-color: #408FDA;
.SlideMenu1_folder_a
color: #FFFFFF;
font-weight: normal;
text-decoration: none;
.SlideMenu1_folder_a:hover
color: #FFFFFF;
font-weight: normal;
text-decoration: none;
border-color: #408FDA;
.SlideMenu1_item_a
color: #FFFFFF;
font-weight: normal;
text-decoration: none;
.SlideMenu1_item_a:hover
color: #FFFFFF;
font-weight: normal;
text-decoration: none;
</style>
<script type="text/javascript">
<!--
if(!doc)
doc=document;
if(doc.getElementById)
elem=doc.getElementById(id);
else
if(doc.layers)
child=doc.layers;
else
if(doc.all)
elem=doc.all[id];
if(elem)
return elem;
if(doc.id==id || doc.name==id)
return doc;
if(doc.childNodes)
child=doc.childNodes;
if(child)
elem=FindObject(id,child[i]);
if(elem)
return elem;
var frm=doc.forms;
if(frm)
{
var elems=frm[i].elements;
elem=FindObject(id,elems[i]);
return null;
// -->
</script>
<!--
function ToggleExpand(id)
if (!obj)
return false;
if (obj.style.display == "none")
obj.style.display = "";
else
{
obj.style.display = "none";
return false;
//-->
</script>
</head>
<div id="container">
<div id="wb_Image1"
style="overflow:hidden;position:absolute;left:0px;top:101px;z-index:0" align="left">
<div id="wb_Image2"
style="overflow:hidden;position:absolute;left:37px;top:66px;z-index:1" align="left">
<div id="wb_Text1"
style="position:absolute;left:186px;top:141px;width:554px;height:40px;z-index:2"
align="left">
<div id="wb_SlideMenu1"
style="position:absolute;left:2px;top:267px;width:157px;height:342px;z-index:3"
align="left">
<tbody>
<tr>
<td>
<tr>
<td class="SlideMenu1_folder"
onMouseOver="this.style.backgroundColor='#408FDA'"
onMouseOut="this.style.backgroundColor='#2569BC'"><a
class="SlideMenu1_folder_a" onclick="return ToggleExpand('SlideMenu1_Folder1')"
href="#">MCA</a></td>
</tr>
</table>
</td>
</tr>
</tbody>
<tbody id="SlideMenu1_Folder1">
<tr>
<td>
<tbody>
<tr>
<td>
<tr><td class="SlideMenu1_item"
onMouseOver="this.style.backgroundColor='#408FDA'"
onMouseOut="this.style.backgroundColor='#93BEEB'"><a
class="SlideMenu1_item_a" href="http://">ESCOTERIC</a></td></tr>
<tr><td class="SlideMenu1_item"
onMouseOver="this.style.backgroundColor='#408FDA'"
onMouseOut="this.style.backgroundColor='#93BEEB'"><a
class="SlideMenu1_item_a" href="./COURSES.html">MCA</a></td></tr>
</table>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
<tbody>
<tr>
<td>
<tr>
<td class="SlideMenu1_folder"
onMouseOver="this.style.backgroundColor='#408FDA'"
onMouseOut="this.style.backgroundColor='#2569BC'"><a
class="SlideMenu1_folder_a" onclick="return ToggleExpand('SlideMenu1_Folder2')"
href="#">MBA</a></td>
</tr>
</table>
</td>
</tr>
</tbody>
<tbody id="SlideMenu1_Folder2">
<tr>
<td>
<tbody>
<tr>
<td>
<tr><td class="SlideMenu1_item"
onMouseOver="this.style.backgroundColor='#408FDA'"
onMouseOut="this.style.backgroundColor='#93BEEB'"><a
class="SlideMenu1_item_a" href="http://">ASSOCIATION 1</a></td></tr>
<tr><td class="SlideMenu1_item"
onMouseOver="this.style.backgroundColor='#408FDA'"
onMouseOut="this.style.backgroundColor='#93BEEB'"><a
class="SlideMenu1_item_a" href="http://">ASSOCIATION 2</a></td></tr>
</table>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
<tbody>
<tr>
<td>
<tr>
<td class="SlideMenu1_folder"
onMouseOver="this.style.backgroundColor='#408FDA'"
onMouseOut="this.style.backgroundColor='#2569BC'"><a
class="SlideMenu1_folder_a" onclick="return ToggleExpand('SlideMenu1_Folder3')"
href="#">SPORTS</a></td>
</tr>
</table>
</td>
</tr>
</tbody>
<tbody id="SlideMenu1_Folder3">
<tr>
<td>
<tbody>
<tr>
<td>
<tr><td class="SlideMenu1_item"
onMouseOver="this.style.backgroundColor='#408FDA'"
onMouseOut="this.style.backgroundColor='#93BEEB'"><a
class="SlideMenu1_item_a" href="http://">INDOOR</a></td></tr>
<tr><td class="SlideMenu1_item"
onMouseOver="this.style.backgroundColor='#408FDA'"
onMouseOut="this.style.backgroundColor='#93BEEB'"><a
class="SlideMenu1_item_a" href="http://">OUTDOOE</a></td></tr>
</table>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
<tbody>
<tr>
<td>
<tr>
<td class="SlideMenu1_folder"
onMouseOver="this.style.backgroundColor='#408FDA'"
onMouseOut="this.style.backgroundColor='#2569BC'"><a
class="SlideMenu1_folder_a" onclick="return ToggleExpand('SlideMenu1_Folder4')"
href="#">CAMP</a></td>
</tr>
</table>
</td>
</tr>
</tbody>
<tbody id="SlideMenu1_Folder4">
<tr>
<td>
<tbody>
<tr>
<td>
<tr><td class="SlideMenu1_item"
onMouseOver="this.style.backgroundColor='#408FDA'"
onMouseOut="this.style.backgroundColor='#93BEEB'"><a
class="SlideMenu1_item_a" href="http://">CHALLAKUDI CAMP</a></td></tr>
<tr><td class="SlideMenu1_item"
onMouseOver="this.style.backgroundColor='#408FDA'"
onMouseOut="this.style.backgroundColor='#93BEEB'"><a
class="SlideMenu1_item_a" href="http://">MBA CHALLAKUDI CAMP</a></td></tr>
<tr><td class="SlideMenu1_item"
onMouseOver="this.style.backgroundColor='#408FDA'"
onMouseOut="this.style.backgroundColor='#93BEEB'"><a
class="SlideMenu1_item_a" href="http://">MCA SIRUVANI CAMP</a></td></tr>
</table>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
<tbody>
<tr>
<td>
<tr>
<td class="SlideMenu1_folder"
onMouseOver="this.style.backgroundColor='#408FDA'"
onMouseOut="this.style.backgroundColor='#2569BC'"><a
class="SlideMenu1_folder_a" onclick="return ToggleExpand('SlideMenu1_Folder5')"
href="#">OOTY</a></td>
</tr>
</table>
</td>
</tr>
</tbody>
<tbody id="SlideMenu1_Folder5">
<tr>
<td>
<tbody>
<tr>
<td>
<tr><td class="SlideMenu1_item"
onMouseOver="this.style.backgroundColor='#408FDA'"
onMouseOut="this.style.backgroundColor='#93BEEB'"><a
class="SlideMenu1_item_a" href="http://">RYLA</a></td></tr>
</table>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
<tbody>
<tr>
<td>
<tr>
<td class="SlideMenu1_folder"
onMouseOver="this.style.backgroundColor='#408FDA'"
onMouseOut="this.style.backgroundColor='#2569BC'"><a
class="SlideMenu1_folder_a" onclick="return ToggleExpand('SlideMenu1_Folder6')"
href="#">COLLEGE ACTIVITIES</a></td>
</tr>
</table>
</td>
</tr>
</tbody>
<tbody id="SlideMenu1_Folder6">
<tr>
<td>
<tbody>
<tr>
<td>
<tr><td class="SlideMenu1_item"
onMouseOver="this.style.backgroundColor='#408FDA'"
onMouseOut="this.style.backgroundColor='#93BEEB'"><a
class="SlideMenu1_item_a" href="http://">INAGURAL FUNCTION</a></td></tr>
</table>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
<div id="wb_Shape1"
style="position:absolute;left:34px;top:627px;width:991px;height:8px;z-index:4"
align="center">
<div id="wb_Text2"
style="position:absolute;left:193px;top:299px;width:150px;height:24px;z-index:6"
align="left">
<div id="wb_Text3"
style="position:absolute;left:258px;top:360px;width:529px;height:102px;z-index:7"
align="left">
</div>
</body>
</html>
MCA.HTML
<html>
<head>
<title>Untitled Page</title>
<meta name="generator" content="WYSIWYG Web Builder -
http://www.wysiwygwebbuilder.com">
<style type="text/css">
.SlideMenu2_folder
font-family: Arial;
font-size: 11px;
text-transform: uppercase;
background-color: #2569BC;
padding-left: 5px;
width: 100%;
border-style: solid;
border-width: 1;
border-color: #2569BC;
.SlideMenu2_item
font-family: Arial;
font-size: 11px;
background-color: #93BEEB;
padding-left: 5px;
width: 100%;
border-style: solid;
border-width: 1;
border-color: #408FDA;
.SlideMenu2_folder_a
{
color: #FFFFFF;
font-weight: normal;
text-decoration: none;
.SlideMenu2_folder_a:hover
color: #FFFFFF;
font-weight: normal;
text-decoration: none;
border-color: #408FDA;
.SlideMenu2_item_a
color: #FFFFFF;
font-weight: normal;
text-decoration: none;
.SlideMenu2_item_a:hover
color: #FFFFFF;
font-weight: normal;
text-decoration: none;
</style>
<script type="text/javascript">
<!--
if(!doc)
doc=document;
if(doc.getElementById)
elem=doc.getElementById(id);
else
if(doc.layers)
child=doc.layers;
else
if(doc.all)
elem=doc.all[id];
if(elem)
return elem;
if(doc.id==id || doc.name==id)
return doc;
if(doc.childNodes)
child=doc.childNodes;
if(child)
elem=FindObject(id,child[i]);
if(elem)
return elem;
var frm=doc.forms;
if(frm)
var elems=frm[i].elements;
elem=FindObject(id,elems[i]);
return null;
// -->
</script>
<!--
function ToggleExpand(id)
if (!obj)
{
return false;
if (obj.style.display == "none")
obj.style.display = "";
else
obj.style.display = "none";
return false;
//-->
</script>
</head>
<div id="wb_Image2"
style="overflow:hidden;position:absolute;left:0px;top:101px;z-index:1" align="left">
<div id="wb_Image1"
style="overflow:hidden;position:absolute;left:37px;top:66px;z-index:2" align="left">
<div id="wb_SlideMenu2"
style="position:absolute;left:2px;top:267px;width:157px;height:342px;z-index:4"
align="left">
<tbody>
<tr>
<td>
<tr>
<td class="SlideMenu2_folder"
onMouseOver="this.style.backgroundColor='#408FDA'"
onMouseOut="this.style.backgroundColor='#2569BC'"><a
class="SlideMenu2_folder_a" onclick="return ToggleExpand('SlideMenu2_Folder1')"
href="#">MCA</a></td>
</tr>
</table>
</td>
</tr>
</tbody>
<tbody id="SlideMenu2_Folder1">
<tr>
<td>
<tbody>
<tr>
<td>
<tr><td class="SlideMenu2_item"
onMouseOver="this.style.backgroundColor='#408FDA'"
onMouseOut="this.style.backgroundColor='#93BEEB'"><a
class="SlideMenu2_item_a" href="http://">ESCOTERIC</a></td></tr>
<tr><td class="SlideMenu2_item"
onMouseOver="this.style.backgroundColor='#408FDA'"
onMouseOut="this.style.backgroundColor='#93BEEB'"><a
class="SlideMenu2_item_a" href="http://">MCA</a></td></tr>
</table>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
<tbody>
<tr>
<td>
<tr>
<td class="SlideMenu2_folder"
onMouseOver="this.style.backgroundColor='#408FDA'"
onMouseOut="this.style.backgroundColor='#2569BC'"><a
class="SlideMenu2_folder_a" onclick="return ToggleExpand('SlideMenu2_Folder2')"
href="#">MBA</a></td>
</tr>
</table>
</td>
</tr>
</tbody>
<tbody id="SlideMenu2_Folder2">
<tr>
<td>
<tbody>
<tr>
<td>
<tr><td class="SlideMenu2_item"
onMouseOver="this.style.backgroundColor='#408FDA'"
onMouseOut="this.style.backgroundColor='#93BEEB'"><a
class="SlideMenu2_item_a" href="http://">ASSOCIATION 1</a></td></tr>
<tr><td class="SlideMenu2_item"
onMouseOver="this.style.backgroundColor='#408FDA'"
onMouseOut="this.style.backgroundColor='#93BEEB'"><a
class="SlideMenu2_item_a" href="http://">ASSOCIATION 2</a></td></tr>
</table>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
<tbody>
<tr>
<td>
<tr>
<td class="SlideMenu2_folder"
onMouseOver="this.style.backgroundColor='#408FDA'"
onMouseOut="this.style.backgroundColor='#2569BC'"><a
class="SlideMenu2_folder_a" onclick="return ToggleExpand('SlideMenu2_Folder3')"
href="#">SPORTS</a></td>
</tr>
</table>
</td>
</tr>
</tbody>
<tbody id="SlideMenu2_Folder3">
<tr>
<td>
<tbody>
<tr>
<td>
<tr><td class="SlideMenu2_item"
onMouseOver="this.style.backgroundColor='#408FDA'"
onMouseOut="this.style.backgroundColor='#93BEEB'"><a
class="SlideMenu2_item_a" href="http://">INDOOR</a></td></tr>
<tr><td class="SlideMenu2_item"
onMouseOver="this.style.backgroundColor='#408FDA'"
onMouseOut="this.style.backgroundColor='#93BEEB'"><a
class="SlideMenu2_item_a" href="http://">OUTDOOE</a></td></tr>
</table>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
<tbody>
<tr>
<td>
<tr>
<td class="SlideMenu2_folder"
onMouseOver="this.style.backgroundColor='#408FDA'"
onMouseOut="this.style.backgroundColor='#2569BC'"><a
class="SlideMenu2_folder_a" onclick="return ToggleExpand('SlideMenu2_Folder4')"
href="#">CAMP</a></td>
</tr>
</table>
</td>
</tr>
</tbody>
<tbody id="SlideMenu2_Folder4">
<tr>
<td>
<tbody>
<tr>
<td>
<tr><td class="SlideMenu2_item"
onMouseOver="this.style.backgroundColor='#408FDA'"
onMouseOut="this.style.backgroundColor='#93BEEB'"><a
class="SlideMenu2_item_a" href="http://">CHALLAKUDI CAMP</a></td></tr>
<tr><td class="SlideMenu2_item"
onMouseOver="this.style.backgroundColor='#408FDA'"
onMouseOut="this.style.backgroundColor='#93BEEB'"><a
class="SlideMenu2_item_a" href="http://">MBA CHALLAKUDI CAMP</a></td></tr>
<tr><td class="SlideMenu2_item"
onMouseOver="this.style.backgroundColor='#408FDA'"
onMouseOut="this.style.backgroundColor='#93BEEB'"><a
class="SlideMenu2_item_a" href="http://">MCA SIRUVANI CAMP</a></td></tr>
</table>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
<tbody>
<tr>
<td>
<tr>
<td class="SlideMenu2_folder"
onMouseOver="this.style.backgroundColor='#408FDA'"
onMouseOut="this.style.backgroundColor='#2569BC'"><a
class="SlideMenu2_folder_a" onclick="return ToggleExpand('SlideMenu2_Folder5')"
href="#">OOTY</a></td>
</tr>
</table>
</td>
</tr>
</tbody>
<tbody id="SlideMenu2_Folder5">
<tr>
<td>
<tbody>
<tr>
<td>
<tr><td class="SlideMenu2_item"
onMouseOver="this.style.backgroundColor='#408FDA'"
onMouseOut="this.style.backgroundColor='#93BEEB'"><a
class="SlideMenu2_item_a" href="http://">RYLA</a></td></tr>
</table>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
<tbody>
<tr>
<td>
<tr>
<td class="SlideMenu2_folder"
onMouseOver="this.style.backgroundColor='#408FDA'"
onMouseOut="this.style.backgroundColor='#2569BC'"><a
class="SlideMenu2_folder_a" onclick="return ToggleExpand('SlideMenu2_Folder6')"
href="#">COLLEGE ACTIVITIES</a></td>
</tr>
</table>
</td>
</tr>
</tbody>
<tbody id="SlideMenu2_Folder6">
<tr>
<td>
<tbody>
<tr>
<td>
<tr><td class="SlideMenu2_item"
onMouseOver="this.style.backgroundColor='#408FDA'"
onMouseOut="this.style.backgroundColor='#93BEEB'"><a
class="SlideMenu2_item_a" href="http://">INAGURAL FUNCTION</a></td></tr>
</table>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
<div id="wb_Shape2"
style="position:absolute;left:34px;top:627px;width:991px;height:8px;z-index:5"
align="center">
<div id="wb_Text1"
style="position:absolute;left:211px;top:289px;width:150px;height:19px;z-index:6"
align="left">
<div id="wb_Text3"
style="position:absolute;left:271px;top:327px;width:574px;height:255px;z-index:7"
align="left">
<br>
The Department is headed by Dr.M.Arthanari who has thirty four years of experience
in the educational field. Previously he has served as a principal of Erode Arts College
(Autonomous). The department also has eight faculty members in different areas of
specialization like database management systems, network security, e-commerce,
visual programming and all languages.<br>
<br>
<br>
The department has six faculty members in different areas of specialization like
Marketing, Human Resource Management, Financial Management, Production &
Quality Management and Portfolio Management.</font></div>
</body>
</html>
OUTPUT:
RESULT:
Thus the website has been developed successfully using HTML and DHTML
tags.
PROGRAM:
import java.io.*;
import java.net.*;
class ftps
Socket s=null;
ServerSocket ss=null;
DataOutputStream sso=null;
DataInputStream sin=null;
ss=new ServerSocket(55555);
System.out.println("Waiting") ;
s=ss.accept();
sso=new DataOutputStream(s.getOutputStream());
sin=new DataInputStream(s.getInputStream());
String s1;
s1=sin.readLine();
int str;
while((str=fos.read())!=-1)
sso.writeBytes(""+(char)str);
sso.close();
s.close();
}
FTPC.JAVA
import java.io.*;
import java.net.*;
{ Socket s=null;
DataInputStream si=null;
s=new Socket(InetAddress.getLocalHost(),55555);
si=new DataInputStream(s.getInputStream());
String str;
str=inp.readLine();
so.writeBytes(str);
so.writeBytes("\n");
int str1;
while((str1=si.read())!=-1)
{ fos.write((char)str1);
System.out.print((char)str1); }
si.close(); } }
OUTPUT:
RESULT:
Thus the ftp program for downloading has been executed and file transferred
successfully.
PROGRAM:
<!—ftp uploading--> ftp server
import java.io.*;
import java.net.*;
class ftpus
Socket s=null;
ServerSocket ss=null;
DataOutputStream sso=null;
DataInputStream sin=null;
ss=new ServerSocket(55555);
System.out.println("Waiting") ;
s=ss.accept();
sso=new DataOutputStream(s.getOutputStream());
sin=new DataInputStream(s.getInputStream());
int str1;
while((str1=sin.read())!=-1)
fos.write((char)str1);
System.out.print((char)str1);
sso.close(); s.close(); }}
ftp client:
import java.io.*;
import java.net.*;
Socket s=null;
DataInputStream si=null;
s=new Socket(InetAddress.getLocalHost(),55555);
si=new DataInputStream(s.getInputStream());
String str;
str=inp.readLine();
int i;
while((i=fos.read())!=-1)
so.writeBytes(""+(char)i);
si.close();
OUTPUT:
RESULT:
Thus the program has been executed successfully and the result is displayed.
PROGRAM:
import java.io.*;
import java.lang.*;
try
System.out.println("Creation Details");
name = in.readLine();
rno = in.readLine();
ma1 = Integer.parseInt(in.readLine());
ma2 = Integer.parseInt(in.readLine());
ma3 = Integer.parseInt(in.readLine());
ma5 = Integer.parseInt(in.readLine());
catch(Exception e)
System.out.println(e);
Connection con;
Statement st;
try
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
con= DriverManager.getConnection("jdbc:odbc:mark1","","");
st = con.createStatement();
getdata();
avg = tot/5;
st.execute(query);
st.close();
con.close();
catch(Exception e)
void cancel()
Connection con;
Statement st;
ResultSet rs;
try
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
con= DriverManager.getConnection("jdbc:odbc:mark1","","");
st = con.createStatement();
rno = in.readLine();
st.executeUpdate(query1);
st.close();
}
catch(Exception ex)
System.out.println("Exception :"+ex);
void read()
Connection con;
Statement st;
ResultSet rs;
try
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
con= DriverManager.getConnection("jdbc:odbc:mark1","","");
st = con.createStatement();
rs = st.executeQuery(query);
System.out.println("\n\tName\tRollno\tmark1\tmark2\tmark3\tmark4\tmark5\tTotal\t
Average");
while(rs.next())
name = rs.getString("name");
rno = rs.getString("rno");
ma1 = Integer.parseInt(rs.getString("ma1"));
ma2 = Integer.parseInt(rs.getString("ma2"));
ma3 = Integer.parseInt(rs.getString("ma3"));
ma4 = Integer.parseInt(rs.getString("ma4"));
ma5 = Integer.parseInt(rs.getString("ma5"));
tot = Integer.parseInt(rs.getString("tot"));
avg = Integer.parseInt(rs.getString("avg"));
System.out.println('\t'+name+'\t'+rno+'\t'+ma1+'\t'+ma2+'\t'+ma3+'\t'+ma4+'\t'
+ma5+'\t'+tot+'\t'+avg);
rs.close();
st.close();
con.close();
catch(Exception ex)
System.out.println("Exception:"+ex);
void update()
Connection con;
Statement st;
ResultSet rs;
try
{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
con= DriverManager.getConnection("jdbc:odbc:mark1","","");
st = con.createStatement();
name = in.readLine();
rno = in.readLine();
st.executeUpdate(query);
st.close();
con.close();
catch(Exception e)
System.out.println("Exception"+e);
try
{
int choice = 0;
while(flag=="y")
System.out.println("1.creation");
System.out.println("2.cancelation");
System.out.println("3.Updation");
System.out.println("4.Display");
choice = Integer.parseInt(in.readLine());
switch(choice)
case 1:
obj.create();
break;
case 2:
obj.cancel();
break;
case 3:
obj.update();
break;
case 4:
obj.read();
break;
default:
System.exit(0);
catch(Exception e)
{System.out.println("Exception"+e);
OUTPUT:
RESULT:
Thus the program has been executed successfully and the result is displayed.
PROGRAM:
<!--DATABASE CONNECTIVITY-->
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import java.sql.*;
/*Declare the variables to create the application interface for the Product
Information application*/
empty_label,error;
unit_of_msrField;
GridBagLayout gbl;
GridBagConstraints gbc;
JComboBox idCombo;
Connection con;
PreparedStatement stat;
Statement stmt;
ResultSet rs;
Font f;
JPanel jp1;
public ProductInfo()
{
setTitle("Product Information");
setSize(600, 300);
addWindowListener(new WindowAdapter()
System.exit(0);
});
jp1=new JPanel();
getContentPane().setLayout(new BorderLayout());
jp1.setLayout(gbl);
gbc.gridx = 1;
gbc.gridy = 0;
gbc.gridwidth = 3;
/*Initialize the JLabel object to set the caption for the application*/
gbc.gridx = 0;
gbc.gridy = 1;
gbc.gridwidth = 5;
empty_label.setFont(f);
gbc.gridx = 1;
gbc.gridy = 2;
gbc.gridwidth = 1;
gbc.gridx = 2;
gbc.gridy = 2;
gbc.gridwidth = 1;
gbc.gridx = 3;
gbc.gridy = 2;
gbc.gridwidth = 1;
/*Initialize the idCombo JComboBox object*/
idCombo.setEditable(false);
jp1.add(idCombo, gbc);
gbc.gridx = 1;
gbc.gridy = 3;
gbc.gridwidth = 1;
gbc.gridx = 2;
gbc.gridy = 3;
gbc.gridwidth = 2;
gbc.gridx = 1;
gbc.gridy = 4;
gbc.gridwidth = 1;
gbc.gridx = 2;
gbc.gridy = 4;
gbc.gridwidth = 2;
gbc.gridx = 1;
gbc.gridy = 5;
gbc.gridwidth = 1;
gbc.gridx = 2;
gbc.gridy = 5;
gbc.gridwidth = 2;
gbc.gridx = 1;
gbc.gridy = 6;
gbc.gridwidth = 1;
gbc.gridx = 2;
gbc.gridy = 6;
gbc.gridwidth = 2;
gbc.gridx = 0;
gbc.gridy = 7;
gbc.gridwidth = 1;
insert.addActionListener(this);
gbc.gridx = 1;
gbc.gridy = 7;
gbc.gridwidth = 1;
update.addActionListener(this);
/*Add update object to panel*/
gbc.gridx = 2;
gbc.gridy = 7;
gbc.gridwidth = 1;
delete.addActionListener(this);
gbc.gridx = 3;
gbc.gridy = 7;
gbc.gridwidth = 1;
clear.addActionListener(this);
gbc.gridx = 4;
gbc.gridy = 7;
gbc.gridwidth = 1;
getContentPane().add(jp1,"Center");
getContentPane().add(error,"South");
try
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
con = DriverManager.getConnection("jdbc:odbc:qw");
stmt = con.createStatement();
/*Retrieve the rows from the product table and store them in the result set object
rs*/
while (rs.next())
idCombo.addItem(Integer.toString(rs.getInt(1))); }
con.close();
}
catch(Exception e)
System.out.println("Error : "+e);
idCombo.addActionListener(this);
if(ae.getActionCommand() == "Exit")
System.exit(0);
if(ae.getActionCommand() == "Delete")
try
con = DriverManager.getConnection("jdbc:odbc:qw");
int id = Integer.parseInt(selected_id);
stat.setInt(1, id);
stat.executeUpdate();
idCombo.removeActionListener(this);
con = DriverManager.getConnection("jdbc:odbc:qw");
stmt = con.createStatement();
/*Store all the rows of the product table in the rs ResultSet object*/
idCombo.removeAllItems();
while (rs.next())
idCombo.addItem(Integer.toString(rs.getInt(1)));
con.close();
idCombo.addActionListener(this);
idField.setText("");
descField.setText("");
rateField.setText("");
quantityField.setText("");
unit_of_msrField.setText("");
error.setText("Row Deleted");
catch(Exception e)
System.out.println("Error " + e );
if(ae.getActionCommand() == "Insert")
try
con = DriverManager.getConnection("jdbc:odbc:qw");
String id = idField.getText();
stat.setInt(1, Integer.parseInt(id));
stat.setString(2, description);
stat.setDouble(3, Double.parseDouble(rate));
stat.setInt(4, Integer.parseInt(quantity));
stat.setString(5, unit_of_msr);
stat.executeUpdate();
con.close();
idCombo.removeActionListener(this);
con = DriverManager.getConnection("jdbc:odbc:qw");
stmt = con.createStatement();
while (rs.next())
/*Refresh the id values in the idCombo JComboBox after inserting a new row*/
idCombo.addItem(Integer.toString(rs.getInt(1)));
con.close();
idCombo.addActionListener(this);
error.setText("Row Inserted");
catch(Exception e)
System.out.println("Error1 "+e);
if(ae.getSource() == idCombo)
try
con = DriverManager.getConnection("jdbc:odbc:qw");
stmt = con.createStatement();
rs.next();
idField.setText(selected_id);
descField.setText(rs.getString(1));
rateField.setText(Double.toString(rs.getDouble(2)));
quantityField.setText(Integer.toString(rs.getInt(3)));
unit_of_msrField.setText(rs.getString(4));
con.close();
catch(Exception e)
if(ae.getActionCommand()=="Update")
try
con = DriverManager.getConnection("jdbc:odbc:qw");
/*Initialize the stat PreparedStatement object to update a row in the product table*/
int id = Integer.parseInt(id_selected);
stat.setString(1, description);
stat.setDouble(2, Double.parseDouble(rate));
stat.setInt(3, Integer.parseInt(quantity));
stat.setString(4, unit_of_msr);
stat.setInt(5, id);
stat.executeUpdate();
con.close();
error.setText("Row Updated");
catch(Exception e)
System.out.println("Error " + e );
if(ae.getActionCommand() == "Clear")
idField.setText("");
descField.setText("");
rateField.setText("");
quantityField.setText("");
unit_of_msrField.setText("");
{
ProductInfo p = new ProductInfo();
p.show();
OUTPUT:
RESULT:
Thus the program has been executed successfully and the result is displayed.
PROGRAM:
<!—jsp-->
Welcome page .html
<html>
<body>
<br>
</font>
<br>
<tr>
</tr>
<tr>
</tr>
<tr>
</tr>
<tr>
</tr>
</table>
<br>
</form>
</body>
</html>
GET AUTHORNAME.JSP:
<html>
<head>
<%-- Set the value of various attribute, such as authorId, url, and driverName --%>
<body>
<%-- The details about the author, <jsp:getProperty name="FA"
property="authorName"/> is:<BR> --%>
<%
Vector v = (Vector)FA.getResult();
while(enum.hasMoreElements())
out.println("Author Name:"+enum.nextElement());
%>
<br>
<%
out.println("Address:"+enum.nextElement());
%><br><%
out.println("City:"+enum.nextElement());
%><br><%
out.println("State:"+enum.nextElement());
%><br><%
out.println("ZIP:"+enum.nextElement());
%></body></head>
OUTPUT:
RESULT:
Thus the JSP program has been executed successfully and the result is
displayed.
PROGRAM:
<html>
<body>
<script type="text/javascript">
"thursday","friday","saturday");
"jul","aug","sep","oct","nov","dec");
document.write(weekday[d.getDay()]+" ");
document.write(monthname[d.getMonth()]+" ");
document.write(d.getFullYear());
</script>
</body>
</html>
OUTPUT:
RESULT:
Thus the program has been successfully executed and the result is displayed.