| re: Alternative to Embeds playing WAV in HTML ?
Richard Cornford wrote:[color=blue]
> Richard Brooks wrote:[color=green]
>> IE5.5
>>
>> It's probably an oft repeated question but I have some code
>> that used to work but does not now.
>>
>> This line in my Javascript code give an error now.
>>
>> document.embeds[Math.floor(Math.random()*6)].play();
>> <snip>[/color]
>
> if((document.embeds)&&
> (document.embeds.length >= 5)){
> var em = document.embeds[Math.floor(Math.random()*6)];
> em.volume = -1;
> em.play();
> }
>
> - Seems to work OK on IE 6.
>
> Richard.[/color]
I hate those strange things that happen! All I did was to archive the stuff
to CDR then some months put it all back without changine version of IE and
set the read only archive bit of the archived files to off just in case then
it throws the error up only in that section.
Thanks for having a look, Richard,
Richard. |