Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
Playing music on website intro...
Old 10-17-2007, 12:46 PM Playing music on website intro...
dange's Avatar
Experienced Talker

Posts: 30
Location: Pittsburgh, PA
Trades: 0
Here is the current code:

Code:
<!-- START HOME MUSIC CODE

 
 if (navigator.appName == "Microsoft Internet Explorer") {
 6document.write('<bgsound src="intro.mp3" LOOP="false">');
 }
 else {
 document.write('<embed type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" Name="MediaPlayer" src="intro.mid" AutoStart="true" ShowStatusBar="0" ShowControls="0" ShowDisplay="0" volume="-1" HEIGHT="1" WIDTH="1" loop="false"><br>');
}


// End -->
I see that it's checking for IE but how do I also make this work in Firefox?

Thanks!
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
dange is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Reply     « Reply to Playing music on website intro...
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.18649 seconds with 12 queries