Ich habe es online gefunden, weil ich es in letzter Zeit verwenden möchte, aber ich habe es noch nicht ausprobiert
Die Codekopie lautet wie folgt:
<! DocType html public "-// w3c // dtd xhtml 1.0 transitional // en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transsitional.dtd">
<html xmlns = "http://www.w3.org/1999/xhtml">
<kopf>
<meta http-äquiv = "content-type" content = "text /html; charset = gb2312" />
<title> bis zum Titel "Dokument" </title>
</head>
<body>
<p>
<Object ID = "Player" style = "Anzeige: Keine" classId = "clSID: 6BF52A52-394A-11D3-B153-00C04F79FAA6">
<param name = "invokeurls" value = "-1">
<param name = "autostart" value = "-1">
<param name = "currentPosition" value = "0">
<param name = 'uimode' value = 'mini'>
<param name = "url" value = "test.mpg">
</Object>
</p>
<Eingabename = "Senden" type = "subieren" onclick = "getInfo ()">
<p>
<script Language = "JavaScript">
var Zeit;
Funktion getInfo () {
var pl = document.getElementById ("Player");
Time = pl.currentmedia.durationsstring;
Alert (ParseInt (pl. currentmedia.durationsstring.substring (0,2)*60));
//alert(parseInt(pl.currentMedia.durationsstring.substring(3,5)));
Alert (ParseInt (pl. currentmedia.durationsstring.substring (0,2)*60)+ParseInt (pl. currentmedia.durationsstring.substring (3,5));
}
</script>
</p>
</body>
</html>