Hello,

I have got this code:

Code:

Code:
<script type="text/javascript">
$(function(){
	var hmusic_html = '<object type="application/x-shockwave-flash" data="/player/template_maxi_0.6.0/player_mp3_maxi.swf" width="25" height="0"><param name="movie" value="/player/template_maxi_0.6.0/player_mp3_maxi.swf" /><param name="bgcolor" value="#000000" />';

	var params_play = '<param name="FlashVars" value="mp3=/player/template_maxi_0.6.0/hubert_music.mp3&amp;loop=1&amp;showslider=0&amp;autoplay=1&amp;width=25" /><embed src="/player/template_maxi_0.6.0/player_mp3_maxi.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="25" height="0"></embed></object>';
	var params_noplay = '<param name="FlashVars" value="mp3=/player/template_maxi_0.6.0/hubert_music.mp3&amp;loop=1&amp;showslider=0&amp;width=25" /><embed src="/player/template_maxi_0.6.0/player_mp3_maxi.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="25" height="0"></embed></object>';	
	
	var hubcookie = $.cookie("play");
	var hmusic_el = $("#hmusic");
	
	if (hubcookie == null){
		$.cookie("play", "1", { expires: 7 });
		hmusic_el.html(hmusic_html + params_play);
	}
	else if (hubcookie == "1"){
		hmusic_el.html(hmusic_html + params_play);
	}
	
	$("#play").click(function(){
		$.cookie("play", "1", { expires: 7 });
		hmusic_el.html(hmusic_html + params_play);
	});
	
	
	$("#stop").click(function(){
		$.cookie("play", "0", { expires: 7 });
		hmusic_el.html(hmusic_html + params_noplay);
	});	
});
</script>
This code behaves correctly in all other web browsers except IE.

It does this:

- it starts to play music automatically in case that there is no cookie
- it starts to play music automatically in case that the cookie is set to 1
- it starts to play music when #play is clicked
- it stops to play music when #stop is clicked

In IE it behaves like this:

- it starts to play music if I press "Delete browsing history" together with Cookies and refresh web page
- it does not stop playing music if I click #stop, but sets Cookie to 0
- it does not start playing music if I click #start, but sets Cookie to 1

Any help?