About $variables, $hook,...
By: Arshad
2 May 2010I'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.
By: Arshad
22 Jan 2010There 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.
By: Arshad
17 Jan 2010Snippet to add a class to the current active link for styling with css.
$(document).ready(function(){ //set class active-anchor to active anchor $('a').each(function(){ if($(this).attr('href')==window.location.search) $(this).addClass('active-anchor') }); });
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.
By: Arshad
31 Dec 2009Code to select the content of an input box on click
//set select when clicking on an input $('input[type=text]').click(function(){ $(this).select(); });
sometimes you want it to occur on focus. replace click(function(){.. by focus(function()...
By: Arshad
31 Dec 2009Select 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 :
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.