Advertisement
Guest User

Untitled

a guest
Oct 21st, 2014
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.20 KB | None | 0 0
  1. addImages = new Array
  2.  
  3. addImages[0] = "one.bmp"
  4. addImages[1] = "two.bmp"
  5. addImages[2] = "three.bmp"
  6. addImages[3] = "four.bmp"
  7. addImages[4] = "five.bmp"
  8. addImages[5] = "six.bmp"
  9. addImages[6] = "seven.bmp"
  10.  
  11. imgCt = addImages.length
  12. firstTime = true
  13.  
  14. addSound = new Array
  15. addSound[0] = "tada.wav"
  16. addSound[1] = "recycle.wav"
  17. addSound[2] = "ringout.wav"
  18. addSound[3] = "notify.wav"
  19. addSound[4] = "tada.wav"
  20. addSound[5] = "tada.wav"
  21. addSound[6] = "tada.wav"
  22.  
  23. imgCt2 = addSound.length
  24.  
  25. function rotate()
  26. {
  27. if (document.images)
  28. {
  29. if (firstTime)
  30. {
  31. thisAdd = Math.floor((Math.random() * imgCt))
  32. firstTime = false
  33. }
  34. else
  35. {
  36. thisAdd++
  37. if (thisAdd == imgCt)
  38. {
  39. thisAdd = 0
  40. }
  41. }
  42. document.myPicture.src=addImages[thisAdd]
  43. setTimeout("rotate()", 3 * 1000)
  44. }
  45. }
  46.  
  47. addImages = new Array
  48.  
  49. addImages.push(["one.bmp", "tada.wav"])
  50. addImages.push(["two.bmp", "tada.wav"])
  51. addImages.push(["three.bmp", "tada.wav"])
  52. addImages.push(["four.bmp", "tada.wav"])
  53. addImages.push(["five.bmp", "tada.wav"])
  54. addImages.push(["six.bmp", "tada.wav"])
  55. addImages.push(["seven.bmp", "tada.wav"])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement