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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

cross browswer sound problem

Status
Not open for further replies.

MrHandy

Technical User
Jun 13, 2001
6
US
I created a new page using embed to create a series of sound players. The gist of the page is that it's an interview with the interviewers part being text and the interviewee response contained in the sound players. Ok well you'll have to look at it if that confuses you. First the problem. The page works really well under Netscape since embed is a Netscape command but it refuses to even load under IE which I find weird because the later version of IE and Netscape pretty much both were compatible with each other's commands. You may want to look at the page at this point. Here's the url...(this page is about 700 k in wav and pics, be patient if you have a slow connect)


Ok now I can solve this problem a couple of different ways and I apprecaite feedback on which is best. First I can duplicate the embed commands with bgsound commands for IE but the problem is that one of my browsers (don't remember which at moment) will play or display BOTH sets of audio commands. The other one ignores the duplicate. If there is a way to use java and say "if ie use this, if Netsp use this" that would work great. The last choice (very amateurish in my opinion) is to have the user select on a menu page which browser to use. I'm already using a stop page because the wavs are a lot of download and I want people to know it before they start loading. the menu page give them a chance to cancel the page load.

Anyway I'd like it to work with both ie and netscape (everyone else is on their own) so suggestions please?
 
This may not be elegant, but it would work.
How about a redirect page, one that detects the users browser, then automatically puts them on the correct page?
It means putting up two different pages, one for each browser, but it works. I use it on my site, as Netscrap doesn't support all the neat stuff that IE does.
I can get you the code for the redirect if you like. Cheers,
Jim
iamcan.gif
 
Thanks, that is what I was talking about in the middle of my rantings, a java app or whatever that redirects to the proper browser page. If you could give me the code (and with a timer on the redirect if it ain't too much trouble) I'd appreciate it. The timer is so they have time to read the two sentences I will put on that page. about 15 seconds should do it.
 
Jim, I get a "Page cannot be displayed" on the redirect link. Looks like it's been deleted.
 
hah, your browser thinks the .txt file is .html and automatically redirects!!!
Here it is:
<script>

var browser_type=navigator.appName
var browser_version=parseInt(navigator.appVersion)

//if NS 4+
if (browser_type==&quot;Netscape&quot;&&browser_version>=4)
window.location.replace(&quot; website here for Netscape.com/&quot;)
//if IE 4+
else if (browser_type==&quot;Microsoft Internet Explorer&quot;&&browser_version>=4)
window.location.replace(&quot;h website here for IE.com/&quot;)
//Default goto page (NOT NS 4+ and NOT IE 4+)
else
window.location=&quot; website here for default, generally Netscape.com/&quot;
</script> Cheers,
Jim
iamcan.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top