Fenster. clearInterval(e) ; a("#loading"). remove() ; g.children(). show(). show() ; var h = 0 ; a. each(g. children(":not(div)")), fonction () { switch in d. direction){ case "left" : case "right" : if (a(this).children(). length) {a(this).width(a(this). children(":eq(0)":large) width(). h += a(this). width() ; Pause; case "top": case "bottom": a(this). css("display", "block") ; if (a(this).children(). length) { a((this).height(a(this).height(":eq(0)"). height()()())
h += a(this). height() ; Pause a} a( this). css({ marginal: "0px", Polsterung : "0px", clear: "both" }) ; a(this). Kommutator (Richtung d.) {cas "gauche": a("div:eq(0)", g). css("largeur", h + "px") ; Pause; cas "droite": a("div:eq(0)", g). css("largeur", h + "px") ; a("div:eq(0)", g). css({ marginLinks : -(h -g. Breite()))) Pausen; Pausen; Cas "haut": a("div:eq(0)", g). css("height", h + "px") ; Pausen; cas "bas" : a("div:eq(0)", g). css("height", h + "px") ; a("div:eq(0)", g). css { marginTop : -(h -g. height())))
Zerbrechen }); Pause } f(a("div:eq(0)", g), d) } 100 ); Funktion f(h, j) { Schalter (Richtung j.) { "linker" Fall: variabel l = -(h.children(":eq(0)"). width()))) ; variabel i = j. speed - (Math.abs(parseInt(h. css("marginLeft"))) Die Breite ()) ; Pause ; cas "right": vari l = -(h. width() - h.parents("div:eq(0)"). width())) ) h.children(":last"). width(); variabel i = j. speed - ((h.children(":last"). width() - (Math.abs(parseInt(h. css("marginLeft"))))) - Math. abs(l))))
In der Regel (j. speed / h.children(":last"). width(). width())) ; Pause; Fall "top": var k = -(h.children(":eq(0)"). height()) ) ; variable i = j. speed - (Math.abs(parseInt(h. css("marginTop"))) )) Die Geschwindigkeit / h.children(":eq(0)"). height(). height(). height()))) ; Pause; Fall "bottom": var k = -(h. height() - h.parents("div:eq(0)"). height())))) h.children(":last"). height(); variabel i = j. speed - ((h.children(":last"). height() - (Math.abs(parseInt(h. css("marginTop"))))) - Math. abs(k)))
Die Geschwindigkeit (j. speed / h.children(":last"). height()); Pause } h. animate({ marginLeft: (l ||| "0") + "px", marginTop: (k ||| "0") + "px". i, i, i, "linéaire", fonction () { Schalter (j. Richtung) { Fall "links" : h.append(a(this). children(":eq(0)")) ; h. css("marginLeft", "0px") ; Pause ; Groß-/Kleinschreibung "right" : h.prepend(a(this). children(":last")))) ; h. css("marginLeft", -(h. width() -(h. width() - h.parents("div:eq(0)"). width())))
px") ; Pause ; cas "top" : h.append(a(this). children(":eq(0)")) ; h. css("marginTop", "0px") ; Pause ; cas "bottom" : h.prepend(a(this). children(":last")) ; h. css("marginTop", -(h. height() - h. height() - h.parents("div:eq(0)"))). height(((")). height px"); Pause } f(h, j) })) }