473,654 Members | 3,084 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="javas cript">
function _hide_(){ ??? }

function showfile(filena me){
if(filename == "")
_hide_();
else
document.getEle mentById("qtvr" ).SetURL(filena me);
}
</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="javascrip t:showfile('sam ple1.mov');">sa mple1</a>
<br><a href="javascrip t:showfile(''); ">hide qtvr</a>

Is it possible? How should _hide_() function looks like?
Many thanks.

Dec 30 '05 #1
6 4323
Encapsulin wrote:
Is it possible? How should _hide_() function looks like?


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

// Show the movie
function show(){
document.getEle mentById("qtvr" ).style.display = '';
}
JW
Dec 30 '05 #2
Encapsulin wrote:
<script language="javas cript">
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="javascrip t:showfile('sam ple1.mov');">sa mple1</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.getEle mentById("qtvr" ).style.display = 'none';
}

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


<URL:http://pointedears.de/scripts/test/whatami#inferen ce>
PointedEars
Dec 30 '05 #4
In some reason Mozilla crashed with the following code (but IE is ok):

<SCRIPT type="text/javascript">
function showmov(filenam e)
{
if(filename == "")
{
document.movie. style.display = 'none';
}
else
{
document.movie. style.display = '';
document.movie. SetURL(filename );
}
document.getEle mentById('repor t').innerHTML =
"["+document.movi e.style.display +"] ["+document.movi e.GetURL()+']';
}
</SCRIPT>

<br><a href="javascrip t:showmov('samp le1.pano');">sa mple1</a>
<br><a href="javascrip t:showmov('samp le2.pano');">sa mple2</a>
<br><a href="javascrip t:showmov('');" >hide</a>
<hr><span id="report">sta tus</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="ww w.apple.com/quicktime/download"
name="movie" id="movie"
enablejavascrip t="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.javas cript 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
2128
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 to simulate a large-scale, low resolution media facade using individuell video pixels to control lamps mounted into the facade.
10
4704
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 returns "text/plain" Environment: PHP 5.0.4 - Windows XP --enable-mime-magic PHP 4.3.11 - Fedora Core 4 --enable-mime-magic
0
1636
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, specially : + Which are the names of his events (like EndOfStream...) ? + How play a video in full screen ? Thank you.
2
9023
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. ------------------------------------------------------------------------------------ Hi All, I have some AVI files and i want to create a program which will open an AVI file from the hard disk at runtime and run that Video. But here i want
3
5370
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 to false. Here is a code snippet: <EMBED width="100%" height="100%" TYPE="video/quicktime" PLUGINSPAGE="www.apple.com/quicktime/download"
15
7545
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"; document.embeds.src = "sample2.mov"; }
1
1789
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. <html> <body> <OBJECT classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab"
1
2120
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 are parts of my code: if($ext=="mov"){ echo "<object classid='clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B' width=320 height=240 standby='Data is loading...' codebase='http://www.apple.com/qtactivex/qtplugin.cab'> <param name=src...
0
8376
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8290
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
7307
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6161
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5622
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4149
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4294
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1916
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1596
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.