New Topic Reply Subscription Options |
Playing an audio file in a new window?
Forums: Questions and Answers About Building Your Site | |||
|
|||
Participant: Log in to see names |
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 RememberHere'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?
|
||
|
|||
Participant: Log in to see names |
![]() 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)
|
||
|
|||
Participant: Log in to see names |
Tuesday, July 13, 2010 at 9:24 PM - Response #2
Thanks, Brad. Works like a charm... Couldn't that be done with playlist players?
|
||
|
|||
Participant: Log in to see names |
![]() 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.
|
||
|
|||
Participant: Log in to see names |
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. http://screencast.com/t/ZjMyZTcwY2Et
|
||
|
New Topic Reply |
Subscription Options: Have all new forum posts sent directly to your email. |
Subscription options are available after you log in. |