Advertisement
Guest User

Untitled

a guest
Jul 21st, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. also erstmal würde ich ich dem vorschaubild eine class thumb verpassen und ein weiteren parameter mit der id, also <img src="thumb1.jpg" id="24" alt="super geil" />
  2. ---
  3. dann ein listener drauf anset´zen mit
  4.  
  5. i=0;
  6. $(".thumb").live("mouseover", function(){
  7.     id = $(this).attr("id");
  8.     while (i <= 10)
  9. {
  10. $.delay(1000);
  11.     i++;
  12.     $(this).attr("src", "/images/thumbs/".id."/thumb_"+i+".jpg");
  13. }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement