home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Hentai 69
/
HENTAI69.iso
/
Extra
/
MPSetup.exe
/
1033
/
RCDATA
/
CABINET
/
wmploc.DLL
/
256
/
169
< prev
next >
Wrap
Text File
|
2002-12-14
|
1KB
|
55 lines
//<script language="jscript">
function sprintf(str,s)
{
if (typeof(s)=="string")
{
var re;
re = /%s/i;
str = str.replace(re, s);
}
else
{
var index =1;
for (var replaceStrings in s)
{
var re;
re = eval("/%" + index + "/i");
str = str.replace(re, s[replaceStrings]);
index++;
}
}
return str;
}
String.prototype.sprintf = sprintf;
function WMPStringsFunction_GetPositionText()
{
var ps = player.controls.currentPositionString;
if (ps=="") return "";
var ds = "";
if (player.openState==osMediaOpen)
{
if (player.currentMedia.duration>0)
{
ds = player.currentMedia.durationString;
}
}
var newvalue;
if (ds != "")
{
var args = new Array(ps,ds);
newvalue = g_kPositionFormatString.sprintf(g_kPositionFormatString,args);
}
else
{
newvalue = ps;
}
return newvalue;
}
var g_kPositionFormatString = theme.loadString("res://wmploc/RT_STRING/#2091");