Functions - The Basics
Author: Shaunk...
Over the past few months I've been predominantly focussing on developing my Javascript and jQuery competence.
Functions are a very powerful and efficient way of grouping, executing and reusing code. They're a standard part of many scripting and programming languages including Javascript, Actionscript and PHP so getting familiar with the syntax and how they work can be very rewarding.
There are two stages to any function; declaration and invocation. Imagine this to be an author-reader relationship, the latter utilising information created by the former. Highly effective as you only need one author to satisfy millions of readers.
The basic structure of a function declaration is as follows.
function nameOfFunction(listOfVariableNames) {
code to be executed goes here
}
And to invoke (or call) a function you would place the following code wherever required:
nameOfFunction();
Or for functions with variable parameters you would call as follows:
nameOfFunction(listOfVariables);
Pretty simple. This is all you really need to know to start using functions.
They're are further ways of achieving similar results and you can also assign functions to variables in some languages. See one of these links for more information about a specific language.
Javascript | Actionscript | PHP
A Few Nice jQuery Plugins
Author: Shaunk...
http://www.tripwiremagazine.com/2009/12/45-incredible-jquery-plugins-making-images-more-dynamic-and-elegant.html
Galleries
http://devkick.com/lab/fsgallery/
http://tympanus.net/codrops/2009/09/13/dynamic-jquery-image-gallery-with-uploader/
http://fancybox.net/
http://www.serie3.info/s3slider/demonstration.html
http://www.buildinternet.com/project/supersized/
http://eyecon.ro/spacegallery/
http://highslide.com/
http://www.no-margin-for-errors.com/projects/prettyphoto-jquery-lightbox-clone/
Carousel
http://www.dynamicdrive.com/dynamicindex4/stepcarousel.htm
http://jqueryfordesigners.com/jquery-infinite-carousel/
Panoramic & Tours
http://www.openstudio.fr/jQuery-spherical-panorama-viewer.html?lang=en
http://www.openstudio.fr/jquery-virtual-tour/salleformation.html
Wrap text
http://jwf.us/projects/jQSlickWrap/
Move / Scrolling / Sliding
http://buildinternet.com/2009/03/sliding-boxes-and-captions-with-jquery/
http://flowplayer.org/tools/scrollable.html
http://cssglobe.com/post/5780/easy-slider-17-numeric-navigation-jquery-slider
Javascript Page & Image Preloaders
Author: Shaunk...
http://demo.dinolatoga.com/imagepreloader/
http://articles.techrepublic.com.com/5100-10878_11-5214317.html
jQuery Content Replacement & Popups
Author: Shaunk...
Dynamically replacing part of the content in a HTML page:
http://docs.jquery.com/Ajax/load#urldatacallback
Smooth Popups
http://yensdesign.com/2008/09/how-to-create-a-stunning-and-smooth-popup-using-jquery
