How can I retain my flash music on all the pages on this website?

I have a website exactly like this  http://ozeri.com (same source structure, page organization) ... There is flash music on the top NAV which is reloading on every page and restarts the music every time page load.  
Many of the users feel that the music should be retained ( continue) on the page visits.  How can I do that? Kindly give your suggestions to implement?  Any other techniques can be used PHP, Flash, AJAX etc.,

Thanks in advance.
LVL 36
Loganathan NatarajanLAMP DeveloperAsked:
Who is Participating?
 
GarrettChristophersonCommented:
I think there are two ways to do this, one with iFrames, and the other with Ajax.  I have stored content in a php file which is access by Ajax.  I have used $_GET['var1] to sort through a switch in a php file to determine which content is requested by http://someDomain.com/content.php?var1="<p>newParagraphHTMLTag</p>".  Ajax can use mouseEvents to send multiple requests to the server for each new portion of the content or a single request to the server for all the content that the main page will provide access to (on a single request, store the results in one object and then use your method of choice to sort through the content).  In order for your flash music player to always present in regards to reloading content in the page, you need to ensure that the .swf is not contained within a <div> element or other containing markup that replaced by the Javascript/AJAX sequence, perhaps using Window.document.getElementByID("contentContainer"); (I have always found http://www.w3schools.com an exclusive indispensable resource when working with .html files). Everything I learned about Ajax, I learned from w3schools.  

In Gmail chat, I have observed a new window being generated, perhaps there's a way to but your music player in a new window, and close it upon exiting the web page.
0
 
InsoftserviceCommented:
Hi,

i think ajax,and iframe would be good method to solve the issue.
0
 
Loganathan NatarajanLAMP DeveloperAuthor Commented:
if you suggest how to implement , it would be great ??? just an idea?
0
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
GarrettChristophersonCommented:
What kind of editor are you using?
0
 
Loganathan NatarajanLAMP DeveloperAuthor Commented:
I am using dreamweaver , actually the source is generated by my client.
0
 
GarrettChristophersonCommented:
if you suggest how to implement <I did> , it would be great ???<I like Ajax, so yes>  just an idea?<or a concept, depending on your semantics and etc>

What else can I do for you?
0
 
Loganathan NatarajanLAMP DeveloperAuthor Commented:
ok, thanks
0
 
GarrettChristophersonCommented:
If I have made some incorrect assumptions, please correct them :)

I'll help repair the misconceptions.
0
 
Loganathan NatarajanLAMP DeveloperAuthor Commented:
ok, thanks
0
 
Ray PaseurCommented:
This may not be the answer you want, but my recommendation would be to omit the music from anything but the initial page.  It's "cute" but a little distracting.  I use a technique on one of my sites (a dog barks) and I use a cookie to control whether to bark again on subsequent pages.  If the "already barked" cookie is set, I just skip the sound generation.
0
 
Ray PaseurCommented:
Hmm... Interesting.   I tried the "Mute Music" button on the Ozeri site and after a few clicks it started the music up again.  D'Oh!
0
 
Alicia St RoseOwner & Principle Developer/DesignerCommented:
I'm going to agree with Ray Paseur here.
Most folks find music disrtacting, annoying and intrusive unless it's a musicians site and there, they are expecting it.
It can be quite a fright to open up a page and have music coming at you, especially if you are surreptitiously surfing at work. And a lot of people surf with itunes playing in the background. I do for one and scrambling around for the "off" button on a website isn't much fun. I usually just leave the site.
Think of user experience over aesthetics.

This is just some advice and unfortunately doesn't answer you question directly.
0
 
GarrettChristophersonCommented:
@ laughhearty, so there needs to be an interaction program control for sound playing on your machine?  a new sound won't start until the previously play sound stops?  Maybe the web site could ask if you would like music.  you can create a little movieClip with some buttons to tell the .swf to ether play or not play the music.  

I cannot discount someone's choice to play music on a site.  I love music in all of its forms. sure it is startling if you are not expecting it.  I listen to Pandora while spending time at the computer.  I don't mind the interruption, I just want the experience to be more sophisticated.
0
 
Loganathan NatarajanLAMP DeveloperAuthor Commented:
thanks to all.. i will do it with AJAX, JAVA SCRIPT, DIV's ...
it is working out well... let me complete
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.