Jump to content

Souds with javascript


Guest popol

Recommended Posts

i would like to know if ther was any way o use javascript to play sounds while keeping the web page xhtml valid (i mean not by using the embed tag)reply soon please

Link to comment
Share on other sites

I was wondering too, for I only use Xhtml in my documents :)So I happen to know the answer, only there is one minor (actually a mayor) point there...You could use just an <object> element only, without the <embed>, but other browsers than IE would not recognise the whole thing. So what, IE is used whidely :) Try this code:

<object classid="clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6" width="###" height="###">  <param name="URL" value="###" />  <param name="StretchToFit" value="true" />  <param name="AnimationAtStart" value="true" />  <param name="AutoSize" value="true" />  <param name="TransparantAtStart" value="true" />  <param name="EnableContextMenu" value="false" />  <param name="FullScreen" value="false" />  <param name="WindowlessVideo" value="true" /></object>
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...