PDA

View Full Version : Embedding an audio player that doesn't reset when pages reload/change



Ramsman421
01 Jun 2011, 07:04 AM
I'm wondering if there is a way to embed a player with PHP that would not change as you explored the site. My site is a retail site where users would be customizing apparel. I am hoping to find a way to use PHP so everything they do and visit is on an interior window with everything on the exterior windows staying the same. I'm guessing there might be a way to embed the player in the exterior window and have the rest of the site navigation be in that interior window. I'm pretty new to web development though and am not very good with any of this stuff. Im using Dreamweaver CS3.

Do you all know a solution to this?

djlebarron
01 Jun 2011, 02:34 PM
There are only three ways to go here. PHP alone isn't going to do it.

1. Use "internal page" iframes for the whole site (bad idea).
2. Use a very simple javascript line to open a new small window that contains your player embedded into a simple html page.
3. Build a "one-page" site and call all your content with ajax or jquery. Hmmm.
4. (Did I say three?) I believe there's a way to do this with Flash (again, somewhat of a "one-page" scenero with even less SEO value - another bad idea).

I opted for #2. You can control the look of your player and most of the attributes of the new window (size, position, toolbars, scrollbars, etc.) with this method. When you focus on your site's window, the new window drops behind your site's window and the user can bring it back up (to use the player controls) by clicking on it's tab in the taskbar. The user can go anywhere on-site or off-site and the player will keep playing seemlessly until they decide to close the player window or pause/stop the player.