Originally Posted by Old Pedant
The <audio> tag DOES NOT WORK with ".wav" files in MSIE. Not even in MSIE 9.
The <embed> and <object> tags will work with ".wav" in MSIE.
But then I just noticed: "Netscape browser." ???? Netscape is officially *DEAD*. Why why why would you choose a browser that is completely obsolete, no longer supported by ANYBODY, will never be updated further, etc.??? Netscape was bought by AOL, but even AOL gave up on in it in February 2008 when it realized it could never keep up with the modern browsers, such as Chrome and Firefox. In any case, I'm pretty sure that <audio> was never implemented in ancient Netscape.
Oh my, I can't believe I said Netscape. I meant firefox. The district has defaulted to firefox and the program won't work in firefox... never has. It plays in xp in internet explorer, but it won't in windows 7. I use the embed tag. Here is what par tof the code looks like:
window.onerror = SymError;
var SymRealWinOpen = window.open;
function SymWinOpen(url, name, attributes)
return (new Object());
window.open = SymWinOpen;
// helper function to play the sound
var thissound = eval("document." + soundobj);
thissound = null;
// an array of words
var wordArray = new Array(
// an array of sentences
var sentenceArray = new Array(
// global variable to represent the total number of words and sentences
// in the IE document.embed collection.
var totalEmbedCount = 0;
// function SelectWords
// This function will generate html and write it to document object.
// The html is randomly selected words from the wordArray or the sentenceArray
// arrays. The words are then added to the selectedArray.
// Do not allow duplicate words. This requires that the wordArray and
// sentence array have unique entries.
// array the array from which to select from
// maximumWords the number of words to randomly select from the numArr list
// the process:
// generate a random index in the numArr list.
// while the number of selected words is less than maximumWords
// if the value at the index was already selected,then
// select another random index
// add the indexed value to the selected value list
// write the html to the document
// store the indexed value in the document embed list
// end while
function SelectWords(array, maximumWords)
var selectedArray = new Array(); // the list of selected objects
var randomIndex = 0;
var selectedCount = 0;
var selectedWord = "";
// return if there are not enough words to select from
if(array.length < maximumWords)
// select maximumWords randomly selected words
while(selectedCount < maximumWords)
randomIndex = Math.round((array.length-1)*Math.random());
// save the randomly selected word for later use
selectedWord = array[randomIndex];
if(selectedArray[randomIndex] != randomIndex)
// store the index at the index to indicate that the index was selected.
selectedArray[randomIndex] = randomIndex;
// generate the html
document.embeds[totalEmbedCount].name = selectedWord;
// increment the selected word count.
// increment the total number of embed entries.
} // if (selectedArray[randomIndex] != randomIndex)
} // while(selectedIndex < maximumWords)
selectedArray = null;
array = null;
} // SelectWords
// note that these values are required to support the html below because there are
// 20 words in "Word List 1" and 5 sentences in "Sentence List 1"
// select 20 words from the word array.
// select 5 sentences from the sentence array.
Then I put the layout in a form so when the kids click a button it plays the word
<a href="#" onClick="EvalSound('embeds')">
</a><input type="hidden" Name="name1" Size="10" ID="Hidden2">
I just can't find the bug. any help suggested. I'm down to only 2 computers out of 6 that will play it now and I use it daily in my classroom.