'********************************************************* 'Referenced by published pages with Multimedia elements(windows media player type only). 'The reason to have both vbscript and javascript is that videos encoded by wmp version 7 'and above will not play in lower versions. Therefore, we need to detect wmp version. 'However, the javascript detection from microsoft support site was generating errors, 'so we decided to use vbscript for wmp version detection. But Netscape didn't like vbscripts, 'so we still need to keep javascript for Netscape. '********************************************************* Sub wmpVB(width, height, sourceFile, uiMode, autoPlay, showControl, repeat) On Error Resume Next lngMP70 = IsObject(CreateObject("WMPlayer.OCX")) dim html html = "" html = html & " " html = html & " " html = html & " " html = html & " " html = html & " " html = html & "
" html = html & " Windows Media Player Required" html = html & "
" html = html & "
" Else html = html & "" html = html & " " html = html & " " html = html & " " html = html & " " html = html & "
" html = html & " Windows Media Player Required" html = html & "
" html = html & "
" End If document.write html END Sub