JavaScript Program of KeyUp to Increase Width With Validation <!doctype html> <html> <head> <meta charset=”utf-8″> <title>Untitled Document</title> <style> #s1{width:0px; height:50px; background-color:red; } </style> </head> <body> <input type=”text” id=”ss” onKeyUp=”sanjay()”> <div id=”s1″></div> <script> a=0; function sanjay() { gg=document.getElementById(“ss”).value; bb=gg.length; a=bb*20; aa=document.getElementById(“s1″); aa.style.width=a+”px”; if(bb>=8) { aa.style.backgroundColor=”green”; } else { aa.style.backgroundColor=”red”; } } </script> </body> </html>
Tag: JavaScript
8 Coolest CSS & JavaScript Text Animation Snippets8 Coolest CSS & JavaScript Text Animation Snippets
8 Coolest CSS & JavaScript Text Animation Snippets: You can make some rather spectacular text effects with basic CSS and a couple of lines of JavaScript. These effects vary from text display animations to 3D rotations or anything else you could picture. And also in this blog post, I’ve cataloged 8 of the coolest instances […]
5 Javascript Scrolling Animation Plugins and Scripts5 Javascript Scrolling Animation Plugins and Scripts
On the internet, animation has ended up being far more than a parlor method for developers to show off their skills. An animation is made use of to develop more sultry user interfaces that feel smoother and easier to use. Natural animation emits a specific vibe of corporeality to interface design. One area that’s seen […]
JavaScript Courses – Why You Should Learn JavaScriptJavaScript Courses – Why You Should Learn JavaScript
JavaScript Courses – Why You Should Learn JavaScript Considering that the start of the web, there have actually been concentrate on various methods for constructing websites. Initially, a plenty the focus was on the browsers and just what you can achieve with the different versions of HTML supported in those browsers. As the browsers […]
Jquery Courses – Benefits of JQuery Over JavaScriptJquery Courses – Benefits of JQuery Over JavaScript
Jquery Courses – Benefits of JQuery Over JavaScript Both JavaScript and jQuery are client side scripting languages utilized for activities such as validation, building visually enticing aspects like elegant gps menus etc. Given that the objective of both the modern technologies (jQuery and JavaScript) is the same, the choice of utilizing a certain innovation […]