Wednesday, 29 October 2014

Beautiful Design Login Page

Login.jsp


<%@ page contentType="text/html; charset=iso-8859-1" language="java" import="java.sql.*" errorPage="" %>
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Registration Page</title>
<link  rel="stylesheet" href="style3.css" type="text/css"/>
</head>

<body>
    <div id="body" align="center">
        <h3>Jquery - CSS - Registration</h3>
        <div id="container">
            <div id="login">
                <b>Login Form</b>
                <br />
                <form>
                    User Name : <br /><input type="text" />
                    <br /><br />
                    Password : <br /><input type="password" />
                    <br /><br />
                    <input type="submit" />
                    <br /><br />
                    <button>Don't have Account ? Register Now</button>
                </form>
           
            </div>
        </div>
    </div>

<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="index.js"></script>
</body>
</html>


Style.css
body{
font-family:tahoma;
font-size:12px;
background:#333;
color:#fff;
}
#body{
margin:100px auto;
width:50%;
}
#container{
width:250px;
}
#login{
background:#fff;
padding:10px;
width:280px;
border-radius:10px;
height:300px;
color:#333;
}
form{
margin:10px;
}
input{
background:#fff;
content:#333;
padding:5px;
font-family:tahoma;
font-size:12px;
border:0px;
box-shadow:0 0 5px #000;
border-radius:5px;
margin:10px;
}
button{
background:#ff4800;
color:#fff;
border-radius:5px;
border:0px;
padding:10px;
font-size:12px;
font-family:tahoma;
}
button:hover{
color:#ff4800;
background:#fff;
cursor:pointer;
}

Output



Friday, 26 September 2014

What is JQuery ?? JQuery Features ??

  • JQuery is a fast and concise Javascript Library created by John Resig in 2006 with a nice motto : "Write Less, Do More"
  • JQuery simplifies HTML Documents traversing, event handling, animating, and Ajax interactions for rapid web developments.
  • JQuery is a javascript toolkit designed to simplify various tasks by writing less code. Here is the list of important core features supported by JQuery.


JQuery Featues
  • DOM Manipulation:
  • Event Handling
  • AJAX Support
  • Animations
  • Lightweight
  • Cross Browser Support
  • Latest Technology


JQuery Example :
 
<html>
<head>
<title>The jQuery Example</title>
   <script type="text/javascript" 
   src="/jquery/jquery-1.3.2.min.js"></script>
   <script type="text/javascript">
      // you can add our javascript code here 
   </script>   
</head>
<body>
     ........
</body>
</html>

Saturday, 26 July 2014

Write a Program to Prints Prime Numbers using java



package topstechnology;import java.util.*;
public class primenumber {
    public static void main(String []args)
  {
    Scanner sc = new Scanner(System.in);
    int i,n,res;
    boolean flag=true;
    System.out.println("Enter the No.");
    n = sc.nextInt();
    for(i=2;i<=n/2;i++)
    {
        res = n%i;
        if(res==0)
        {
                flag =false;
                break;
        }
    }
    if(flag)
            System.out.println(n + " is Prime Number");
        else
            System.out.println(n + " is not Prime Number");
    }
}


OutPut

 




Write a Program to Calculate Fibonacci Series using Do-while Loop for Java

public class fibonacci
{
              public static void main(String []args)
              {
                       int pre = 0;
                       int next - 1;
                       int current;
                       System.out.println(pre);
                       System.out.println(next);

                       do  
                      {
                             current = next + pre;
                             System.out.println(current);
                           
                              pre = next;
                              next = current;
                           
                      }
                      while(next<=100);
                 
               }
                  
}

Output

Write a Program that calculates and prints the simple interest using the formula : Simple Interest = PNR/100

import java.util.Scanner;

public class Main {

    public static void main(String[] args) {

        int p,n,r,Ans;
        Scanner sc = new Scanner(System.in);
        System.out.println("Enter the Value of P : ");
        p = sc.nextInt();
        System.out.println("Enter the Value of N : ");
        n = sc.nextInt();
        System.out.println("Enter the Value of R : ");
        r = sc.nextInt();

        Ans = (p*n*r)/100;
        System.out.println("Interest is : "+Ans);
       
    }

}




OutPut :






Thursday, 17 July 2014

Calculated Value Entered By User Using Java Program

import java.util.Scanner;
class first
{
    Scanner sc = new Scanner(System.in);
    void Add()
    {   
        int a,b,c;
        System.out.println("Enter the Value of A:");
        a=sc.nextInt();
        System.out.println("Enter the value of B:");
        b = sc.nextInt();
        c=a+b;
        System.out.println(c);
    }
    void Minus()
    {
        int x,y,z;
        System.out.println("Enter the value of X:");
        x=sc.nextInt();
        System.out.println("Enter the value of Y:");
        y=sc.nextInt();
        z = x-y;
        System.out.println(z);
    }
    void Mul()
    {
        int a,b,c;
        System.out.println("Enter the value of A:");
        a = sc.nextInt();
        System.out.println("Enter the value of B:");
        b = sc.nextInt();
        c=a*b;
        System.out.println(c);
       
       
    }

void Div()
    {
        int a,b,c;
        System.out.println("Enter the value of A:");
        a = sc.nextInt();
        System.out.println("Enter the value of B:");
        b = sc.nextInt();
        c=a/b;
        System.out.println(c);
       
       
    }

void Mod()
    {
        int a,b,c;
        System.out.println("Enter the value of A:");
        a = sc.nextInt();
        System.out.println("Enter the value of B:");
        b = sc.nextInt();
        c=a%b;
        System.out.println(c);
       
       
    }
   
}
class second
{
    public static void main(String args[])
    {
        first f = new first();
        f.Add();
        f.Minus();
        f.Mul();
        f.Div();
        f.Mod();
    }
}

OutPut


Wednesday, 16 July 2014

Simple Hellow World Program using Java Programming Language

class test
{
    public static void main(String args[])
    {
        System.out.println("Hello World:");
    }
}


OutPut :


Followers