Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 06-20-2009, 12:49 AM   PM User | #1
ab123
New Coder

 
Join Date: Jun 2005
Posts: 41
Thanks: 3
Thanked 0 Times in 0 Posts
ab123 is an unknown quantity at this point
Soundmanager2 stop and play

Hi im trying to configure soundmanager2, im finding it a bit confusing to have the results im after, wondering if i coul dget any help here.

This is the script im using:

Code:
<script type="text/javascript">
soundManager.url = '/SM/swf/'; // directory where SM2 .SWFs live

// Note that SounndManager will determine and append the appropriate .SWF file to the URL.

// disable debug mode after development/testing..
// soundManager.debugMode = false;

// Option 1: Simple createSound method

soundManager.onload = function() {
  // SM2 has loaded - now you can create and play sounds!
  soundManager.createSound('Katyperry','/music/KatyPerry-HotNCold.mp3');
  soundManager.play('Katyperry');
 
}
</script>

I would like to know how to add a pause and resume button to my webpage, i was trying these but they would work.

<a href="javascript: soundManager.stop();"> Stop </a>
<a href="javascript: soundManager.play();"> play </a>

please help, thanks
ab123 is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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


All times are GMT +1. The time now is 09:42 AM.


Advertisement
Log in to turn off these ads.