![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Apr 2005
Posts: 3
Rep Power: 0
![]() |
Playin differnet musics
This is a partial code used on my website.
<MAP NAME="music">
<AREA SHAPE="RECT" onClick="changeNavigation('music1')" COORDS="696,24, 752,64">
<AREA SHAPE="RECT" onClick="changeNavigation('music2')" COORDS="756,43, 889,64">
<AREA SHAPE="RECT" onClick="changeNavigation('music3')" COORDS="504,24,560,64">
</map>My website is simple. I have a picture/background and the Area shape="rect" is like invisible buttons over the picture. Thus, when clicked, it'll brings you to a <div> tag. I'm sure most of you guys will know. What I want to know is how can I edit my whole website's code so that if I click on music1's invisible button, i'll have one music and of course the contents. Then another different music when I go to music2. And the same goes to music3. Also, while changing from music1 to music2, the music in music1 stop and music in music2 starts. Hmm is there anyway? Or this shouldn't be in HTML section? ![]() |
|
|
|
|
|
#2 |
|
I eat cake for breakfast.
![]() ![]() ![]() ![]() Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9
![]() |
I'm not sure how to work music in web pages, but please say you'll have a "turn the freakin' music off!" option.
|
|
|
|
|
|
#3 |
|
Newbie
Join Date: Apr 2005
Posts: 3
Rep Power: 0
![]() |
anymore useful help?
![]() |
|
|
|
|
|
#4 |
|
Programming Guru
![]() ![]() ![]() |
you could use EMBED tags and have the source to play change during an onclick event? PHP would probably make this a lot easier as well.
__________________
http://jasonpowers.net "There are a thousand hacking at the branches of evil to one who is striking at the root." |
|
|
|
|
|
#5 |
|
Professional Programmer
Join Date: Apr 2005
Location: London, England
Posts: 459
Rep Power: 4
![]() |
You may be able to do something like this using the innerHTML property of an element via JavaScript, so
document.getElementById("someinvisiblediv").innerHTML = '<bgsound src="1.wav" /><embed src="1.wav"></embed>'In all honesty if you want this kind of stuff you should use flash or SVG. Any music-playing script is buggy at best. |
|
|
|
|
|
#6 |
|
Newbie
Join Date: Apr 2005
Posts: 3
Rep Power: 0
![]() |
I've tried Flash but somehow I couldn't load it onto my webpage. Everything can load but just not the Flash. Maybe the free web hosting server doesn't allow Flash embed?
Oh nvm. So Cerulean, where do I paste this code. Sorry, not very pro in programmin. |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|