1bolhunglo Posted February 19, 2008 Posted February 19, 2008 (edited) im looking at the installer.hta file and how its coded and found the section i was interested in editing but did not know how to begin. My coding (lack thereof) expertise is looking at code and seeing what and how things are done. however for the life of me i cant figure out how to make the installer.hta play random audio files.what i was after was that every time the installer.hta file was ran. it would play random audio. i would like have like say 5 audio files and each time the installer.hta was ran it would randomly play any of the audio files i have.i have tried to search for a solution to this but i cant seem to find anyone that may have done or have thought about this before.hunting around i found a snippet of code that could help me.<script language="javascript"> var list = new Array; list[0] = "0.mp3"; list[1] = "1.mp3";list[2] = "2.mp3"; list[3] = "3.mp3";list[4] = "4.mp3"; list[5] = "5.mp3"; list[6] = "6.mp3"; list[7] = "7.wma"; list[8] = "8.mp3"; list[9] = "9.mp3"; var choice = Math.floor(Math.random() * list.length); document.write("<embed src='http://x.com/storage/audio/"+list[choice]+"' autostart='yes'>"); </script> Edited February 19, 2008 by 1bolhunglo
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now