Building the imgPreview Pluginvideos

Building the imgPreview jQuery Plugin

DiggThis

Today, we’ll be featuring the winner of our “Screencast Competition”. Created by James Padolsey, this video tutorial will demonstrate how to build a relatively advanced jQuery plugin from scratch.

A big congratulations goes out to James. He’ll be receiving $200 cash, a 1 year subscription to TUTS+, and $100 worth of credit at our Envato marketplaces.

Preview
  • Subscribe to the NETTUTS RSS Feed for more daily web development tuts and articles.


Related Posts

Add Comment

Discussion 46 Comments

Comment Page 2 of 2 1 2
  1. DKumar M. says:

    Nice one James…. I actually know a good alternative for same. Still good tutorial… thanks for sharing!!

  2. insic says:

    really awesome. Ive this this plugin working in James site. and now i fully understand how it works. good job no wonder this is the champion.

  3. Ben Carroll says:

    Wow I never realized how upside down jQuery is… I am glad I have stuck with mootools!

  4. Jeff Hui says:

    This is an awesome screencast. No one why it’s first :)

    MooTools emulates traditional OO system that most other languages implement. jQuery just follows javascript’s prototyping more closely.

  5. M.A.Yoosuf says:

    its pretty awesome, its like the Theaiforests one, also like my recent blog post.

    i mean the same concept

    just have a cross check http://tinyurl.com/amg6bj

  6. James says:

    Thanks for the comments! :)

    @Ben, I’m glad to have enlightened you; maybe you could enlighten us as to why you see jQuery as “upside down” … If anything MooTools is upside down, trying to make JavaScript into something it’s clearly not (a class based language). JavaScript’s strengths IMO are prototyping and the fact that it’s a functional programming language – jQuery plays to both of these strengths! In the end it’s down to programming technique and preferences. If you’re going to make a throw away comment like that on a jQuery hotbed (like Nettuts) then be prepared for a flaming! :D

    @M.A.Yoosuf, Nice work on that gallery! :)

  7. Wuiqed says:

    James, this is wonderful. Big props for what I think is one of the best screencasts I’ve ever seen. I learned more about jQuery during these 30 minutes than I’ve learned about anything in such a short time! Concise but pedagogic, simple but advanced. Please, let me reiterate: wonderful!

    A question: which editor are you using?

  8. Awesome screencast James, an I must also add, a worthy winner. Congratulations :)

  9. Frika says:

    Nice tutorial, thank you
    I have recognized that in IE7 is no fading image in the example with fading text and images. And the text (the a list) in the same example is looking very ugly, don´t know why.

  10. Chukki.de says:

    Very nice Screencast…it’s like the “Tips” in Mootools…only a little bit better :)
    I use it in our company for the presantation of a product if someone hovers the Name in the menu.

  11. nolonx says:

    Thanks for the screencast James!

    I had already figured out much of this on my own, but still I learned a few things I didn’t know.

    And in any case I’m glad to see that the way I’m writing my plugins actually do make sense, so thank you for the confirmation! :)

  12. Ethan says:

    Amazing! Thank you so much! Now I see why this won!

  13. Shane says:

    Congratulations James – the screencast is great. I especially like the selector code.

    Go jQuery!

  14. Ibrahim says:

    Congratulations James, awesome screencast :)

  15. Cyril says:

    Amazing !!!

  16. chris simpson says:

    amazing, as always. i love how customisable it is. Thanks James!

  17. Tim Hall says:

    Wow… awesome tutorial James! I really enjoy learning these advanced jQuery skills. I don’t know how I would have figured out half of the stuff I know without these tutorials.

    My question is why do some lines end with a comma and others a semi-colon? For instance, the $container line (minus the line breaks) ends with a comma while the $img line ends with a semi-colon. They appear to be very similar so I was wondering what the distinction is.

    Thanks!

  18. Brenelz says:

    Great screencast James! Worthy winner forsure…

    Wish I was as much of a jQuery expert as you

  19. Pretty nice implementation of something similar here: http://www.tolleson.com/archive.php

  20. Cossizle says:

    Judging from the comments this sounds great! I’ll have to take a look once I get a few things off my desk here at the office! Thanks!

  21. James says:

    Thanks for the comments, I’m glad you all found it useful!! :)

    @Tim, the comma can be used when declaring several variables, so instead of:

    var a = 1; var b = 2; var c = 3;

    You could do:

    var a = 1, b = 2, c = 3;

    @Wuiqed, Komodo Edit.

  22. Jack F says:

    Bow down! Awesome tutorial worthy winner! A couple of questions from me if you don’t mind:

    1. This line:

    $container = $(”);
    Cofnused me. So here are you creating a variable called container of which the contents are a new div which also has a inside?

    Although I never knew that using ” makes jQuery create the closing tag as well :D

    2. What editor are you using there?

    Thanks!

  23. Jash Sayani says:

    jQuery is the future !

  24. TJ says:

    Well done James, love your stuff!

  25. MD says:

    Great tutorial!! Thanks :)
    Hey… your firefox looks like chrome! how did u do that?

  26. Leonardo says:

    I Love JQuery !!!

    Great Plugin

  27. Rik Girbes says:

    dude amazing!! Ty

    Rik

  28. Derek says:

    Always good stuff from you. Keep them coming.

  29. Andres F says:

    James, thanks for a great screencast! I plan on watching it at least a few more times to make sure I fully grasp everything you mentioned. Very well done, and congrats again. I hope to see yet even more jQuery stuff in the near future.

  30. Hayden says:

    Great tutorial! However, I was wondering if there is a way to make the image go above the cursor if there isn’t enough screen space below it (similar to ThemeForest). Thanks!

  31. Bill says:

    God damn this is awesome, although it f***ed with my mind heh ^^

  32. MSB says:

    fabulous..
    10/10.. :)

  33. hotcouponz says:

    Great tutorial as always. Thank you

  34. Gaurav M says:

    Great
    jQuery always in rocking Mood

  35. Awesome tutorial. Job well done. Looking forward to more like this.

  36. Wow, endless possibilities with this trick!

  37. Jason says:

    Fantastic tutorial, really like how you described each part of building a proper and expandable plugin. I’m glad your video is here, and hope it will help teach the importance of quality plugins that developers can then share across the community.

    Thanks!

  38. Frog says:

    Neat little tool

  39. Roy del Rosario says:

    Hey Jeff, or anybody who’s managing this fantastic site ;) … i think the Source code is not linked properly.. (it’s linked to the Demo page)

  40. Your create very useful plugin, thanks

  41. Still good tutorial… thanks for sharing!

  42. Karl says:

    hi mate, finely worked it out, got on problem thou

    I added to a table, I’m un able to line up my table to center, is there a way to center the table via CSS ?

    Karl

  43. Denis says:

    MUY MUY BUENO LOCO!

    Really grate man!

    congratz, and thank you very much dude

    cya

Add a Comment