Search Topic Here

Tuesday, 18 December 2012

HTML Code for checking password Strength

Hi friends today  i will give  the  html code for checking password strength....
copy and save the following code.

<script>
function findStrength(v){
len = v.length;
//alert(len);
if(len>12) len=12;
document.getElementById('pic').src = "images/"+len+".png";
if(len<6){
document.getElementById('weak').innerHTML = 'Weak Password';
document.getElementById('weak').style.color='red';
}
else if(len>=6 && len<9){
document.getElementById('weak').innerHTML = 'Normal Password';
document.getElementById('weak').style.color='green';
}
else if(len>=9 && len<=12){
document.getElementById('weak').innerHTML = 'Strong Password';
document.getElementById('weak').style.color='blue';
}
}
</script>
<body>
<form>
Enter Password : <input type='password' name='pwd' value='' onkeyup="javascript:findStrength(this.value);"/> <img src="images/0.png" border='1' id='pic'/> <span id='weak'></span>
</form>
</body>
Save this code as passwordstrength.html


















copy that symbols and save as 0,1,2,3,..........12 respectively into a file named as images....
then place that html file and this images in the same folder then double click on that passwordstrength.html


Saturday, 15 December 2012

My self

My self china veerreddy
i am trying to become a java professional
you want to see my resumethen go to the following link
 
java professional

Wednesday, 12 December 2012

usage of hr tag


usage of <hr>;
The <hr> tag defines a thematic break in an HTML page (e.g. a shift of topic).
The <hr> element is used to separate content (or define a change) in an HTML page.

Attributes

AttributeValueDescription
alignleft
center
right
Not supported in HTML5. Deprecated in HTML 4.01.Specifies the alignment of a <hr> element
noshadenoshadeNot supported in HTML5. Deprecated in HTML 4.01.Specifies that a <hr> element should render in one solid color (noshaded), instead of a shaded color
sizepixelsNot supported in HTML5. Deprecated in HTML 4.01.Specifies the height of a <hr> element
widthpixels
%
Not supported in HTML5. Deprecated in HTML 4.01.Specifies the width of a <hr> element



example program:

<html>
<body>

<h1>HTML</h1>
<p>HTML is a language for describing web pages.</p>

<hr color=green>

<h1>CSS</h1>
<p>CSS defines how to display HTML elements.</p>

</body>
</html>

output:

HTML

HTML is a language for describing web pages.

CSS

CSS defines how to display HTML elements.

Tuesday, 11 December 2012

html code for login page

html code for login page

how play a song in web browser using html


<html>
     <body>
          <marquee direction='alternate'><font color=#225571 size='5'>playing a song</marquee>
           <embed src="enjoy.mp3" autostart="true">
      </body>
 </html>
place your song name with extension at enjoy.mp3

special html tag-->marquee

i like this html tag..marquee
*************
<html>
     <body>
          <marquee direction='alternate'><font color=#225571 size='5'>welcome to html special tags blog</marquee>
      </body>
 </html>
save as    .html extension and check  it...out put as below


welcome to html special tags blog