Widget:A2Sequence

var goto = parseInt(""); var nextPage = function { clearInterval(a2.sequenceInterval); $("#a2text").empty; if ("") a2.util.goto(goto); };

if ($("#a2textFrame").length && $("#a2textSequence").length) { a2.log("a"); $("#a2textFrame").css("overflow","hidden").css("font-size","200%").css("position","relative"); var h=$("#a2textFrame").height + $("#a2textFrame").offset.top; $("#a2textSequence").offset({top:h});

var $link = $(' Sequenz überspringen'); $("#a2text").empty.append($link); $link.click(function{        nextPage;     }); a2.sequenceInterval = setInterval(function {         if (!$("#a2textSequence").length) {             clearInterval(a2.sequenceInterval);             return;         }

if($("#a2textSequence").position.top > - $("#a2textSequence").height) { var n = $("#a2textSequence").offset.top - 2; $("#a2textSequence").offset({top:n}); } else { nextPage; }    }, 120); } else {     a2.log("b"); }