| Welcome to WebmasterWorld Guest from 184.108.40.206 |
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
|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.
© Webmaster World 1996-2013 all rights reserved