Se connecter avec
S'enregistrer | Connectez-vous

heuuu comment on fais sa !!!

Dernière réponse : dans Programmation
Lassé par la pub ? Créez un compte

on regarde la source:
  1. function shake_xy(n) {
  2. if (self.moveBy) {
  3. for (i = 10; i > 0; i--) {
  4. for (j = n; j > 0; j--) {
  5. self.moveBy(0,i);
  6. self.moveBy(i,0);
  7. self.moveBy(0,-i);
  8. self.moveBy(-i,0);
  9. }
  10. }
  11. }
  12. }
  13. function shake_x(n) {
  14. if (self.moveBy) {
  15. for (i = 10; i > 0; i--) {
  16. for (j = n; j > 0; j--) {
  17. self.moveBy(i,0);
  18. self.moveBy(-i,0);
  19. }
  20. }
  21. }
  22. }
  23. function shake_y(n) {
  24. if (self.moveBy) {
  25. for (i = 10; i > 0; i--) {
  26. for (j = n; j > 0; j--) {
  27. self.moveBy(0,i);
  28. self.moveBy(0,-i);
  29. }
  30. }
  31. }
  32. }

Derrière, le flash n'est qu'un bouton qui appelle les fonctions.
Lassé par la pub ? Créez un compte
Tom's guide dans le monde