| Blockbuster sites, amazing reunions

Share Tips

New Topic Reply Subscription Options  

Playing an audio file in a new window?

Forums: Questions and Answers About Building Your Site
Created on: 07/13/10 06:35 PM Views: 1334 Replies: 4
Tuesday, July 13, 2010 at 6:35 PM

I've added a 4 minute medley of songs from the 1950s. It plays fine, but the window is 'taken over' by the player and to get back to the previous page, I have to instruct people to use their 'back' button.

I know there's a way to force the player to open in a new window using "target=blank" but not sure where to place that in the source code.

Here's the source for that page (shown as text)

 Music To Remember

Here's a four-minute trip back in time to a medley of songs you'll remember from Junior High to Senior High. Can you name the artists? 

Turn your speakers up and CLICK HERE TO LISTEN You may need to use the BACK key to get back to this page.

Can I make it open in a pop-up window (or control the size and placement of the new window?

Edited 07/13/10 6:36 PM
Tuesday, July 13, 2010 at 8:30 PM - Response #1

In your code change this:

a href="/000/1/8/2/12281/userfiles/file/50s.mp3">

to this:

a href="/000/1/8/2/12281/userfiles/file/50s.mp3" target="_blank">

(don't forget the little underscore _ before the world blank, it's important)

Tuesday, July 13, 2010 at 9:24 PM - Response #2

Thanks, Brad. Works like a charm... Couldn't that be done with playlist players?

Wednesday, July 14, 2010 at 1:02 AM - Response #3

If you're linking to them with a text link, sure. The "Pop out player" button launches the Playlist in a new window already of course. We're about to add a new Widgets page that will allow for playing of your own mp3s and also Playlists and other things with windows that auto pop and more. More about that when it becomes available, I'm having one of our newer coders work on this so we'll see how he does. Smile

Tuesday, July 20, 2010 at 1:03 PM - Response #4

This geezer discovered today that CC already allows you to make a link open a pop-up window. Just hadn't looked hard enough at the link window and noticed all three tabs.

Now my music track opens in a pop-up small window on the top right of my screen. YES!

Here's a picture of the end result. Your player may look differently depending on the default player you've chosen in your PC/MAC settings.

Edited 07/21/10 12:29 PM
New Topic Reply  
Subscription Options: Have all new forum posts sent directly to your email.
Subscription options are available after you log in.