Archive for September, 2009

Adding 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: [...]

Session 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 [...]

Dashain Greeting Card

In: eCards

21 Sep 2009

Sometime 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 [...]

jQuery Draggable

In: JQUERY

9 Sep 2009

According 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 & [...]

1. 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
[...]

Welcome, 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 [...]


  • suba: $(this).addClass("active") and $(this).removeClass("hideme") does n't seem to be working in IE7, whe [...]
  • admin: @hadi: please check your code you may have deleted one "}" bracket. [...]
  • hadi: Hi, I get this error Parse error: syntax error, unexpected $end in C:\Users\acer\Desktop\xampp\h [...]
  • SF: High resolution zoom with image tiles: http://www.ajax-zoom.com [...]
  • Alonso: It seems that I didn't post my code properly sorry about that, that was not the problem however I wa [...]
Buy Stock Flash | Buy and Sell Royalty-Free Flash effects music and video files

Free web hostingWeb hosting
Display Pagerank