Maeda Style Image Repeater


/ Published in: JavaScript
Save to your folder(s)



Copy this code and paste it in your HTML
  1. <script type="text/javascript" ?>
  2.  
  3. function maeda_repeater(img, count) {
  4. document.write("<div style='clear:both;></div>");
  5.  
  6. for (var x = 1; x <= count; x++)
  7. {
  8. document.write("<img src='" + img + "' alt='" + count + "' style='float:left; margin:2px;' />");
  9. }
  10. document.write("<div style='clear:both;></div>");
  11. }
  12.  
  13. repeat("spring.gif", 100);
  14. </script>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.