473,503 Members | 3,740 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

howto hide QuickTime object?

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.

Dec 30 '05 #1
6 4312
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
Dec 30 '05 #2
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
Dec 30 '05 #3
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
Dec 30 '05 #4
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?

Dec 30 '05 #5
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
Dec 30 '05 #6
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/
Dec 30 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
2110
by: Stefan Tietke | last post by:
Hi all, for a realtime simulation of a video installation we want to use Quicktime to read video data from a file or stream and process the data in a realtime Gameblender model. We are trying...
10
4673
by: comp.lang.php | last post by:
echo mime_content_type('/var/www/html/video/small.mov'); // 1.5mb Quicktime video returns "video/quicktime" echo mime_content_type('/var/www/html/video/huge.mov'); // 10.5mb Quicktime video...
0
1623
by: Saperlipopette | last post by:
I need to use the Quicktime ActiveX in C#. In VisualStudio, I added the reference to the COM composant Quicktime Object (Quicktime Plugin version FU-6.0.2). I don't know how use this component,...
2
9005
by: Vanga Sasidhar | last post by:
Already posted the same message but the date and time of my machine was set back. and it was listed under the old date. Thats why I am posting the same message again. Please accept this. ...
3
5348
by: ghassett | last post by:
Hello, When I have a Quicktime object embedded in my web page, and I use Javascript to set its URL, the clip always starts playing immediately, even if I have the player's autoplay property set...
15
7535
by: Encapsulin | last post by:
Hello everybody. I'm trying to change src of quicktime embedded object with javascript: <html><body> <script language="JavaScript"> function Exchange() { document.qtvr.src = "sample2.pano";...
1
1772
by: Binba | last post by:
I created the simplest embed QT movie page, and for starters, want to get the version. An HREF event works fine, but otherwise I get a fabulous "Unspecified error". I'm using MSIE6 WinXP SP2. ...
1
2102
by: josephChiaWY | last post by:
Hi all, Recently, i have met a problem in playing the selected video in the embedded quicktime player. I am creating a video gallery for people to view their .mov file on quicktime player. Below...
0
7192
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7315
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6974
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5559
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4991
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4665
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3158
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3147
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1492
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.