Creative Minds
This site is for the creative students
Wednesday, 3 August 2016
Saturday, 28 May 2016
Create Simple home page contains frames
creatinhg following html pages:
Note:HTML 5 not support frameset tags insted HTML 5 uses iframe tags
index.html
top.html
bottum.html
Description.html
menu.html
register.html
login.html
index.html(it is a home page contains frames)
<head>
<title>online student informatin maintain system</title>
</head>
<frameset rows="22%,67%,11%">
<frame src="top.html" noresize></frame>
<frameset cols="10%,*">
<frame src="menu.html" scrolling=no noresize>
<frame name="ContentArea" src="description.html">
</frameset>
<frame src="botum.html"></frame>
</frameset>
top.html
<html>
<body>
<center>
<table border=0>
<tr>
<td>
<img src="images\log.jpg" width=300 height=100></img>
</td>
<th>
<img src="images\make.jpg" width=300 height=100></img>
</th>
<td>
<img src="images\flw.jpg" width=150 height=100></img>
</td>
</tr>
</table>
</center>
</body>
</html>
bottum.html
<html>
<body>
<center>
<p>All Rights Reserved @Saai Software Technologies</p>
</center></body>
</html>
description.html
<html>
<body text=blue bgcolor=#a0b0c0>
<marquee behavior=alternate>
<h1 align="center">Welcome To Student Information Maintain System</h1>
</marquee>
<p>
<font face="Calibri" size="4">
Our Portal is used to collect all students information through online and store in the server database.
</font></p>
<p>
<font face="Calibri" size="4">
This site is to provide the students to login and to check their details
</font></p>
</body>
</html>
menu.html
<html>
<body>
<a href="registration.html" target="ContentArea">Student Register</a>
<br>
<br>
<a href="login.html" target="ContentArea" >Login Student</a>
<br>
<br>
</body>
</html>
register.html
<html>
<head>
<title>WELCOME TO REGISTRATION PAGE</title>
</head>
<body>
<center>
<font size=8> Registration Form </font>
</center>
<form>
<table width=100% border=0>
<tr>
<th>Name:</th>
<td>
<input type="textfield" name="txt">
</td>
</tr>
<tr>
<th>Password:</th>
<td>
<input type="password" name="pas">
</td>
</tr>
<tr>
<th>Address:</th>
<td>
<textarea name="txtar" cols=20 rows=6>address</textarea>
</td>
</tr>
<tr>
<th>Email id:</th>
<td>
<input type="textfield" name="txt1">
</td>
</tr>
<tr>
<th>Phone number:</th>
<td>
<input type="textfield" name="txt2" maxlength=10>
</td>
</tr>
<tr>
<th>Sex:</th>
<td>
<input type="radio" name="rdbutton" value="val1">Male
<input type="radio" name="rdbutton" value="val2">Female
</td>
</tr>
<tr>
<th>Date of Birth:</th>
<td>
<select name="day">
<option value="1">1</option> <option value="2">2</option>
<option value="3">3</option> <option value="4">4</option>
<option value="5">5</option> <option value="6">6</option>
<option value="7">7</option> <option value="8">8</option>
<option value="9">9</option> <option value="10">10</option>
<option value="11">11</option> <option value="12">12</option>
<option value="13">13</option> <option value="14">14</option>
<option value="15">15</option> <option value="16">16</option>
<option value="17">17</option> <option value="18">18</option>
<option value="19">19</option> <option value="20">20</option>
<option value="21">21</option> <option value="22">22</option>
<option value="23">23</option> <option value="24">24</option>
<option value="25">25</option> <option value="26">26</option>
<option value="27">27</option> <option value="28">28</option>
<option value="29">29</option> <option value="30">30</option>
<option value="31">31</option>
</select>
<select name="month">
<option value="jan">Jan</option>
<option value="feb">Feb</option>
<option value="mar">Mar</option>
<option value="apr">Apr</option>
<option value="may">May</option>
<option value="jun">Jun</option>
<option value="jul">Jul</option>
<option value="aug">Aug</option>
<option value="sep">Sep</option>
<option value="oct">Oct</option>
<option value="nov">Nov</option>
<option value="dec">Dec</option>
</select>
<select name="year">
<option value="1991">1991</option>
<option value="1992">1992</option>
<option value="1993">1993</option>
<option value="1994">1994</option>
<option value="1995">1995</option>
<option value="1996">1996</option>
<option value="1997">1997</option>
<option value="1998">1998</option>
<option value="1999">1999</option>
<option value="2001">2001</option>
<option value="2002">2002</option>
<option value="2003">2003</option>
<option value="2004">2004</option>
<option value="2005">2005</option>
<option value="2006">2006</option>
<option value="2007">2007</option>
<option value="2008">2008</option>
<option value="2009">2009</option>
<option value="2010">2010</option>
<option value="2011">2011</option>
<option value=2012>2012</option>
</select>
<tr>
<th>Languages known:</th>
<td>
<font size=4>
English : <input type="checkbox" name="c1" value="c1"><br>
Telugu : <input type="checkbox" name="c2" value="c2"><br>
Hindi : <input type="checkbox" name="c3" value="c3"><br>
Tamil : <input type="checkbox" name="c4" value="c4"><br>
</font>
</td>
</tr>
<tr>
<th>
<input type="submit" value="Submit">
</th>
<td>
<input type="reset" value="Reset"></td>
</tr>
</table>
</form>
</body>
</html>
login.html
Note:HTML 5 not support frameset tags insted HTML 5 uses iframe tags
index.html
top.html
bottum.html
Description.html
menu.html
register.html
login.html
index.html(it is a home page contains frames)
<head>
<title>online student informatin maintain system</title>
</head>
<frameset rows="22%,67%,11%">
<frame src="top.html" noresize></frame>
<frameset cols="10%,*">
<frame src="menu.html" scrolling=no noresize>
<frame name="ContentArea" src="description.html">
</frameset>
<frame src="botum.html"></frame>
</frameset>
top.html
<html>
<body>
<center>
<table border=0>
<tr>
<td>
<img src="images\log.jpg" width=300 height=100></img>
</td>
<th>
<img src="images\make.jpg" width=300 height=100></img>
</th>
<td>
<img src="images\flw.jpg" width=150 height=100></img>
</td>
</tr>
</table>
</center>
</body>
</html>
bottum.html
<html>
<body>
<center>
<p>All Rights Reserved @Saai Software Technologies</p>
</center></body>
</html>
description.html
<html>
<body text=blue bgcolor=#a0b0c0>
<marquee behavior=alternate>
<h1 align="center">Welcome To Student Information Maintain System</h1>
</marquee>
<p>
<font face="Calibri" size="4">
Our Portal is used to collect all students information through online and store in the server database.
</font></p>
<p>
<font face="Calibri" size="4">
This site is to provide the students to login and to check their details
</font></p>
</body>
</html>
menu.html
<html>
<body>
<a href="registration.html" target="ContentArea">Student Register</a>
<br>
<br>
<a href="login.html" target="ContentArea" >Login Student</a>
<br>
<br>
</body>
</html>
register.html
<html>
<head>
<title>WELCOME TO REGISTRATION PAGE</title>
</head>
<body>
<center>
<font size=8> Registration Form </font>
</center>
<form>
<table width=100% border=0>
<tr>
<th>Name:</th>
<td>
<input type="textfield" name="txt">
</td>
</tr>
<tr>
<th>Password:</th>
<td>
<input type="password" name="pas">
</td>
</tr>
<tr>
<th>Address:</th>
<td>
<textarea name="txtar" cols=20 rows=6>address</textarea>
</td>
</tr>
<tr>
<th>Email id:</th>
<td>
<input type="textfield" name="txt1">
</td>
</tr>
<tr>
<th>Phone number:</th>
<td>
<input type="textfield" name="txt2" maxlength=10>
</td>
</tr>
<tr>
<th>Sex:</th>
<td>
<input type="radio" name="rdbutton" value="val1">Male
<input type="radio" name="rdbutton" value="val2">Female
</td>
</tr>
<tr>
<th>Date of Birth:</th>
<td>
<select name="day">
<option value="1">1</option> <option value="2">2</option>
<option value="3">3</option> <option value="4">4</option>
<option value="5">5</option> <option value="6">6</option>
<option value="7">7</option> <option value="8">8</option>
<option value="9">9</option> <option value="10">10</option>
<option value="11">11</option> <option value="12">12</option>
<option value="13">13</option> <option value="14">14</option>
<option value="15">15</option> <option value="16">16</option>
<option value="17">17</option> <option value="18">18</option>
<option value="19">19</option> <option value="20">20</option>
<option value="21">21</option> <option value="22">22</option>
<option value="23">23</option> <option value="24">24</option>
<option value="25">25</option> <option value="26">26</option>
<option value="27">27</option> <option value="28">28</option>
<option value="29">29</option> <option value="30">30</option>
<option value="31">31</option>
</select>
<select name="month">
<option value="jan">Jan</option>
<option value="feb">Feb</option>
<option value="mar">Mar</option>
<option value="apr">Apr</option>
<option value="may">May</option>
<option value="jun">Jun</option>
<option value="jul">Jul</option>
<option value="aug">Aug</option>
<option value="sep">Sep</option>
<option value="oct">Oct</option>
<option value="nov">Nov</option>
<option value="dec">Dec</option>
</select>
<select name="year">
<option value="1991">1991</option>
<option value="1992">1992</option>
<option value="1993">1993</option>
<option value="1994">1994</option>
<option value="1995">1995</option>
<option value="1996">1996</option>
<option value="1997">1997</option>
<option value="1998">1998</option>
<option value="1999">1999</option>
<option value="2001">2001</option>
<option value="2002">2002</option>
<option value="2003">2003</option>
<option value="2004">2004</option>
<option value="2005">2005</option>
<option value="2006">2006</option>
<option value="2007">2007</option>
<option value="2008">2008</option>
<option value="2009">2009</option>
<option value="2010">2010</option>
<option value="2011">2011</option>
<option value=2012>2012</option>
</select>
<tr>
<th>Languages known:</th>
<td>
<font size=4>
English : <input type="checkbox" name="c1" value="c1"><br>
Telugu : <input type="checkbox" name="c2" value="c2"><br>
Hindi : <input type="checkbox" name="c3" value="c3"><br>
Tamil : <input type="checkbox" name="c4" value="c4"><br>
</font>
</td>
</tr>
<tr>
<th>
<input type="submit" value="Submit">
</th>
<td>
<input type="reset" value="Reset"></td>
</tr>
</table>
</form>
</body>
</html>
login.html
<html> <head> <title>Login Form</title> </head> <body text=blue bgcolor=#a0b0c0> <form> <center> <table border=0> <tr> <th colspan=2>LOGIN FORM</th> </tr> <tr></tr> <tr> <td> <font size=4>User Name:</font> </td> <td><input type="text" name="txtfld"></td> </tr> <tr></tr> <tr> <td><font size=4>Password:</font></td> <td><input type="password" name=passfld></td> </tr> <tr></tr> <tr> <td align=center> <input type=submit value="Submit"> </td> <td align=center> <input type=reset value="Reset"> </td> </tr> </table> </center> </form> </body> </html>
output:
Create Droup Down Menus /Sub Menus in Main Menu
<head>
<title> Menu Example</title>
<style type="text/css" media="screen">
#horizontalmenu ul
{
padding:1; margin:1; list-style:none;
}
#horizontalmenu li
{
float:left; position:relative; padding-right:100; display:block;
border:4px solid #CC55FF;
border-style:inset;
}
#horizontalmenu li ul
{
display:none;
position:absolute;
}
#horizontalmenu li:hover ul
{
display:block;
background:red;
height:auto; width:8em;
}
#horizontalmenu li ul li
{
clear:both;
border-style:none;
}
</style>
</head>
<body>
<div id="horizontalmenu">
<ul> <li><a href="#">News</a>
<ul> <li><a href="#">National</a></li> <li><a href="#">International</a></li> <li><a href="#">Sport</a></li> <li><a href="#">Hollybood</a></li> </ul>
</li>
<li>
<a href="#">Technology</a>
<ul> <li><a href="#">IT/Software</a></li> <li><a href="#">Hardware</a></li> <li><a href="#">Iphone</a></li> <li><a href="#">Neuro-Science</a></li> </ul>
</li>
<li>
<a href="#">Sports</a>
<ul> <li><a href="#">Cricket</a></li> <li><a href="#">Tenis</a></li> <li><a href="#">Badminton</a></li> <li><a href="#">Hockey</a></li> </ul>
</li>
<li>
<a href="#">Country</a>
<ul> <li><a href="#">India</a></li> <li><a href="#">America</a></li> <li><a href="#">France</a></li> <li><a href="#">Pakistaan</a></li> </ul>
</li>
</ul>
</div>
</body>
</html>
output:
Wednesday, 18 May 2016
control statements in java
difference between while loop and dowhile loop example
do while loop example program:
public class DoTest {
public static void main(String args[]){
int x =20;
do
{
System.out.print("value of x : " + x );
x++;
System.out.print("\n");
}
while( x < 20 );
}
}
output :
while loop example program:
public class WhileTest {
public static void main(String args[]){
int x =20;
while( x < 20 )
{
System.out.print("value of x : " + x );
x++;
System.out.print("\n");
}
}
}
output:
do while loop example program:
public class DoTest {
public static void main(String args[]){
int x =20;
do
{
System.out.print("value of x : " + x );
x++;
System.out.print("\n");
}
while( x < 20 );
}
}
output :
while loop example program:
public class WhileTest {
public static void main(String args[]){
int x =20;
while( x < 20 )
{
System.out.print("value of x : " + x );
x++;
System.out.print("\n");
}
}
}
output:
Monday, 16 May 2016
what are the ways to download youtube videos without software
1)
You just replace youtube as ssyoutube on the youtube video link which you want to download and then
press enter. You will see a download button with lots of other video quality
options like 720p , 1080p or 360p
https://www.ssyoutube.com/watch?v=PCkob0FCzW8
https://www.ssyoutube.com/watch?v=PCkob0FCzW8
2)
You just replace youtube as youmagictube on the youtube video link which you want to download and then
press enter. You will see a download button with lots of other video quality
options like 720p , 1080p or 360p .https://www.ssyoutube.com/watch?v=PCkob0FCzW8
using magic in between you and tube before y letter in
youtube and press enter button
https://www.youmagictube.com/watch?v=PCkob0FCzW8
Saturday, 14 May 2016
file handling in java
how to create a backup file
import java.io.*;
class BakFileCreator
{
public static void main(String args[]) throws FileNotFoundException,IOException
{
FileInputStream fis=new FileInputStream(args[0]);
FileOutputStream fos=new FileOutputStream(args[0]+".bak");
int data;
while((data=fis.read())!=-1)
{
fos.write(data);
}
System.out.println("backup file is success fully created");
}//main
}//class
output
import java.io.*;
class BakFileCreator
{
public static void main(String args[]) throws FileNotFoundException,IOException
{
FileInputStream fis=new FileInputStream(args[0]);
FileOutputStream fos=new FileOutputStream(args[0]+".bak");
int data;
while((data=fis.read())!=-1)
{
fos.write(data);
}
System.out.println("backup file is success fully created");
}//main
}//class
output
Subscribe to:
Posts (Atom)