howto hide QuickTime object?

Discussion in 'Javascript' started by Encapsulin, Dec 30, 2005.

  1. Encapsulin

    Encapsulin Guest

    Hello everybody,
    is it possible to hide qtvr <object...> (or even change its size to 1
    pixel rectangle)?
    I need to hide qtvr from the page dynamically, if .mov source is empty.

    For example:

    <script language="javascript">
    function _hide_(){ ??? }

    function showfile(filename){
    if(filename == "")
    _hide_();
    else
    document.getElementById("qtvr").SetURL(filename);
    }
    </script>
    <OBJECT
    classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B"

    codebase="http://www.apple.com/qtactivex/qtplugin.cab"
    width="180" height="160"
    id="qtvr" >
    <PARAM name="src" value="">
    </OBJECT>
    <br><a href="javascript:showfile('sample1.mov');">sample1</a>
    <br><a href="javascript:showfile('');">hide qtvr</a>

    Is it possible? How should _hide_() function looks like?
    Many thanks.
    Encapsulin, Dec 30, 2005
    #1
    1. Advertising

  2. Encapsulin wrote:
    > Is it possible? How should _hide_() function looks like?
    >


    // Hide the movie
    function hide(){
    document.getElementById("qtvr").style.display = 'none';
    }

    // Show the movie
    function show(){
    document.getElementById("qtvr").style.display = '';
    }


    JW
    Janwillem Borleffs, Dec 30, 2005
    #2
    1. Advertising

  3. Encapsulin wrote:

    > <script language="javascript">


    The language attribute is deprecated since the current HTML version (4.01),
    the `type' attribute is required:

    <script type="text/javascript">

    > <OBJECT
    > classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B"
    >
    > codebase="http://www.apple.com/qtactivex/qtplugin.cab"
    > width="180" height="160"
    > id="qtvr" >
    > <PARAM name="src" value="">
    > </OBJECT>


    This will not work with any other QuickTime-capable plugin than
    the QuickTime plugin on Microsoft Windows systems with enabled
    ActiveX/COM support,

    > <br><a href="javascript:showfile('sample1.mov');">sample1</a>


    although the resource name indicates that it is not required. And
    you have still not read the FAQ, hence the ongoing misuse of the
    `javascript:' pseudo-protocol.


    PointedEars
    Thomas 'PointedEars' Lahn, Dec 30, 2005
    #3
  4. Janwillem Borleffs wrote:

    > Encapsulin wrote:
    >> Is it possible? How should _hide_() function looks like?

    >
    > // Hide the movie
    > function hide(){
    > document.getElementById("qtvr").style.display = 'none';
    > }
    >
    > // Show the movie
    > function show(){
    > document.getElementById("qtvr").style.display = '';
    > }


    <URL:http://pointedears.de/scripts/test/whatami#inference>


    PointedEars
    Thomas 'PointedEars' Lahn, Dec 30, 2005
    #4
  5. Encapsulin

    Encapsulin Guest

    Re: howto hide QuickTime object?

    In some reason Mozilla crashed with the following code (but IE is ok):

    <SCRIPT type="text/javascript">
    function showmov(filename)
    {
    if(filename == "")
    {
    document.movie.style.display = 'none';
    }
    else
    {
    document.movie.style.display = '';
    document.movie.SetURL(filename);
    }
    document.getElementById('report').innerHTML =
    "["+document.movie.style.display+"] ["+document.movie.GetURL()+']';
    }
    </SCRIPT>

    <br><a href="javascript:showmov('sample1.pano');">sample1</a>
    <br><a href="javascript:showmov('sample2.pano');">sample2</a>
    <br><a href="javascript:showmov('');">hide</a>
    <hr><span id="report">status</span>
    <hr>
    <OBJECT
    classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B"

    codebase="http://www.apple.com/qtactivex/qtplugin.cab"
    width="180" height="160"
    id="movie" >
    <PARAM name="src" value="">
    <EMBED width="180" height="160"
    src=""
    TYPE="video/quicktime"
    PLUGINSPAGE="www.apple.com/quicktime/download"
    name="movie" id="movie"
    enablejavascript="true">
    </EMBED>
    </OBJECT>

    WHY?
    Encapsulin, Dec 30, 2005
    #5
  6. Re: howto hide QuickTime object?

    Encapsulin wrote:

    > In some reason Mozilla crashed with the following code (but IE is ok):
    > [much the same nonsense again, and more new nonsense]


    Apparently you are unable to read and comprehend. I will no longer
    waste my time with you, and I suggest that nobody else does: PLONK


    PointedEars
    Thomas 'PointedEars' Lahn, Dec 30, 2005
    #6
  7. Encapsulin

    Randy Webb Guest

    Re: howto hide QuickTime object?

    Thomas 'PointedEars' Lahn said the following on 12/30/2005 2:36 PM:
    > Encapsulin wrote:
    >
    >
    >>In some reason Mozilla crashed with the following code (but IE is ok):
    >>[much the same nonsense again, and more new nonsense]

    >
    >
    > Apparently you are unable to read and comprehend.


    Now you know how you appear to other people as you display those same
    traits.

    > I will no longer waste my time with you


    And anybody else's time?

    --
    Randy
    comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
    Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
    Randy Webb, Dec 30, 2005
    #7
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Brian

    dynamic streaming quicktime qtl

    Brian, Jan 25, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    1,423
    Brian
    Jan 25, 2004
  2. na
    Replies:
    0
    Views:
    329
  3. johnathan  james

    Quicktime and Apache Ant

    johnathan james, Jun 8, 2005, in forum: Java
    Replies:
    0
    Views:
    1,702
    johnathan james
    Jun 8, 2005
  4. =?Utf-8?B?SmFu?=

    howto hide webcontrol.textbox vertical scrolbar

    =?Utf-8?B?SmFu?=, May 16, 2006, in forum: ASP .Net
    Replies:
    0
    Views:
    466
    =?Utf-8?B?SmFu?=
    May 16, 2006
  5. Encapsulin

    howto change quicktime src with javascript?

    Encapsulin, Dec 27, 2005, in forum: Javascript
    Replies:
    14
    Views:
    215
    Thomas 'PointedEars' Lahn
    Dec 30, 2005
Loading...

Share This Page