jQuery endless Functionen

Dieses Thema im Forum "Webentwicklung" wurde erstellt von Terrorbeat, 13. Mai 2011 .

Schlagworte:
Status des Themas:
Es sind keine weiteren Antworten möglich.
  1. 13. Mai 2011
    HI

    HTML:
     
    $(".wheel").queue(function () {
     $(this).animate({scrollTop:'+=1368'}, "slow", "linear");
     $(this).animate({scrollTop:'-=1368'}, 0);
     $(this).dequeue();
    });
    
    

    Ich möchte diese Animation endlos ausführen BIS eine Ajax anfrage fertig ist.

    HTML:
     $(document).ready(function(){
     $.ajax({
     type: "POST",
     url: "ajax/datei.php",
     data: "true=false",
     success: function(msg){
     //........
     }
     });
     });
     
  2. 13. Mai 2011
    AW: jQuery endless Functionen

    Du könntest mit window.setTimeout & window.clearTimeout arbeiten.

    Reicht das als Info?
     
  3. 13. Mai 2011
    AW: jQuery endless Functionen

    jo habs aber anders hinbekommen

    HTML:
     function TherapyMachineWheelStart(number) {
     if (slotSpining) {
     $("#TherapyMachineWheel" + number).animate({scrollTop:'+=1070'}, "slow", "linear", function() {
     $("#TherapyMachineWheel" + number).animate({scrollTop:'-=1070'}, 0, function () {
     TherapyMachineWheelStart(number);
     });
     });
     } else {
     //...
     }
     }
    macht mehr Sinn in meinem Fall
     
  4. Video Script

    Videos zum Themenbereich

    * gefundene Videos auf YouTube, anhand der Überschrift.