play mp3 and avi

D

David Mark

Gufo said:
i find a solution to play mp3 and avi(big file)
witwhout windows media player.
the browser is firefox only.
the os is windows or linux.

windowsmedia:
http://www.webreference.com/programming/javascript/jf/column5/

you find a (bad) solution.

<script type="text/javascript"><!--

Could really stop right there.

if(navigator.appName != "Microsoft Internet Explorer")

Hmm, doesn't look like a dog... it must be a cat!

document.write('<obj'+'ect id="medObj" pluginspace="'+pluginspace+'"
codebase="'+codebase+'" data="'+files[srchStr-1]+'" standby="Loading
Video..." style="float: left;" type="'+objType+'" width="'+dimW+'"
height="'+dimH+'"></object>');

There's a new spin on an old spell (strange and unnecessary concatenation).

if(navigator.appName == "Microsoft Internet Explorer")

....then they're a kind of serpent, that's all I can say. :)

document.write('<embed pluginspace="'+pluginspace+'"
src="'+files[srchStr-1]+'" style="float: left;" type="'+objType+'"
width="'+dimW+'" height="'+dimH+'"></embed>');
--></script>

It looks like they've got this somewhat backwards as well. What would
this fork accomplish in IE?

I wonder how many times this has been copied and pasted. Well, at least
it will fail immediately, so as long as the developers test their
"creation" at least once...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,969
Messages
2,570,161
Members
46,705
Latest member
Stefkari24

Latest Threads

Top