Facebook like drop down menu using jQuery
January 24, 2013 Leave a comment
Today we will see a drop down menu like a facebook notification. We are using a jquery here. The code we use here is very easy and short.
#nikx { background-color: #030000; }
January 16, 2013 Leave a comment
Today we will see the Animated Textbox which on focus stretch and on de-focus shrink to a particular size.
Here we are using jquery, css. This will reduce the occupied area by tradional search box. As shown in following image.
December 5, 2012 Leave a comment

Today’s topic is CSS Box Model – Border, Margin and Padding
What is box model?
Margin, border, padding and contents of the element are together known as the The Box Model.
We don’t have to use all of these. But its good to keep box model in mind.
The graphical representation of The Box Model is as… Read more of this post
July 27, 2012 1 Comment

Safari, Chrome, Firefox, Opera, Internet Explorer – all major browser supports CSS Gradients. Internet Explorer doesn’t support all CSS Gradient properties. The features like gradient repeat, gradient angle, and radial gradient are not supported by Internet Explorer. It supports only horizontal and vertical linear gradient with two colors.
July 25, 2012 Leave a comment
Here we study about the jquery function. By using function we can use same code for multiple times. Here I have created the Add function which I can use for no. of times.
The code is as follows
<!DOCTYPE html>
<html>
<head>
<title>Passing Value Through Function</title>
<script type="text/javascript" src="js/jquery-1.7.2.min.js"></script>
</head>
<body>
<input type="text" id="textboxone">+
<input type="text" id="textboxtwo">=<span style="padding:0 10px;"></span>
<button id="addbutton">Add</button>
<script>
$("#addbutton").click(function(){
var a=$("#textboxone").val();
var b=$("#textboxtwo").val();
var d=addnumbers(a,b);
$("span").append(d)
});
function addnumbers(a,b)
{
var c=Number(a)+Number(b);
return c;
}
</script>
</body>
</html>
Comments