Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script>
- function RollSlott(){
- var Bar=parseFloat(Math.random()*101.9);
- var Barr=parseFloat(Math.random()*101.9);
- document.body.innerHTML=(Bar+":"+Barr);
- var PlayLen=80;
- if(Bar!=0){
- Bar--
- }else if(Bar!=101){
- Bar++
- }
- var context = new AudioContext();
- oscillator=context.createOscillator();
- oscillator.type = 'sine';
- oscillator.frequency.value = Bar;
- oscillator.connect(context.destination);
- oscillator.start(0);
- oscillator.stop(PlayLen);
- oscillator.disconnect(PlayLen);
- }
- </script>
- <button onclick="script:
- var rolls=10;
- while(rolls!=0){
- rolls--;
- var Timer1 = setTimeout ('RollSlott();',0.0001);
- var Timer1 = setTimeout ('RollSlott();',0.002)
- var Timer1 = setTimeout ('RollSlott();',0.03)
- var Timer1 = setTimeout ('RollSlott();',0.04)
- var Timer1 = setTimeout ('RollSlott();',0.5)
- }">Roll Static Test Now!!</button>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement