Widget:A2Sequence

aus Kamelopedia, der wüsten Enzyklopädie
Zur Navigation springen Zur Suche springen
<script>
if ($("#a2image").length && $("#a2textSequence").length) {
    $("#a2image").css("overflow","hidden").css("font-size","200%").css("position","relative");
    var h=$("#a2image").height() + $("#a2image").offset().top;
    $("#a2textSequence").offset({top:h})

    a2.sequenceInterval = setInterval(function () {
        var top = $("#a2textSequence").position().top;
        if (top == null) {
            clearInterval(a2.sequenceInterval);
            return;
        }
        if(top > - $("#a2textSequence").height()) {
            var n = $("#a2textSequence").offset().top - 2;
            $("#a2textSequence").offset({top:n});
        } else {
            clearInterval(a2.sequenceInterval);
            if ("")
                a2.util.goto(parseInt(""));
        }
    }, 120);
}
</script>