SitePoint Sponsor

User Tag List

Results 1 to 1 of 1
  1. #1
    SitePoint Member
    Join Date
    Jan 2007
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    I want to create one button to turn my background music on or off

    Hello,

    Here is my code so far:

    <object id="Player" classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6"
    width="0" height="0" loop="true">

    <param name="URL" value="my_playlist.m3u"/>
    <param name="autoStart" value="true"/>
    <param name="loop" value="true">
    <param name="menu" value="false" />
    <param name="uiMode" value="none"/>
    </object>

    <script type="text/javascript" src="ieupdate.js"></script>

    <input type="image" name="music" src="music_off_on.gif" border="0"
    onclick="Player.controls.stop()"/>

    Do I need to add an If/else statement to turn the music back on? So in otherwords I would like a button labeled "music on/off" for the user to click the music off or click the music on. Would this include setting a variable to 1? Also I think that it would include Player.controls.play()
    Last edited by may_may_tweety; Jan 30, 2007 at 17:05.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •