Posts

Fiboncci series

<html> <head> <title>Fiboncci series </title> </head> <body bgcolor=brown text=yellow> <h2 align=center> <script language=javascript>     var no1,no2,no3,i     no1=0     no2=1     document.write(no1)     document.write("<br>")     document.write(no2)     document.write("<br>")     i=3 while (i<=20) {     no3=no1+no2     document.write(no3)     no1=no2     no2=no3     i++     document.write("<br>") } </script> </h2> </body> </html>

Series

<html> <head> <title>Series</title> </head> <body bgcolor=black text=white> <script language=javascript>     var i,j document.write("<table border=5 width=1350 height=650>")     for(i=1;i<=10;i++) {     document.write("<tr>")     for(j=1;j<=30;j++)     {     document.write("<th>")     document.write(i*j)     document.write("</th>")     }     document.write("</tr>") } document.write("</table>") </script> </body> </html>

Prime Number

<html> <head> <title>Prime Number</title> </head> <body> <script language=javascript>     var no,i,r,cnt     cnt=0     no=parseInt(prompt("Enter a Number"))     for(i=2;i<=no-1;i++)     {     r=no%i     if(r==0)     {     cnt++     }     }     if(cnt>0)     {     alert("It is not a Prime Number")     }     else     {     alert("It is a Prime Number")     } </script> </body> </html>

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...