Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
PHP site with an MP3 player...
Old 07-01-2010, 07:47 PM PHP site with an MP3 player...
Average Talker

Posts: 17
Name: Chris
Trades: 0
Okay I've got a simple PHP website.

The header and footer stay the same in my index page, but the content is dynamically loaded.

The issue I've got is that I'm running a theme song with a player in the footer. This is in my index page "template". It is not dynamically loaded.

When one clicks on a page, the content is dynamically changed... but the company theme song starts replaying all over again from the beginning, even though the player code isn't "refreshed".

How in the world can I fix this? I want just the content to change, but the song to play through. It is SO annoying and getting on my nerves.

How do people do this?

Is it possible that I need a new player?
__________________
- Chris. Dabbling learner.
redline5th is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 07-02-2010, 03:53 AM Re: PHP site with an MP3 player...
Phunk Rabbit's Avatar
Ultra Talker

Posts: 255
Name: John Nerush
Location: Milton Keynes, UK
Trades: 0
arggg music on websites is not nice... I hope people can stop it.

You are either going to have to use iframes to load content so that your header and footer dont refresh or use a popup to put the mp3 player in so that it continues regardless.
__________________

Please login or register to view this content. Registration is FREE

Learn professional skills from professional people, from $6.50 a month.
Phunk Rabbit is offline
Reply With Quote
View Public Profile Visit Phunk Rabbit's homepage!
 
Old 07-02-2010, 12:49 PM Re: PHP site with an MP3 player...
Average Talker

Posts: 17
Name: Chris
Trades: 0
I think I can fix it...

Yes, people can turn it off and adjust the volume, skip ahead etc.
__________________
- Chris. Dabbling learner.
redline5th is offline
Reply With Quote
View Public Profile
 
Old 07-02-2010, 10:15 PM Re: PHP site with an MP3 player...
mgraphic's Avatar
Truth Seeker

Latest Blog Post:
JAMISONTUNES
Posts: 2,918
Name: Keith Marshall
Location: Connecticut
Trades: 0
Wimpy has a great MP3 player that can be controlled through JavaScript
__________________

<mgraphic /> - I don't have a solution but I admire the problem.
mgraphic is offline
Reply With Quote
View Public Profile
 
Old 07-04-2010, 07:01 PM Re: PHP site with an MP3 player...
Average Talker

Posts: 17
Name: Chris
Trades: 0
Okay, bear with me here... I'm new with PHP. I don't really like fiddling with it... but unfortunately, from time to time, I get drafted into doing it. hahahaha.

My PHP is just just a simple simple simple template.

Header/nav/footer all stay the same... the content area is loaded "dynamically" and changes when one clicks on a link.

The idea was to save time if the template needed to be edited.

The issue is the MP3 player is set to "startOnLoad".

How do I keep the header and footer from being "reloaded" when a link is being clicked.... I just want the content area to change, and not refresh everything.

I think that is where my issue is. The player is in the footer and it restarts because the page is being reloaded.

The idea is that the song plays once... and not over and over and over when a user clicks through links.

Edit: Hopefully I won't have to change players, cause I just got this one edited to match the layout. :-/

Thanks,
- Chris
__________________
- Chris. Dabbling learner.

Last edited by redline5th; 07-04-2010 at 07:07 PM..
redline5th is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to PHP site with an MP3 player...
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.21138 seconds with 12 queries