Hello, I am using JPlayer plugin with 2 buttons. Play and Stop.
$("#jquery_jplayer").jPlayer({ ready: function () { $(this).setFile('http://mydomain.com/mymusic.mp3').play(); demoInstanceInfo($(this), $("#jplayer_info")); } }) .jPlayerId("play", "play") .jPlayerId("stop", "stop") }); I would like to: 1) Play the music on start if: There is no cookie "JPlayer" OR if there is a Cookie "JPlayer" with value true; 2) Change the value of "JPlayer" cookie to false if the button "stop" is pressed. If there is no cookie "JPlayer" then create one. 3) Change the value of "JPlayer" cookie to true if the button "play" is pressed. If there is no cookie "JPlayer" then create one. Basically I am trying to "memorize" the sound setting across pages. Thanks, Miguel