SAVE EARTH'S ENVIRONMENT
Save Env.html
<html>
<head>
<title></title>
</head>
<Body
Bgcolor="violet" Alink="green "
Vlink="blue"><h2>
<Marquee
Direction="Right" Behavior="Alternate"
bgcolor="seagreen"><Font face="Book antiqua"
color="plum">SAVE THE ENVIORNMENT, SAVE THE
WORLD....</font></h2></Marquee>
<Center><Img
Src="C:/Natural/CANYON2W.JPG" Height="400"
Width="600"></img><br>
<Font
Face="Monotype corsiva" Size="+2"
Color="skyblue">SAVE THE ENVIORNMENT</Font>
<HR
Size="10%" Color="Red">
<A href="Causes.html"
target="_blank" >EFFECTS OF POLLUTION</A><br>
<a
href="Solution.html" target="_blank" >PREVENTIVE
SOLUTIONS</a><br>
<A
href="Pollution watch.html" target="_blank"
>SUMMARY</a>
</body>
</Html>
Causes.html
<html>
<head>
<title>causes of
pollution</title>
</head>
<body
Bgcolor="lavender">
<a
name="Causes"><Font face="Monotype Corosiva"
size="+1" color="indigo">
<Font
color="green">1. AIR POLLUTION:</font>
<p>The
effects of air pollution are as follows:-</p>
a)SMOG:
<br>1.It increases
the casees of Lung Cancer.<br>2.Diseases like Bronchitis,Emhysema And
Cardiac Failure Are Observed.<p>
b)SULPHUR DIOXIDE:<br
>
1.It disturbes the
respiratory rates.<br>2.IT irrritates the respiratory epitalial causing
Rhinitis and Coughing.
<p>c)CARBON
MONOXIDE:<br>1.Increases the level of CO released from automobiles and
industrial plants called giddiness and headache.<p>
2.WATER
POLLUTION:<p>
a)The sewage polluted
water can spread many epidermic diseases like Cholera,Typhoid.<br>
b)Floating oils in the
sea depletes oxygen contempt killing sea-life.<br>
c)Drinking water becomes
unpleasent due to presence of free chlorine,phenol,ammonia and hydrogen
sulphide.</font>
<br><br>
<center>
<a href="Save
Env.html" align="right"><b>Go To Home
Page</b></a>
</body>
</html>
Solution.html
<html>
<head>
<title>Preventive
Solutions</title>
</head>
<body
Bgcolor="Lavender">
<Font
Color="Darkteal " size="+2">PREVENTIVE
SOLUTIONS</font><p>
<Font
Face="Garamond" color="indigo" size="+1">1.AIR
POLLUTION:<p>
a)To put a ban on the
nuclear tests.<br>
b)To plant more trees
instead of erecting the cement jungle.<br>
c)To utilise the waste
products for the manufacture of commercially viable products.<br>
d)To discharge the
gaseous waste through sufficiently tall and properly designed smoke-stackes.
<p>2.WATER
POLLUTION:<p>
a)Pollution by inorganic
fertilisers can be avoided by the use of organic manures.<br>
b)The effluents from the
industries should be properly treated and neutralised.<br>
c)Strict legislative
measures should be inforced and strictly followed to control watwe
pollution.<br>
d)Improved and proper
method should be employed in handling the sewage before disposal in water.
<br><br>
<center>
<a href="Save
Env.html" align="right"><b>Go To Home
Page</b></a>
</body>
</html>
Pollution watch.html
<html>
<head>
<title>Summary</title>
</head>
<body
background="C:\natural\a.jpg" text="blue">
<a
name="Summary.html">
<font
face="garamond" color="orange">
<center>
<table
border="5" width="500" height="250"
Bordercolorlight="green" bordercolordark="marron">
<caption
align="bottom"><font face="Verdena"
color="orange" size="6"><b> POLLUTION
WATCH</font></caption>
<tr
align="center">
<b><th>City</th>
<th>SPM
mug/m<sup>3</sup>
<th>SO<sub>2</sub>mug/m<sup>3</sup>
</tr>
<tr
align="center">
<b><b><Td>Pune</td>
<td>320</td>
<td>4</td>
<td>40</td>
</tr>
<tr
align="center">
<td>Kolhapur</td>
<td>225</td>
<td>5</td>
<td>25</td></tr>
<tr
align="center">
<td>Ajara</td>
<td>300</td>
<td> </td>
<td>30</td></tr>
</table>
<br><br>
<center>
<a href="Save
Env.html"><b>Go To Home Page</b></a>
</center>
<h1>Customer
feedback</h1>
<form
name="input" method="get">
First name: <input
type="text" name="FirstName" size=20><br>
Last name: <input
type="text" name="LastName" size=20><br>
Comments<textarea
rows=5></textarea>
<input
type="submit" value="Submit">
</form>
</body>
</html>
Creation of website with Frames and CSS
Frame File
<html>
<head>
<title>index</title>
</head>
<frameset
rows=30%,45%,*>
<frame
name="f1" src="top.htm">
<frameset
cols=30%,70%>
<frame
name="f2" src="left.htm">
<frame
name="f3" src="right1.htm">
</frameset>
<frame
name="f4" src="bottom.htm">
</frameset>
</html>
<html>
<head>
<title>this is a
top page</title>
<style
type="text/css">
<!--
body{background-color:"pink";};
h1{font-family:monotype
corsiva;color:brown;width:300;;position:absolute;left:400px};
b{font-family:monotype
corsiva;color:"black";};
-->
</style>
</head>
<body>
<h1>Welcome to
the top page</h1>
<br>
<b>this is a top
page</b>
</body>
</html>
<html>
Top file
<head>
<title>this is a
left page</title>
<style
type="text/css">
<!--
h1{font-family:monotype
corsiva, font-style;bold;color:brown;};
b{font-family:monotype
corsiva, font-style;italic;color:red;background-color:gray;}
-->
</style>
</head>
<body
bgcolor="pink" style="float: right">
<h1>Welcome</h1>
<b>this is a left
page</b>
<p><p><p>
<a href=right1.htm
target=f3> Right1 page</a><br>
<a href=right2.htm
target=f3>Right2 page</a><br>
<a href=right3.htm
target=f3>Right3 page</a><br>
</body>
</html>
Right1.html
<html>
<head>
<title>this is a
right1 page</title>
<style
type="text/css">
<!--
body{
background:"orange";};
h1{font-family:monotype
corsiva, font-style;bold;color:brown;position:absolute;left:400;top:100;};
p{font-family:monotype
corsiva;color:red;position:relative;top:115;
font-size:19pt;}
-->
</style>
</head>
<body>
<h1> this is a
right1 page</h1>
<p>this is a right1
page</p>
</body>
</html>
Right1.html
<html>
<head>
<title>this is a
right2 page</title>
<style
type="text/css">
<!--
body{ background:"blue"};
h1{font-family:monotype
corsiva, font-style;bold;color:brown;position:absolute;left:400;};
p{font-family:monotype
corsiva, font-style;italic;color:red;position:absolute;top:115;
font-size:19pt;}
-->
</style>
</head>
<body>
<h1>Welcome to
right2 page </h1>
<p>this is a right2
page</p>
</body>
</html>
Right3.html
<html>
<head>
<title>this is a
right3 page</title>
<style
type="text/css">
<!--
body{background:tan;}
h1{font-family:monotype
corsiva, font-style;bold;color:white;position:absolute;left:400;};
p{font-family:monotype
corsiva, font-style;italic;color:silver;position:absolute;top:115;
font-size:19pt;background-color:gray}--></style></head>
<body
bgcolor="black">
<h1> this is a
right3 page</h1>
<p>this is a
right3page</p>
</body></html>
Bottom File
<html>
<head>
<title>bottom</title>
<style
type="text/css">
<!--
body{background-color:lavender;};
h1{font-family:times new
roman, font-color:indigo;position:absolute;left:400;};
p{font-family:monotype
corsiva;color:red;position:absolute;top:50;font-size:19pt;};
-->
</style>
</head>
<body >
<h1>Welcome to
bottom page</h1>
<p>This is a bottom
page</p>
</body>
</html>
VIDEO WITH CONTROLS
<html>
<head>
<title>videoembed tag</title>
</head>
<body bgcolor="lavender">
<center><h2>A VIDEO CLIP FILE OF AN EMBED TAG. </h2>
<embed src="C:\CLOCK.AVI" WIDTH="400" HEIGHT="350" AUTOSTART=FALSE LOOP=TRUE></center>
</body>
</html>
<head>
<title>videoembed tag</title>
</head>
<body bgcolor="lavender">
<center><h2>A VIDEO CLIP FILE OF AN EMBED TAG. </h2>
<embed src="C:\CLOCK.AVI" WIDTH="400" HEIGHT="350" AUTOSTART=FALSE LOOP=TRUE></center>
</body>
</html>
VIDEO WITHOUT CONTROLS
<html>
<head>
<title>video_im g tag</title>
</head>
<body bgcolor="#aabb cc">
<h2>A VIDEO CLIP FILE OF AN IMG - TAG WITHOUT CONTROLS. </h2>
<center><Img dynsrc="AVSE Q17.DAT" width="400" height="250"
loopdelay="150 0" start="Mouseov er" Border="5">
</body>
</html>
<head>
<title>video_im g tag</title>
</head>
<body bgcolor="#aabb cc">
<h2>A VIDEO CLIP FILE OF AN IMG - TAG WITHOUT CONTROLS. </h2>
<center><Img dynsrc="AVSE Q17.DAT" width="400" height="250"
loopdelay="150 0" start="Mouseov er" Border="5">
</body>
</html>
ASP.NET code to display contents from a Text File
Default.aspx.vb
Partial Class _Default
Inherits System.Web.UI.Page
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Button1.Click
'to dispaly content of textfile
Dim fs, fopen
fs = Server.CreateObject("scripting.filesystemobject")
fopen = fs.opentextfile("c:\a.txt")
Do While Not fopen.atendofstream
Response.Write(fopen.readline & "<br>")
Loop
End
Sub
Protected Sub Button2_Click(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Button2.Click
'To display Characters of text file
Dim fs, fopen
fs = Server.CreateObject("scripting.filesystemobject")
fopen = fs.opentextfile("c:\a.txt")
Response.Write(fopen.read(2))
End
Sub
Protected Sub Button3_Click(ByVal sender As Object, ByVal e As System.EventArgs)
Handles Button3.Click
'to dispaly firstline of textfile
Dim fs, fopen
fs = Server.CreateObject("scripting.filesystemobject")
fopen = fs.opentextfile("c:\a.txt")
Response.Write(fopen.readline)
End
Sub
Protected
Sub Button4_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles
Button4.Click
'to dispaly content of textfile with line no
Dim fs, fopen
fs = Server.CreateObject("scripting.filesystemobject")
fopen = fs.opentextfile("c:\a.txt")
Do While Not fopen.atendofstream
Response.Write(fopen.line & " " & fopen.readline)
Loop
End
Sub
End Class
Default.aspx
<body
text="dispaly character of textfile">
<form id="form1" runat="server">
<div>
</div>
<asp:Button ID="Button1" runat="server"
Text="dispaly content of textfile" />
<asp:Button ID="Button2" runat="server"
Text="dispaly character of textfile" />
<asp:Button ID="Button3" runat="server"
Text="Display first line of text file" />
<asp:Button ID="Button4" runat="server"
Text="content of textfile with line no" />
</form>
</body></HTML>
Client side Image mapping
<html>
<head>
<title>image mapping</title>
</head>
<body bgcolor="plum">
<img src="NATURE1.jpg" height="400" width="500"
usemap="#M1" border="5">
<MAP NAME="M1">
<center>
<font face="Garamond" color="indigo"
size="5"><b>IMAGE MAPPING</b></font>
<AREA SHAPE="RECT"
COORDS="0,0,120,170"
HREF="http://www.google.com"
alt="ATTITUDE!">
<AREA SHAPE="CIRCLE" COORDS="250,200,75"
HREF="http://www.yahoo.com"
ALT="OPPURTUNITY!">
<AREA SHAPE="POLY"
COORDS="400,400,500,300,500,400,400,400,"
HREF="http://www.orkut.com"
ALT="INEPTITUDE!">
</BODY>
</HTML>
cross browser testing
<html>
<head>
<title>cross broswer </title>
<bgsound src="C:\Peter\Exp-5 Cross Browser
Testing\Colour Blind.mp3" loop="-1">
</head>
<body>
<blink><h1>Cross browser
testing</h1></blink>
<hr size="5" COLOR="AQUA">
<hr><CENTER>
<img src="C:\Peter\PICTURES\skull6.gif"
alt="broken image" HEIGHT="100"
WIDTH="150"></img></CENTER><CENTER>
<table border ="5"
bordercolordark="black" bordercolorlight="orange"
width="400" height="200">
<caption>
<font face="Comic Sans MS"
color="blue" size="4"> cross bowser testing</font>
</caption>
<tr>
<td><font color="indigo"
face="garamond"><b>Microsoft Internet
Explorer</b></font></td>
<td><font color="indigo"
face="garamond">Version:6.0</font></td>
</tr>
<tr>
<td><font color="red"
face="garamond"><b>Netscape
Navigator</b></font></td>
<td><font color="red" face="garamond">Version:9.5</font></td>
</tr>
</table></CENTER>
</body>
</html>
Write The result between 2 browsers
Event driven client side scripting
<html>
<head>
<title>FRAME</title>
</head>
<frameset rows="30%,43%,27%">
<frame name="f1" src="top.htm">
<frameset cols="20%,80%">
<frame name="f2" src="left.htm">
<frame name="f3" src="right.htm">
</frameset>
<frame name="f4" src="bottom.htm">
<noframes>
<body>
</body>
</noframes>
</frameset>
</html>
<html>
<head>
<title>New Page 1</title>
<script language="javascript">
function cld(clr,id)
{
var clr,id
var x,y
x=window.parent
y=x.parent
id=parseInt(id)
y.frames[id].document.bgColor=clr
}
function
refr()
{
var
x,y
x=window.parent
y=x.parent
y.frames[1].document.bgColor="white"
y.frames[2].document.bgColor="white"
y.frames[3].document.bgColor="white"
}
</script>
</head>
<body>
<input type="button" value="RED"
name="colour1" onClick=cld("Red",1);>
<input type="button" value="GREEN"
name="colour2" onClick=cld("Green",2);>
<input type="button" value="BLUE"
name="colour3" onClick=cld("Blue",3);>
<input type="reset" value="RESET"
name="rs" onClick=refr();>
</body>
</html>
<html>
<head>
<title>left</title>
</head>
<body bgcolor="black">
<center>
<font color="indigo"
size="60">LEFT</font>
</center>
</body>
</html>
<html>
<head>
<title>right</title>
</head>
<body bgcolor="black">
<center>
<font color="Red"
size="60">RIGHT</font>
</center>
</body>
</html>
<html>
<head>
<title>bottom</title>
</head>
<body bgcolor="black">
<center>
<b><font color="tan" size="60">BOTTOM</font></b>
</center>
</body>
</html>
User
name and password validation
<html>
<head>
<title>USERNAME AND PASSWORD</title>
<script language="javascript">
function
subform()
{
if(nam()
&& ispass())
{
alert("VALID
USERNAME AND PASSWORD");
return
true;
}
else
{
return
false;
}
}
function
nam()
{
var str
str=document.test.un.value;
if(str=="")
{
alert("ENTER
USERNAME");
document.test.un.focus();
return
false;
}
if(str!=""
&& str.length<6)
{
alert("USERNAME
SHOULD BE MORE THAN 6 CHARACTERS");
document.test.un.value="";
document.test.un.focus();
return
false;
}
for(var
i=0;i<str.length;i++)
{var
ch
ch=str.charAt(i);
if(((ch<'a'||'z'<ch)&&(ch<'A'||'Z'<ch)&&(ch!=''
&& ch!='-')))
{
alert("USERNAME
ACCEPT ONLY LETTER AND SPACE");
document.test.un.focus();
document.test.un.value=""
return
false;
}
else
{
return
true;
}
}
}
function ispass()
{
var str1=document.test.pass.value;
if(str1=="")
{
alert("ENTER
PASSWORD");
document.test.pass.focus();
return
false;
}
if(str1=="student")
{
return
true;
}
else
{
alert("INVALID
PASSWORD");
document.test.pass.value="";
document.test.pass.focus();
return
false;
}
}
</script>
</head>
<body bgcolor="rgb(111,162,234)">
<marquee behaviour="scroll"><font
face="monotype corsiva" color="indigo"
size="30"><b>WELCOME </b></font></marquee>
<form name=test>
<hr color="white" size="15">
<h2><font color="white" face="Boca
Raton ICG" size="5">ENTER YOUR NAME</h2>
<input type="text" name="un"
size="15"><br>
<p>ENTER PASSWORD</p>
<input type="password" name="pass"
size="15"><br>
<p>
<input type="button" value="CHECK USERNAME
AND PASSWORD" name="sub" onClick=subform();>
<input type="reset" value="RESET">
<hr color="white" size="15">
</font>
</form>
</body>
</html>
Use of audio and animation file
<html>
<head>
<title> </title>
</head>
<body bgcolor="lavender">
<h1>Animation with gif image</h1>
<img src=c:\4yzo7jm.gif width=100 height=75 alt="gif
image">
<bgsound src=s1.mp3 loop=5>
</body>
</html>
<html>
<heaD>
<title>india</title>
</head>
<body>
<h1>आदर्श </h1>
स्वप्ने अशी बघा की पंखांना बळ येईल,<br>
मैत्री अशी करा की जग आपले होईल. <br>
अपयश असे स्वीकारा की विजेता भरवून जाईल , <br>
माणूस असे बना की माणुसकी नतमस्तक होईल, <br>
शिष्य असे बना की जगाला शिकवता येईल<br>
प्रेम असे करा की जग प्रेमळ होईल<br>
प्रगति इतकी करा की भगवंत <br>
आणि कुटुंब आनंदी होईल <br>
आणि एकमेकांना इतके सहकार्य करा की<br>
आपल्या जीवनाचे सार्थक होईल .....
</body>
</html>
ASP.NET code to calculate the number of days a person has
lived on basis of the Date of Birth
<%@
Page Language="VB" AutoEventWireup="false"
CodeFile="Default.aspx.vb" Inherits="_Default" %>
<!DOCTYPE
html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html
xmlns="http://www.w3.org/1999/xhtml">
<head
runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<div>
ENTER YOUR NAME
<asp:TextBox ID="TextBox1" runat="server"
Width="204px"></asp:TextBox>
<br />
ENTER YOUR BIRTHDATE
<asp:TextBox ID="TextBox2" runat="server"
Width="204px"></asp:TextBox>
<br />
<asp:Button ID="Button1" runat="server"
Text="CALCULATE" Width="245px" />
<br />
<br />
</div>
</form>
<p><%
Response.Write("hi " & un & "<br>")
Response.Write("your birthdate is " & bd &
"<br>")
Response.Write("Todays date is " & Today() &
"<br>")
Response.Write("you have lived on this beautiful earth for precious "
& diff & " days")
%></p>
</body>
</html>
VOTES
CAST OR COUNTING
DEFAULT.ASPX.VB
DEFAULT.ASPX.VB
Partial Class _Default
Inherits
System.Web.UI.Page
Public RD As
String
Protected Sub
Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles
Button1.Click
RD = Request.Form("RB")
If RD = "RB1" Then
Application("A") = Application("A") + 1
ElseIf RD = "RB2" Then
Application("B") = Application("B") + 1
Else
Application("C") = Application("C") + 1
End If
End Sub
End Class
DEFAULT.ASPX
<%@
Page Language="VB" AutoEventWireup="false"
CodeFile="Default.aspx.vb" Inherits="_Default" %>
<!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html
xmlns="http://www.w3.org/1999/xhtml">
<head
runat="server">
<title>Untitled
Page</title>
</head>
<body>
<form
id="form1" runat="server">
<div>
Can You Score 75 Percent or more marks in XII Board Exam?<br />
<asp:RadioButton ID="RB1" runat="server"
GroupName="RB" Text="YES" />
<br />
<asp:RadioButton ID="RB2" runat="server"
GroupName="RB" Text="NO" />
<br />
<asp:RadioButton ID="RB3" runat="server"
GroupName="RB" Text="CANT SAY" />
<br />
<asp:Button ID="Button1" runat="server"
Text="SUBMIT" Width="221px" />
<br />
<br />
<br />
VOTES RESULT IS<br />
<br />
YES <%
Response.Write(Application("A"))%><br
/>
<br />
NO<%
Response.Write(Application("B"))%><br
/>
<br />
CANT SAY<%
Response.Write(Application("C"))%>
<br />
</div>
</form>
</body>
</html>
ASP.NET
code to display a report of client IP Address, Browser etc.
<%@ Page Language="VB"
AutoEventWireup="false" CodeFile="Default.aspx.vb"
Inherits="_Default" %>
<!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<body>
<p>
<b>You are browsing this site
with:</b>
<%Response.Write(Request.ServerVariables("http_user_agent"))%>
</p>
<p>
<b>Your IP address
is:</b>
<%Response.Write(Request.ServerVariables("remote_addr"))%>
</p>
<p>
<b>The DNS lookup of the IP
address is:</b>
<%Response.Write(Request.ServerVariables("remote_host"))%>
</p>
<p>
<b>The method used to call
the page:</b>
<%Response.Write(Request.ServerVariables("request_method"))%>
</p>
<p>
<b>The server's domain
name:</b>
<%Response.Write(Request.ServerVariables("server_name"))%>
</p>
<p>
<b>The server's
port:</b>
<%Response.Write(Request.ServerVariables("server_port"))%>
</p>
<p>
<b>The server's
software:</b>
<%
Response.Write(Request.ServerVariables("server_soft"))%>
</p>
</body>
</html>
ASP.NET code to display
Server Side Time along with client-side script to display Client Side
Time.
Source Code: -
<%@ Page Language="VB"
AutoEventWireup="false" CodeFile="Default.aspx.vb"
Inherits="_Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Untitled Page</title>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<%
Response.Write("<font color=blue size=5>Server Side
Information</font><br> Current Date is: - " & Today()
& "<br> Current time is: - " & TimeOfDay() &
"<br> Month Name is : -" & MonthName(Month(Today())) &
"<br>Weekday Name is: - " & WeekdayName(Weekday(Today))
& "<br> <font color=blue size= 5><b>Client
Side Information: -</b></font><br>")%>
<script language=javascript>
var d = new Date()
var time = d.getHours()
var mn=d.getMonth()
var monthNames = [
"January", "February", "March",
"April", "May", "June",
"July", "August", "September",
"October", "November", "December" ];
var dayNames = [
"Sunday", "Monday", "Tuesday",
"Wednesday", "Thursday", "Friday",
"Saturday" ];
var objDate = new Date(),
locale =
"en_us",
month =
objDate.toLocaleString(locale, { month: "long" });
var currentDate = new Date()
var
day = currentDate.getDate()
var
month = currentDate.getMonth() + 1
var
year = currentDate.getFullYear()
document.write("<b>Current
date is: -" + day + "/" + month + "/" + year +
"</b>")
var currentTime=new Date()
var hr =
currentTime.getHours()
var min=
currentTime.getMinutes()
var
sec=currentTime.getSeconds()
document.write
("<br>Current Time is: -" + hr + ":" + min +
":" + sec);
document.write("<br>The
current month is:- " + monthNames[d.getMonth()]);
document.write("<br>The
current weekday is:- " + dayNames[d.getDay()]);
</script>
<form
id="form1" runat="server">
<div>
</div> </form></body></html>
Hit
Counter
<%@ Page Language="VB"
AutoEventWireup="false" CodeFile="Default.aspx.vb"
Inherits="_Default" %>
<!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html
xmlns="http://www.w3.org/1999/xhtml">
<head
runat="server">
<title>Untitled Page</title>
</head>
<body>
<form
id="form1" runat="server">
<div>
<%
Application.Lock()
Application("COUNTER") = Application("COUNTER") + 1
Application.UnLock()
%>
</div>
</form>
<table
border=10 >
<tr>
<th>
<%
Response.Write("TOTAL NO OF VISITS TO THE WEB SITE ARE " &
Application("COUNTER"))%>
</th>
</tr>
</table>
</body></html>
No comments:
Post a Comment