In: JQUERY
16 Jun 20101. sohtanaka
2. Chapagain
3. Realistic Hover Effect
4. PaperMashup
5. MattBango
6. Queness
7. Andreaslagerkvist
8. Zoomer Gallery
9. Tympanus
10. tympanus
In: JQUERY
23 Sep 2009Adding and removing and toggle CSS classes is a effective method to highlight changes in web pages. jQuery provides different Attributes for .addClass(), .removeClass() and toggleClass methods.
addClass():
jQuery:
<script type=”text/javascript”>
$(document).ready(function(){
$(”p.list”).click(function(){
$(this).addClass(”active”);
});
});
</script>
The CSS:
<style type=”text/css”>
p{
float: left;
width: 33.3%;
padding: 0;
margin: 0;
}
.block {
margin-right: 10px;
padding: 20px;
background: #fff;
}
.active {background: #ccc;}
</style>
removeClass():
jQuery:
$(document).ready(function(){
$(”p.list”).click(function(){
$(this).removeClass(”list”);
});
});
The CSS:
<style type=”text/css”>
p {
float: left;
width: 33.3%;
padding: 0;
margin: 0;
margin-right: 10px;
padding: 20px;
}
.list{
margin-right: 10px;
padding: 20px;
background: #CCCCCC;
}
</style>
toggleClass():
jQuery:
<script>
$(document).ready(function(){
$(”p.list”).click(function(){
$(this).toggleClass(”active”);
});
});
</script>
The CSS:
<style type=”text/css”>
p{
float: left;
width: [...]
In: JQUERY
9 Sep 2009According to jQuery “The jQuery UI Draggable plugin makes selected elements draggable by mouse.”
In this tutorial I am going to show you how easily you can create a dragable elements.
HTML CODE:
<div class=”fixedDragableDiv”>
<div class=”fixedDragableDivBar”>Click Here To Drag</div>
<div class=”dragable”>OK You can see the effect here. This box is dragable
if you click on the Click Here To [...]
This tutorial explain you how you can create a dynamic scrolling content box which load more contents when user scrolls to the bottom of the box.
HTML CODE:
<!–Main Wrapper and Content Scrollbox–>
<div id=”wrapper”>
<div id=”scrollbox” >
<div id=”content” >
<p>Visit Nepal 2010</p>
<p>Places in Nepal</p>
<p>When to go & weathere</p>
<p>Getting there & around</p>
<p>Practical information</p>
<p>History & Culture</p>
<p>Work & study</p>
<p>Tips & [...]
In this tutorial you will learn to select a top level category from one select box and to automatically populate the sub-category. If you are familiar with using select boxes for categorisation and sub-categories, jQuery can hugely simplify this task by adding a dash of AJAX.
In this method once the top level category select [...]
In: JQUERY
15 Aug 2009In the web development world there has been one Javascript framework which has really made it’s mark over the last couple of years. I am of course talking about jQuery. Everyone is using it including Google, Wordpress, Drupal, Mozilla, Digg… and the list goes on. And there is good reason for this, mainly that it [...]
