CalifNina
06-03-2003, 10:25 AM
I give up from my post last evening:
--> "onMouseover & onMouseout not working"
--> http://forums.webdeveloper.com/showthread.php?s=&threadid=10507
in that I located some code from another thread:
--> http://javascriptkit.com/script/script2/soundlink.shtml
and tried to use it to play sound using three methods - (onMouseover, buttons, and links). Messed with it for quite awhile but could not get to work. The code found combines everything together, maybe I should break it apart into separate sections and not be so complicated? Am new to Javascript this is why I am asking. Believe me, I did search around and put my hours in trying to make it work, but am still at the same spot, no success.
Thus I give up and will reask for assistance in this manner ...
(1) Looking for code to play sounds via 'onMouseover'
(2) Looking for another set of code to play sounds via 'buttons'
(3) Looking for other code to play sounds via 'links assigned a specific sound'Maybe if I see code per each method and work on it one bite at a time - I'll do better. Then later the big combined stuff I'll be able to work through.
Please, any code offers?? - complete examples for both the HEAD and BODY sections as I need to see the whole thing, not just portions. At this point (beginner) if you make assumptions that I have certain parts, I will miss it. I do understand it has to be defined in the HEAD section and then sounds need to be preloaded, then in BODY section the function is called, etc. You can see from my previous post that I did try and did offer the code I had.
NOTE: my sound files are in same directory but in a folder called "sounds2"
(i.e.,)
var aySound = new Array();
aySound[0] = "sounds2/soundA.wav";
aySound[1] = "sounds2/soundB.wav";
aySound[2] = "sounds2/soundC.wav";
aySound[3] = "sounds2/soundD.wav";
Thank you, very frustrated. ~ Nina
--> "onMouseover & onMouseout not working"
--> http://forums.webdeveloper.com/showthread.php?s=&threadid=10507
in that I located some code from another thread:
--> http://javascriptkit.com/script/script2/soundlink.shtml
and tried to use it to play sound using three methods - (onMouseover, buttons, and links). Messed with it for quite awhile but could not get to work. The code found combines everything together, maybe I should break it apart into separate sections and not be so complicated? Am new to Javascript this is why I am asking. Believe me, I did search around and put my hours in trying to make it work, but am still at the same spot, no success.
Thus I give up and will reask for assistance in this manner ...
(1) Looking for code to play sounds via 'onMouseover'
(2) Looking for another set of code to play sounds via 'buttons'
(3) Looking for other code to play sounds via 'links assigned a specific sound'Maybe if I see code per each method and work on it one bite at a time - I'll do better. Then later the big combined stuff I'll be able to work through.
Please, any code offers?? - complete examples for both the HEAD and BODY sections as I need to see the whole thing, not just portions. At this point (beginner) if you make assumptions that I have certain parts, I will miss it. I do understand it has to be defined in the HEAD section and then sounds need to be preloaded, then in BODY section the function is called, etc. You can see from my previous post that I did try and did offer the code I had.
NOTE: my sound files are in same directory but in a folder called "sounds2"
(i.e.,)
var aySound = new Array();
aySound[0] = "sounds2/soundA.wav";
aySound[1] = "sounds2/soundB.wav";
aySound[2] = "sounds2/soundC.wav";
aySound[3] = "sounds2/soundD.wav";
Thank you, very frustrated. ~ Nina