Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

code for both browsers?

Status
Not open for further replies.

bch33

Technical User
Oct 13, 2001
151
US

The code below lets music load and play fine on IE but in Netscape (6 or 4.7) only an empty white box shows up. Is there something else I can add to make it work in both?

<div align=&quot;center&quot;><embed src=&quot;sounds/orchviolin.mp3&quot;autostart=&quot;false&quot;correction=&quot;full&quot; width=&quot;120&quot; height=&quot;32&quot; align=&quot;middle&quot;>
</embed></div>

Thanks much
bch

 
netscape does not support the embed command, as I remember. I think you have to use the <object><param>...</object> tag sequence.

somewhere on javascript.internet.com I have seen a script that will print out the appropiate html tag for every browser so that they will play sound. Robert Carpenter
questions? comments? thanks? email me!
linkemapx@hotmail.com
Icq: 124408594
online.dll

AIM & MSN: robacarp
 
thanks Robert,
I'll take a look at the site.
appreciate it
bch
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top