Animated Cloud with JQuery

By: Arshad

2 May 2010

I'm rolling out this new jquery plugin today. I developed it for Drupal Mauritius. It's called Cloud.

The plugin homepage can be found here.

Cloud is a jquery plugin that turns li in a list into moving clouds.

There are three ways of centering an element on a page: using margins, using percentages, or using absolute sizes in css. The first method seems to work better for most. But unfortunately, Microsoft Famous Internet Explorer for Windows - has a fairly serious bug regarding the treatment of block level elements and margins. So here's a jquery plugin that solve this problem with ease.

Styling active anchor with jquery

By: Arshad

17 Jan 2010

Snippet to add a class to the current active link for styling with css.

  1. $(document).ready(function(){
  2. //set class active-anchor to active anchor
  3. $('a').each(function(){
  4. if($(this).attr('href')==window.location.search)
  5. $(this).addClass('active-anchor')
  6. });
  7. });

There you go. Now the anchor that points to the current page will have the class active-anchor. You can style it in you css using .active-anchor.

Code to select the content of an input box on click

  1. //set select when clicking on an input
  2. $('input[type=text]').click(function(){
  3. $(this).select();
  4. });

sometimes you want it to occur on focus. replace click(function(){.. by focus(function()...

Selectlink

By: Arshad

31 Dec 2009

Select Link is a jquery plugin that provides a pop up when words on your website are selected.

The plugin can be found here.

This plugin can be used in many ways. Some examples :

About Me

Arshad Chummun Hello I'm Arshad. I'm a 21 years old Drupal Web Developer. This is a site i put up for some reasons i can't remember and this is where i write stuffs i need to remember.;)

In the Web world, i head the Drupal Mauritius User Group and the jQuery user Group Mauritius and i'm a campus representative for Mozilla Firefox. 

DrupalCon CPH 2010

Copenhagen August 23 -27

Drupalcon CPH 2010