Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script>
- var nameArray=new Array();
- nameArray[0]="I'm gunna give you a fun problem";
- nameArray[1]="I think that's a stupid number";
- nameArray[2]="Jesus God";
- nameArray[3]="Hold on, let me finish";
- nameArray[4]="No, I have no faith in aliens";
- nameArray[5]="It's also possible you could walk through the wall";
- nameArray[6]="By the way, the heart is an incredible organ";
- nameArray[7]="There's very little activity out here";
- nameArray[8]="Wow, I wanna hit that";
- nameArray[9]="Idiot";
- nameArray[10]="There's no more Mexicans here, how in the hell am I gunna keep my yard?";
- nameArray[11]="Political Bullshit";
- nameArray[12]="This is Wacko";
- var baseurl = "http://dl.dropbox.com/u/109430408/bob/";
- function runLoop(){
- var container = $('<div />');
- var clips = $('<div />');
- $document.ready(function(){
- for (var i=0; i<nameArray.length; i++){
- clips.append('<audio id="sound'+i+'" src="'+baseurl+i+'.ogg"></audio>');
- container.append('<button onclick="document.getElementById("sound'+i+'").play()" value="'+nameArray[i]+'"></button>');
- };
- });
- };
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement