Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Feb 2007
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Double-Clicking on ActiveX Image

    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

    Code:
    <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
    Last edited by totallychibi; 02-08-2007 at 01:36 AM.

  • #2
    New to the CF scene
    Join Date
    Feb 2007
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts
    ok,
    am going to try layers
    and putting div tags around the flash code


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •