Search Results

Search found 1 results on 1 pages for 'amnesiac11'.

Page 1/1 | 1 

  • Implement Background Music with Pause/Play Icon in JQuery/Javascript

    - by Amnesiac11
    Hello and thank you in advance. I'm quite newto JQuery/Javascript and am unsure how to implement my embedded background music with my pause/play icons. Any help would be greatly appreciated. Thanks in advance! <div id="toggle" class="play" style="width: 314px; height: 311px"></div> <script type="text/javascript"></script> $(document).ready(function() { $('#music').attr("class", "false"); $('#toggle').bind("click", function() { if ($(this).attr("class") == "play") $(this).attr("class", "pause"); else $(this).attr("class", "play"); }); });

    Read the article

1