Guest Bubble Posted April 13, 2006 Share Posted April 13, 2006 Hi! My first entry here :)I am busy with my first steps in Java and would need some help...Yes, I did search first but couldn't find a solution yet. :)I would like to add background music to my page, but when clicking through, I mean on another link, I would like the song to continue instead of repeating everytime when you click another page.Is this possible? And if so, how?And how do I make it to play in a loop? (now it stops at the end of the song)This is what I have now:http://www.insideabubble.be/downloads.phpAnd the code is as follow: <!-- START SOUND--> <script language="JavaScript" type="text/javascript"> if (navigator.appName == "Microsoft Internet Explorer") { document.write('<bgsound src="Nipponsei_NewDimension.mp3" LOOP="infinite">'); } else { document.write('<embed type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" Name="MediaPlayer" src="Nipponsei_NewDimension.mp3" AutoStart="true" ShowStatusBar="0" ShowControls="0" ShowDisplay="0" volume="1" HEIGHT="1" WIDTH="1" loop="infinite"><br>'); } // End --> </script> <!-- END SOUND -->Thanks for the help in advance! Link to comment Share on other sites More sharing options...
Webworldx Posted April 13, 2006 Share Posted April 13, 2006 Have the song open in a popup window instead, and make sure you don't close the popup Link to comment Share on other sites More sharing options...
ben3001 Posted April 15, 2006 Share Posted April 15, 2006 alternatively you could have your site in 2 frames the main at the top and then in the frame below the music playing, and always have your links open in the main frame Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now