Sorry bout this rather dumb q, but could someone tell me how to delay a javascript object from running?
ext = GetFileExtension(item.Path);
if (IsMovieFile(ext))
{
Preview.innerHTML = '<p>' +
'<object ID=MediaPlayer class=Movie classid="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95">' +
'<param name="ShowDisplay" value=false>'+
'<param name="AutoPlay" value="false">' +
'</object>';
MediaPlayer.EnableContextMenu = false;
MediaPlayer.Open(item.Path);
}
Want it to open MediaPlayer after a delay of like 3 seconds. Or maybe even tell it to open the file 3 seconds after starting.
P.S. This is from the standard.htt file in Win2K, it keeps opening files in WMP b4 i get a chance to use it in a right click menu-item, and as a result the other prog can't open it whilst WMP has access.
ext = GetFileExtension(item.Path);
if (IsMovieFile(ext))
{
Preview.innerHTML = '<p>' +
'<object ID=MediaPlayer class=Movie classid="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95">' +
'<param name="ShowDisplay" value=false>'+
'<param name="AutoPlay" value="false">' +
'</object>';
MediaPlayer.EnableContextMenu = false;
MediaPlayer.Open(item.Path);
}
Want it to open MediaPlayer after a delay of like 3 seconds. Or maybe even tell it to open the file 3 seconds after starting.
P.S. This is from the standard.htt file in Win2K, it keeps opening files in WMP b4 i get a chance to use it in a right click menu-item, and as a result the other prog can't open it whilst WMP has access.