Posts

Use of CSS without frames

1) style1.html <html> <head> <title>Style sheet 1 </title> <link rel=stylesheet type=text/css href=style1.css> </head> <body> <h1>India is my country</h1> <h2>India is my country</h2> <h3>India is my country</h3> <h4>India is my country</h4> <h5>India is my country</h5> </body> </html> style1.css <style type=text/css> <!-- body{background-color:black}; h1{color:blue; background-color:red;     text-decoration:line-through;     position:absolute;top:200px;left:400px;     font-family:"Comic Sans MS";     text-align:center}; h2{color:yellow;background-color:blue;     text-decoration:line-through;     position:absolute;top:120px;left:330px;     font-family:"Lucida Handwriting";     text-align:center}; h3{color:red;background-color:white;  ...

ASP.NET (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>Hit Counter</title> </head> <body>     <form id="form1" runat="server">     <div>     <%  Application.Lock()         Application("counter") = Application("counter") + 1         Application.UnLock()         Response.Write("<h1 align=center>")         Response.Write("Total number of visits to the website are ")         Response.Write(Application("counter"))    ...

Online Admission Form

<html> <head> <title>Online Form </title> </head> <body bgcolor=orange> <hr size=10 color=green> <marquee behavior=alternate bgcolor=blue> <h1> <font face="comic sans ms" color=white>Online Admission Form</font> </h1> </marquee> <hr size=10 color=maroon> <h3> <form> Enter Your Name :- <input type=text name=nm size=35> <br><br> Your Address :- &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <textarea> Tal - Dist - Kolhapur </textarea> <br><br> Email Address :- &nbsp;&nbsp;&nbsp;&nbsp; <input type=text name=ea size=40> <br><br> Contact No. :- &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; <input type=text size=15 maxlength=13> <br><br> Select Category :- &nbsp;&nbsp; <select> <option>Open</option> <option>SC</option> <option>NT...

Calculator

<html> <head> <title>Calculator </title> </head> <body bgcolor=brown text=white> <center> <script language=javascript> function ad() { var no1,no2,rs no1=parseInt(n1.value) no2=parseInt(n2.value) rs=no1+no2 n3.value=rs } function sb() { var no1,no2,rs no1=parseInt(n1.value) no2=parseInt(n2.value) rs=no1-no2 n3.value=rs } function ml() { var no1,no2,rs no1=parseInt(n1.value) no2=parseInt(n2.value) rs=no1*no2 n3.value=rs } function dv() { var no1,no2,rs no1=parseInt(n1.value) no2=parseInt(n2.value) rs=no1/no2 n3.value=rs } function rm() { var no1,no2,rs no1=parseInt(n1.value) no2=parseInt(n2.value) rs=no1%no2 n3.value=rs } </script> <hr size=10 color=yellow> <table> <tr> <td><h2>Enter no 1 :-&nbsp; <td><input type=text name=n1 size=15> <td><h2>&nbsp;&nbsp;&nbsp;Enter no 2 :-&nbsp; <td><input type=text name=n2 size=15> </tr></table> <h...

Swapping with only two variables

<html> <head> <title>Swapping with only two variables </title> </head> <body bgcolor=yellow text=white> <script language=javascript> document.write("<center>") var no1,no2 no1=parseInt(prompt("Enter Number 1")) no2=parseInt(prompt("Enter Number 2")) document.write("<div style=background-color:brown;width:600px;height:400px>") document.write("<br>") document.write("<br>") document.write("<h1>"+"Before swapping"+"<br>") document.write("</h1>") document.write("<h2>") document.write("First number is "+no1+"<br>") document.write("<br>") document.write("Second number is "+no2+"<br>") document.write("</h2>") no1=no1+no2 no2=no1-no2 no1=no1-no2 document.write("<h1>"+"After swapping"+...

Greetings

<html> <head> <title>Greetings</title> </head> <body> <script language=javascript> var dt,h dt=new Date() alert("Todays date and time is "+dt) h=dt.getHours() alert("Current hours is "+h) if((h>=6)&&(h<12)) { alert("Good morning....!!!") } else if((h>12)&&(h<16)) { alert("Good afternoon....!!!") } else if((h>=16)&&(h<20)) { alert("Good evening....!!!") } else if((h>=20)&&(h<23)) { alert("Good night....!!!") } </script> </body> </html>

Colour Animation.

  Colour Animation using button <html> <head> <title>Colour Animation using button </title> <script language=javascript>     function f1() {     document.bgColor="red"     document.fgColor="aqua"     window.setTimeout("f2()",800) }     function f2() {     document.bgColor="violet"     document.fgColor="purple"     window.setTimeout("f3()",800) }     function f3() {     document.bgColor="purple"     document.fgColor="orange"     window.setTimeout("f4()",800) }     function f4() {     document.bgColor="orange"     document.fgColor="blue"     window.setTimeout("f5()",800) }     function f5() {     document.bgColor="hotpink"     document.fgColor="yellow"     w...