Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Apr 6th, 2005, 3:15 PM   #1
ltensail
Newbie
 
Join Date: Apr 2005
Posts: 3
Rep Power: 0 ltensail is on a distinguished road
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?
ltensail is offline   Reply With Quote
Old Apr 6th, 2005, 5:13 PM   #2
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9 Ooble is on a distinguished road
I'm not sure how to work music in web pages, but please say you'll have a "turn the freakin' music off!" option.
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote
Old Apr 6th, 2005, 5:57 PM   #3
ltensail
Newbie
 
Join Date: Apr 2005
Posts: 3
Rep Power: 0 ltensail is on a distinguished road
anymore useful help?
ltensail is offline   Reply With Quote
Old Apr 6th, 2005, 11:11 PM   #4
Infinite Recursion
Programming Guru
 
Infinite Recursion's Avatar
 
Join Date: Jul 2004
Location: United States
Posts: 3,467
Rep Power: 8 Infinite Recursion is on a distinguished road
Send a message via MSN to Infinite Recursion Send a message via Yahoo to Infinite Recursion
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."
Infinite Recursion is offline   Reply With Quote
Old Apr 7th, 2005, 5:02 AM   #5
Cerulean
Professional Programmer
 
Cerulean's Avatar
 
Join Date: Apr 2005
Location: London, England
Posts: 459
Rep Power: 4 Cerulean is on a distinguished road
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>'
Or whatever it is you're using to play music in the first place.

In all honesty if you want this kind of stuff you should use flash or SVG. Any music-playing script is buggy at best.
Cerulean is offline   Reply With Quote
Old Apr 7th, 2005, 7:38 AM   #6
ltensail
Newbie
 
Join Date: Apr 2005
Posts: 3
Rep Power: 0 ltensail is on a distinguished road
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.
ltensail is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 2:11 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC