Example 1
Here we're using a PNG graphic. The graphic toggles to the pause state once it is clicked.
URLs to the button states are defined within wimpy_button_bridge.js. We're simply using the same image in our HTML on this page as is defined in the Javascript file.
Source Code
The following line should go between the opening <HEAD> and closeing </HEAD> tags of your page:
<script src="wimpy_button_bridge.js" type="text/javascript"></script>
And this goes anywhere in the <BODY>
<a href="javascript:;" onClick="wimpyButtonPlay('graduation.m4a')">
Play
</a>
<a href="javascript:;" onClick="wimpyButtonPause()">
Pause
</a>
Wimpy Button Documentation
Copyright ©2002-2012 Plaino LLC. All rights reserved.
Use of this website signifies your agreement to the Terms of Use.