Self-resizing Navigation Menu with jQuery

Development

Today I am going to share a nice CSS only (with some jQuery) navigation menu that adapts the size of its list items automatically. Sometimes you need to reuse a menu and it can take some work to adapt the list items if you wou... read more

January 12, 2010 by Mary Lou 11 Comments »

Some Useful JavaScript & jQuery Snippets - Part 4

Development

How to get client ip address with jQuery $.getJSON("http://jsonip.appspot.com?callback=?",function(data){ alert( "Your ip: " + data.ip); }); How to parse XML with jQuery file.xml: <?xml version="1.0" ?> <re... read more

January 11, 2010 by cody 4 Comments »

Find Your First Twitter Follower

Development

This application aims to show you who your first follower was in twitter. It's done with PHP and jQuery and of course it uses the twitter API. Two of the available API methods are used : statuses/show and followers/ids. Note t... read more

January 9, 2010 by chadking 2 Comments »

Some Useful JavaScript & jQuery Snippets - Part 3

Development

How to hide all children div except a specific one with jQuery? $('#target div:not(#exclude)').hide(); //or $('#target').children().filter(':not(#exclude)').hide(); Detecting when a div’s height changes using jQuery $('... read more

January 8, 2010 by cody 5 Comments »

Some Useful JavaScript & jQuery Snippets - Part 2

Development

Check if cookies are enabled $(document).ready(function() { var dt = new Date(); dt.setSeconds(dt.getSeconds() + 60); document.cookie = "cookietest=1; expires=" + dt.toGMTString(); var cookiesEnabled = docu... read more

January 7, 2010 by cody 22 Comments »

Pause and Play Effect with jQuery

Development

Here's an effect based on the one used in fml to stop and pause an event. The idea is that when we click on the play/pause button or press the space button, an image (play or pause) appears and fades out. This effect is done u... read more

January 7, 2010 by cody 2 Comments »

Some Useful JavaScript & jQuery Snippets

Development

How to refresh the src of an image with jQuery? $(imageobj).attr('src', $(imageobj) .attr('src') + '?' + Math.random() ); How to see if an image is loaded or not with jquery var imgsrc = 'img/image1.png'; $('&l... read more

January 5, 2010 by cody 17 Comments »