Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- addImages = new Array
- addImages[0] = "one.bmp"
- addImages[1] = "two.bmp"
- addImages[2] = "three.bmp"
- addImages[3] = "four.bmp"
- addImages[4] = "five.bmp"
- addImages[5] = "six.bmp"
- addImages[6] = "seven.bmp"
- imgCt = addImages.length
- firstTime = true
- addSound = new Array
- addSound[0] = "tada.wav"
- addSound[1] = "recycle.wav"
- addSound[2] = "ringout.wav"
- addSound[3] = "notify.wav"
- addSound[4] = "tada.wav"
- addSound[5] = "tada.wav"
- addSound[6] = "tada.wav"
- imgCt2 = addSound.length
- function rotate()
- {
- if (document.images)
- {
- if (firstTime)
- {
- thisAdd = Math.floor((Math.random() * imgCt))
- firstTime = false
- }
- else
- {
- thisAdd++
- if (thisAdd == imgCt)
- {
- thisAdd = 0
- }
- }
- document.myPicture.src=addImages[thisAdd]
- setTimeout("rotate()", 3 * 1000)
- }
- }
- addImages = new Array
- addImages.push(["one.bmp", "tada.wav"])
- addImages.push(["two.bmp", "tada.wav"])
- addImages.push(["three.bmp", "tada.wav"])
- addImages.push(["four.bmp", "tada.wav"])
- addImages.push(["five.bmp", "tada.wav"])
- addImages.push(["six.bmp", "tada.wav"])
- addImages.push(["seven.bmp", "tada.wav"])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement