- I use this small Javascript in connection with the DivX webplayer (in the following http// has been removed for links)
<script type="text/javascript">
function openNewMovie(url) {
if (url != '') {
plugin.Open(url);
}
}
</script>
with the following object
<object id="ie_plugin" classid="clsid:67DABFBF-D0AB-41fa-9C46-CC0F21721616"
width="820" height="500" codebase="go.divx.com/plugin/DivXBrowserPlugin.cab">
<param name="bufferingMode" value="auto"/>
<param name="bannerEnabled" value="false"/>
<param name="custommode" value="full" />
<param name="previewImage"
value="Images/videothumbs/ScWT63xdic+time.jpg" />
<param name="loop" value="true" />
<param name="autoPlay" value="true" />
<param name="src" value="Videos/Cell_architecture_ns.mkv" />
<embed id="np_plugin" type="video/divx"
width="800" height="500"
autoplay="true"
bufferingmode="auto"
custommode="full"
loop="true"
previewimage="Images/videothumbs/Cell_architecture.mkv_000233999.jpg"
pluginspage="go.divx.com/plugin/download/">
</embed>
</object>
and the following selector for browser use
<script type="text/javascript">
var plugin;
if (navigator.userAgent.indexOf('MSIE') != -1) {
plugin = document.getElementById('ie_plugin');
}
else {
plugin = document.getElementById('np_plugin');
}
</script>
the calls are like this
<td><input id="Button5";; onclick="javascript:openNewMovie('Videos/Apoptosis_ns.mkv')"
style="background-image: url('Images/videothumbs/Apoptosis.mkv_000055199.jpg')"
type="button" value="Apoptosis" /></td>
but on some computers I continue to get the following :
Line: 10
Error: Object doesn't support property or method 'Open'
(first script)
while others are OK. Only ie (ie11) gives this problem all other browsers using the embedded code are fine on all computers.
Are there anyone that know what is going on?????.
Kind regards
Morten
Meldal @ nano.ku.dk