From: Encapsulin on
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.

From: Janwillem Borleffs on
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


From: Thomas 'PointedEars' Lahn on
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
From: Thomas 'PointedEars' Lahn on
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