/    Sign up×
Community /Pin to ProfileBookmark

Hi, I use a mp3 player on my page and it works fine, but I would like it to continue to play when changing page (within my site of course..). I could let it open in a new window, but I would prefer a better solution.

So if you have an idea or suggestion, please let me know.

[url=”http://larsbylund.com/musician.htm”]link to my site[/url]

and the player I use are [url=”http://www.jeroenwijering.com/?item=JW_MP3_Player”] JW FLV player[/url]

to post a comment
JavaScript

7 Comments(s)

Copy linkTweet thisAlerts:
@toicontienNov 17.2008 — You could try using a frameset.
Copy linkTweet thisAlerts:
@drhattauthorNov 18.2008 — You could try using a frameset.[/QUOTE]

No, I thought of that, but I have managed to solve my problems without frames so far and I dont like frames. Thanks anyway.

Have thought of open it in a frameless popupwindow that has the same color as the background, however, I see that there can be a lot of problems with this solution, as when you resize a window it wont work anymore.

Any frameless solution are welcome....
Copy linkTweet thisAlerts:
@toicontienNov 18.2008 — Frameless solutions won't work because the page unloads completely when you click a link and go to another page. A "pop under" window would work though.
Copy linkTweet thisAlerts:
@rnd_meNov 18.2008 — frames don't have to look like frames.

i think what he was getting at is using a fullscreen iframe to display your page.

if done right, the user would have no idea you are using frames.

you play the music in the top page that defines the frame, and as the user navigates, he changes the frame url, but it looks like the whole page changes, except the band goes on...

or you could use a pop-under to play the music, but those are annoying...
Copy linkTweet thisAlerts:
@drhattauthorNov 18.2008 — frames don't have to look like frames.

i think what he was getting at is using a fullscreen iframe to display your page.

if done right, the user would have no idea you are using frames.

you play the music in the top page that defines the frame, and as the user navigates, he changes the frame url, but it looks like the whole page changes, except the band goes on...

or you could use a pop-under to play the music, but those are annoying...[/QUOTE]


yep, Iframe are the answer I believe, I had it in mind but I thought it had bad suport on other browswers than IE, and it has had bad suport i saw on http://www.w3schools.com/TAGS/tag_iframe.asp but it looks as if the times are changing so I'll use it asap.
Copy linkTweet thisAlerts:
@voidvectorNov 19.2008 — You can use a single page, and use AJAX to load different content based on which link the user clicked on.

Or you can load all the content at once in a single page, and use JavaScript to display/hide respective contents. Since you have a mp3 player on the page, loading all the text/pictures of your webpage at once shouldn't be too much to ask for.
Copy linkTweet thisAlerts:
@drhattauthorNov 19.2008 — You can use a single page, and use AJAX to load different content based on which link the user clicked on.

Or you can load all the content at once in a single page, and use JavaScript to display/hide respective contents. Since you have a mp3 player on the page, loading all the text/pictures of your webpage at once shouldn't be too much to ask for.[/QUOTE]


These are a god suggestion and I thought of letting javascript load and hide, but since there are a lot of pictures on my site, and more to come, I dont think this are the right solution.

I'm new to javascript by the way, but learning.

se my current site: www.larsbylund.com, that are soon to be updated with the javascript I wrote and use on the textile page

I didn't get the last part, about the mp3player?

Please let me know more about this AJAX solution, can you link me to a page that gives me a basic explenation of it?

Lars
×

Success!

Help @drhatt spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.15,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...