...

View Full Version : Double-Clicking on ActiveX Image



totallychibi
02-06-2007, 09:15 AM
I currently have the window split into various frames
each frame contains streaming media,
viewed via ActiveX controls

I would like to double click on the ActiveX image
and for it then to popUp into a new window

this is what i ahve so far


<script language="JavaScript" type="text/javascript">
<!--

if ((navigator.appName == "Microsoft Internet Explorer") && (navigator.platform != "MacPPC") && (navigator.platform != "Mac68k")) {
var browser = "IE"
} else {
var browser = "Netscape"
}
var File = "rtsp://" + host + ":554/mpeg4/1/media.amp";
var output = "";

if ((browser == "IE") && ("activex" != "quicktime")) {
output = '<OBJECT ID="Player" width=' + width + ' height=' + height + ' CLASSID="CLSID:DE625294-70E6-45ED-B895-CFFA13AEB044" CODEBASE="/activex/AMC.cab#version=3,32,37,1">';
output += '<param name="MediaURL" value="' + File + '">';
output += '<param name="MediaType" value="auto-sense">';
output += '<param name="ShowStatusBar" value="0">';
output += '<param name="ShowToolbar" value="0">';
output += '<param name="AutoStart" value="1">';
output += '<BR>AXIS Media Control, which enables streaming video in Microsoft Internet Explorer, could not be registered on this computer. To install AXIS Media Control, you must have administration rights on this computer and you must answer Yes when asked if you wish to allow the installation. The AXIS 232D+ can also be configured to show still images.';
output += '<BR></OBJECT>';
} else {
output = '<OBJECT CLASSID="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" width=' + width + ' height=' + height + ' CODEBASE="http://www.apple.com/qtactivex/qtplugin.cab">';
output += '<param name="src" value="/view/AxisMoviePoster.mov">';
output += '<param name="autoplay" value="true">';
output += '<param name="controller" value="false">';
output += '<param name="qtsrc" value="' + File + '">';
output += '<embed src="/view/AxisMoviePoster.mov" width=704 height=576 qtsrc="' + File + '" autoplay="true" controller="false" target="myself" PLUGINSPAGE="http://www.apple.com/quicktime/download/"></embed>';
output += '</OBJECT>';
}
document.write(output);
// -->
</script>

i would like this to pop-up when the user double clicks on it
but not sure how to go about it

totallychibi
02-09-2007, 12:41 AM
ok,
am going to try layers
and putting div tags around the flash code



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum