Good day. I use the SoundManager2 player for the site, but when I navigate through the pages, all the music is cut down. Tell me, how can I make the player work without reloading the page?
UPD
I made the player work through AJAX in this way: when clicking on a link, using the script, only the content part is loaded so the player works and is not interrupted. But it works only when switching to the first section of links, that is, from site.ru to site.ru/razdel, if I want to switch from site.ru/razdel to site.ru/razdel/razdel only then everything happens with a simple transition. Will you help?))
$(document).ready(function() { $('a.menuside').click(function(m) { m.preventDefault(); var action = $(this).data('action'); var murl = $(this).data('murl'); var mid = $(this).data('mid'); var mtpl = $(this).data('mtpl'); $.post(document.location.href, {action:action,mid:mid,mtpl:mtpl}, function(data) { $('#wrapcontent').fadeOut(300, function() { history.pushState(null, null, murl); $(this).html(data).fadeIn(800); }); }); }) });