Video: Bouw je eigen jQuery plugin

PDF version

In deze video tutorial wordt uitgelegd hoe je heel eenvoudig je eigen plugin kunt ontwikkelen voor jQuery.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
(function($){
    $.fn.extLinks = (function(txt){
        var openInNewWindow = (function() {
            window.open(this.href);
            return false;
        });
 
        this.each(function(){
            if($(this).attr('href').substr(0,7) == 'http://') {
                $(this).unbind('click', openInNewWindow).bind('click', openInNewWindow);
            }
        });
    });
})(jQuery);

159 Comments

DarylFebruary 12th, 2015 at 15:43

.

ñïñ çà èíôó….

TimothyFebruary 12th, 2015 at 16:20

.

ñïñ!!…

RalphFebruary 12th, 2015 at 16:58

.

áëàãîäàðñòâóþ….

phillipFebruary 12th, 2015 at 17:37

.

ñïàñèáî!…

edwardFebruary 12th, 2015 at 18:14

.

ñýíêñ çà èíôó!…

TedFebruary 12th, 2015 at 18:52

.

ñïñ!!…

morrisFebruary 12th, 2015 at 19:28

.

áëàãîäàðåí….

tedFebruary 12th, 2015 at 20:05

.

ñïàñèáî….

jamieFebruary 13th, 2015 at 22:48

.

tnx for info!…

Leave a comment

Your comment