hi...
i am stuck on something that is sooo near to working as i want it to...
i have a page that plays audio as you scroll from one div to another - the audio fades in / fades out depending on scoll position. it's working fine.
but.... i want each sound to play only once - not looping to the start of the sound as it is at the moment.
i've tried a few things but to no avail - it just keeps looping :-(
anyone see or tell me how to say to the js to play the sound when the div is reached and then once it plays once - stop the sound - until the next time the div is visited?
it is pretty much exactly what i want - but i don't want the sounds to keep looping while the div is active - just to play once per visit to the div...
i also tried removing the "loop" from:
so it reads:
this actually makes the mp3/sound play just the once - but... it plays all mp3s on page load and not as the scroll happens - i need each sound to play once as the scroll triggers them
:-/
here's hoping...