| Welcome to WebmasterWorld Guest from 220.127.116.11 |
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
|Pubcon Platinum Sponsor 2014|
|Strip File Extensions|
| 12:17 am on May 16, 2009 (gmt 0)|
I'm building a page with a media player and playlist. On each playlist item i have a 'play' link that fires off a load command and a play command to the player.
I also have a "Now Playing" Div that listens for a new file to start and displays the filename. So it would display, "Now Playing: video.flv" or something like that.
Here's the 'now playing' script:
var player = null;
player = gid(obj.id);
gid('nowplaying').innerHTML = '<span class="style1">Now Playing: ' + player.getPlaylist()[obj.index].file + '</span>';
| 2:00 am on May 16, 2009 (gmt 0)|
to display up to first '.'
| 2:17 am on May 16, 2009 (gmt 0)|
Perfect! Works like a charm. Thank you thank you!
All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved