|
Answer» Hi,
I am learning to use HTML but running into a small problem.
I wanted a link that when viewers clikc on it, it will play music, I used this code: HREF="music/music1.mp3">Song 1.[/url]
It does play music when the link was clicked, but it POPS a seperate page with only the QT CONTROL bar. What I want is it to do is to open a QT player or not thing at all, just play music in the background, how do I do that?
Thanks in advance.
B.Just modify to your liking...
Quote <html> <head> <title>music</title> <script type="text/javascript"> function STOP() { document.getElementById("sound").src = ""; } </script> <script type="text/javascript"> function start() { document.getElementById("sound").src = "http://yourdomain/music/yoursong.mp3"; } </script> </head> <body> <bgsound src="http://yourdomain/music/yoursong.mp3" loop="0" id="sound" autostart=false /> <a href="#" onclick="stop();">stop[/url]
<a href="#" onclick="location.reload(true);">start[/url] </body> </html>
Hope that helps. 8-)
Width can be stretched. Remember that is a dirty way of coding, but you don't have to do js this way. You could also make this an tag, but I didn't feel like coding that.
-rock
QuoteHi,
I am learning to use HTML but running into a small problem.
I wanted a link that when viewers clikc on it, it will play music, I used this code: <a href="music/music1.mp3" target="_blank">Song 1.[/url]
[highlight]It does play music when the link was clicked, but it pops a seperate page with only the QT control bar. What I want is it to do is to open a QT player or not thing at all, just play music in the background, how do I do that?[/highlight]
Thanks in advance.
B.
Sorry if this is going to sound kind of rude, but did you read the post. There is no width, when embedding music into the background.
P.S. BUMP...Way to bring BACK an old thread, it's a little over 3 weeks old.
8-)fffreakYou're right. My bad.
As for the age of the post....I was just looking through the first page of threads, I assumed they'd be decently new on the first page. Again, my bad.
-rock
|