Music - ny-dev | Design & Development Forums
Go Back   ny-dev | Design & Development Forums > Development > Multimedia Development

Notices


Music

Multimedia Development


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old 05-25-2006, 02:38 AM
harleysneak has no status.
Junior Member
Newb
 
Join Date: May 2006
Posts: 6
harleysneak is on a distinguished road
Post Music

Okay, I'm not so sure this is the right area to be posting this in but I'm going to try it. I have my own personal website and have a place where I'm trying to insert a song to be played when people click on a certain word on the page. Does anyone know how I can do that?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Google Bookmark this Post!Blink this Post!
Reply With Quote
  #2 (permalink)  
Old 05-25-2006, 04:36 AM
CyCL3's Avatar
CyCL3 has no status.
Member
Enthusiast
 
Join Date: Feb 2006
Posts: 94
CyCL3 is on a distinguished road
Post

You might be posting it in the right area.
Maybe this forum should be called Multimedia instead of Motion l Video.
I think this post would go in page design though.

javascript:
Code:
<script language="JavaScript">
<!--
function MM_controlSound(x, _sndObj, sndFile) { //v3.0
var i, method = "", sndObj = eval(_sndObj);
if (sndObj != null) {
if (navigator.appName == 'Netscape') method = "play";
else {
if (window.MM_WMP == null) {
window.MM_WMP = false;
for(i in sndObj) if (i == "ActiveMovie") {
window.MM_WMP = true; break;
} }
if (window.MM_WMP) method = "play";
else if (sndObj.FileName) method = "run";
} }
if (method) eval(_sndObj+"."+method+"()");
else window.location = sndFile;
}
//-->
</script>
Dreamweaver also generates the following code that embeds the sound file within the page
Code:
<embed name='CS1022563046202' src='sound.wav' loop=false
autostart=false MASTERSOUND hidden=true width=0 height=0>
</embed>
HTML:
Code:
<a href="#" onClick="MM_controlSound('play','document.CS1022563046202','sound.wav')">Click
Here to Play Sound</a>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Google Bookmark this Post!Blink this Post!
Reply With Quote
  #3 (permalink)  
Old 05-25-2006, 01:33 PM
harleysneak has no status.
Junior Member
Newb
 
Join Date: May 2006
Posts: 6
harleysneak is on a distinguished road
Default

Thanks so much for your help. I really appreciate it. I have been trying to figure this out for so long and had given up on it. Then when I found this forum I figured I might as well ask. I will have to go try it and hopefully I can get it to work. Thanks again.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Google Bookmark this Post!Blink this Post!
Reply With Quote
Reply

« Maya | Camcorder »

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

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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Favorite Music Artist? P_hilton33 General Conversation 16 12-02-2006 08:45 PM
Broadcast your music danielmichel Hardware & Software 0 10-26-2006 03:22 PM


All times are GMT -4. The time now is 10:13 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
347media

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24