Hello Peter,
"Boopipi" <***@Reply_In_Newsgroup.com> schrieb im Newsbeitrag news:eL4Z$***@TK2MSFTNGP06.phx.gbl...
one solution may be to start a MP3 file from inside your help topic. Following code is tested with Rob's code and a external mp3
file.
Please see Rob's example download from the link I posted above.
<html>
<head>
<title>MM Test</title>
</head>
<body>
<SCRIPT Language="JScript">
//Return current dir -- '' if in browser or path to CHM if in a CHM
//If in browser then - location.href=file:///d:/path/file.htm
//If in CHM then - location.href=mk:@MSITStore:D:\path\help.chm::/file.htm
function GetCurrDir() {
var X, Y, sl, a, ra, dir;
ra = /::/;
a = location.href.search(ra);
if (a <= 0) //no a CHM - return an empty string
return('');
//find the index of the first colon in the string
ra = /:/;
a = location.href.search(ra);
if (a == 2)
X = 14; //prefix = mk:@MSITStore:
else
X = 7; //prefix = ms-its:
//find last back slash
sl = "\\";
Y = location.href.lastIndexOf(sl);
dir = location.href.substring(X, Y);
//UnEscape path - EG. Replace %20 with spaces
var dir2 = unescape(dir)
return(dir2);
}
</SCRIPT>
<SCRIPT Language="JScript">
var path = GetCurrDir();
if (path != '')
path = path + '\\';
//alert(path);
document.writeln('<OBJECT ID="mediaPlayer" CLASSID="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95"
TYPE="application/x-oleobject">');
document.writeln('<PARAM NAME="fileName" VALUE="'+path+'Covington.mp3">');
document.writeln('<PARAM NAME="autoStart" VALUE="true"><PARAM NAME="showControls" VALUE="true"></OBJECT>');
</SCRIPT>
<p>
Many files do not work from inside a CHM so you must leave them out side and
create an absolute path on the fly to the external file (in the CHM folder).
</html>
--
Best regards
Ulrich Kulle
Microsoft MVP - Help
***********************************
http://www.help-info.de
***********************************