国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

Le plugin tagCanvas ne joue pas automatiquement
PHP中文網(wǎng)
PHP中文網(wǎng) 2017-06-15 09:22:25
0
1
913

Plug-in tagCanvas
Ce plug-in ne semble pas avoir de paramètres d'insertion automatique. Quelqu'un a-t-il modifié le code source ? Pouvez-vous venir pour référence??

Adresse du code source

PHP中文網(wǎng)
PHP中文網(wǎng)

認(rèn)證0級(jí)講師

répondre à tous(1)
學(xué)習(xí)ing

Je n'ai jamais utilisé ce plugin, j'ai donc jeté un ?il au code source :

TCproto.Draw = function() {
    var cv = this.canvas, cw = cv.width, ch = cv.height, max_sc = 0, yaw = this.yaw, pitch = this.pitch,
        x1 = cw / 2, y1 = ch / 2, c = this.ctxt, active, a, i, tl = this.taglist, l = tl.length;
    c.setTransform(1,0,0,1,0,0);
    this.active = null;
    for(i = 0; i < l; ++i)
        tl[i].Calc(yaw, pitch);
    tl = tl.sort(function(a,b) {return a.sc-b.sc});

    if(!this.txtOpt && this.shadow) {
        c.shadowBlur = this.shadowBlur;
        c.shadowOffsetX = this.shadowOffset[0];
        c.shadowOffsetY = this.shadowOffset[1];
    }
    c.clearRect(0,0,cw,ch);
    for(i = 0; i < l; ++i) {
        a = tl[i].Draw(c, x1, y1);
        if(a && a.sc > max_sc && (!this.frontSelect || a.z <= 0)) {
            active = a;
            active.index = i;
            max_sc = a.sc;
        }
    }
    /**在這一塊**/
    if(this.freezeActive && active)
        this.yaw = this.pitch = 0;
    else
        this.Animate(cw, ch);
    /***Animate函數(shù)里面是運(yùn)動(dòng)計(jì)算公式,你需要調(diào)整的是在鼠標(biāo)沒(méi)有觸發(fā)hover時(shí)也能保持動(dòng)畫(huà)不是freeze狀態(tài),具體代碼你自己改吧***/
    active && (this.active = active).Draw(c);
};
Derniers téléchargements
Plus>
effets Web
Code source du site Web
Matériel du site Web
Modèle frontal