1man


Member since 07/01/2006

Name: Matt Hobbs

Location: London

Website: http://nooshu.com

9 snippets

21462 profile views

0 Comment(s) Posted

View their favorites

Profile

Achievement

first submission:submitting first snipplet popular snippet:having a snipplet with 20 favorites

1man's Recent JavaScript SnippetsTagged jquery



« Prev 1 Next »
Click on an input field with a prefilled value, if that value equals the default then select it, if not leave it as it was. Relies on jQuery.
2 1738 posted 16 years ago by 1man
Using JSON-P with jQuery. Note the callback.
0 1186 posted 16 years ago by 1man
I didn't realise until now you could do this in jQuery, very useful. Store a value for later use, then remove it.
4 1149 posted 16 years ago by 1man
Two different ways to open an external link (ones that start in http) in a new window. I know this isn't a great thing to do, but some clients _need_ to have it.
3 1651 posted 16 years ago by 1man
I'm sure i can clean this up quite a bit, but it works for the moment. This function looks to see if you are on a selected page. If you are it hides the navigation, then loops through and shows each li one after the other. So they don't all fade i...
0 1038 posted 17 years ago by 1man
An example of how to extent the jQuery objects to include our own methods.
0 1236 posted 17 years ago by 1man
If you have a complex function you may need to pass it lots of arguments. Instead of having to remember how many you need to pass, and passing 'null' for un needed arguments, pass the function an object. Now you can set the defaults inside the fun...
0 1167 posted 17 years ago by 1man
Found this quick little bit of code on the Google jQuery discussion group. It simply fades the background image of a link you have hovered over to a certain color, then fades it back to the original color.
4 1158 posted 17 years ago by 1man
Very simple style switcher using jquery. Takes 3 links with id's on each. When one is clicked various styles are removed, then a new one is added.
3 1452 posted 17 years ago by 1man
« Prev 1 Next »