i'm using includes in my main page that i have a flash audio (.swf) player the music play when you immediately visit the site.. the php include code is this: <?PHP if(isset($_GET['page'])) { $Page = $_GET['page']; if($Page == 'about') { include('about.php'); } elseif($Page == 'weddings') { include('weddings.php'); } elseif($Page == 'people') { include('people.php'); } elseif($Page == 'corporate') { include('corporate.php'); } elseif($Page == 'food') { include('food.php'); } elseif($Page == 'events') { include('events.php'); } elseif($Page == 'services') { include('services.php'); } elseif($Page == 'testimonials') { include('testimonials.php'); } elseif($Page == 'pricing') { include('pricing.php'); } elseif($Page == 'contact') { include('contact.php'); } elseif($Page == 'audio') { include('audio.php'); } else { include('home.php'); } } else { include('home.php'); } ?> Code (markup): so when i navigate away from the home page, for example click on 'about' ?page=about Code (markup): the audio begins to play again. i just need it to continuously play in the background, but with the pause/next buttons still available at the top (embedded into the main page) thanks for the help
On the included page which contains the music player code, does the music player autoplay and does it have the the pause/next buttons?. Just wondering, to see if this is a problem with you including, or a problem with your player.
if you want your music to continously playing when you click on other page you must use ajax so that the whole page does not reload, just the content area
i tried adding an iframe at the top <iframe src ="audio.php" width="100%" height="200"><p>Your browser does not support iframes.</p> </iframe> Code (markup): but the music STILL starts over when you click a link on the main page any ideas?