Posted By

bionickid on 11/24/09


Tagged

marquee banner laufschrift


Versions (?)

Moveitbob


 / Published in: jQuery
 

  1. function move2left(box)
  2. {
  3. /* Prepare */
  4. orgi = box.children('.movingContent');
  5. orgiw = orgi.width();
  6. clonetime = Math.ceil(box.width() / orgi.width());
  7. children = orgi.children();
  8. /* Clone War */
  9. for ( var i = 0; i < clonetime; i++ ) {
  10. children.clone().appendTo(box.children('.movingContent'));
  11. }
  12. /* Move Now ! */
  13. (function movenow(ele)
  14. {ele.css("left",0)
  15. .animate({"left": (0 - orgiw) + "px"}, 15000, "linear",
  16. function () { movenow(ele); });
  17. })(orgi);
  18. }
  19.  
  20. $(document).ready(function() {
  21. move2left( $("#newstickerbox") );
  22. });

Report this snippet  

You need to login to post a comment.