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: PHP
21 Sep 2009Session is global variable which mainly use to send data from one page to another. Session variables allow you to store “global” data for use by all your pages and are specific or unique to each visitor to your site.” Using sessions you can transfer data between various pages. If you are using sessions then [...]
In: JavaScript
10 Sep 2009Sometime we have to select a series of the check boxes and same to deselect.Ya generally we can use two button which will call seperate function for each button’s onclick event. But some time we need to do some things else means why not use a single button to toggle selection. When you select [...]
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: Wallpaper
9 Sep 20091. Nature leaves wallpaper
2. The Falls
3. Windows 7 Energize
4. Character
5. Ferrai
6. Barren Border
7. Colors of New England
8. Mystic Forest
9. Energy Flow
10. Blue Sky
11. Lough Key Forest Park
12. Grasmere Village
13. Washington Azaleas
14. Windows 7
15. Landscape
16. Windows 7
17. Natural Windows
18. Vista Inspiration in Windows 7
19. Windows 7
20. The Energy
[...]
In: WP Layout| Word Press
7 Sep 2009Welcome, In most of the cases I found lots of user want to change login of wordpress. Because they want have their own login layout. In this tutorial I will show a very simple step to change image of your login page.
First of all you must know your login page. It is wp-login.php in your [...]
