Howto Change Quicktime Src With Javascript?

Dec 27, 2005

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["mov"].src = "sample2.mov";
}
</script>

<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B"
width="600" height="400"
codebase="http://www.apple.com/qtactivex/qtplugin.cab" id="qtvr">
<param name="autoplay" value="true">
<param name="controller" value="true">
<param name="pluginspage"
value="http://www.apple.com/quicktime/download/indext.html">
<param name="target" value="myself">
<param name="type" value="video/quicktime">
<param name="src" value="sample1.pano">
<embed src="sample1.mov" width="600" height="400" autoplay="true"
controller="true" border="0"
pluginspage="http://www.apple.com/quicktime/download/indext.html"
target="myself" type="video/quicktime" name="mov"></embed>
</object>

<a href="#" onclick="javascript:Exchange()">exchange</a>
</body></html>

but IE said that "document.embeds.mov.src is not object", and image
isn't changed ( IE,Mozilla) when user click on the link "exchange".
What is wrong, how to do this correctly?

View 15 Replies


ADVERTISEMENT

Can't Change QuickTime Movie

Nov 25, 2010

Purpose: To create a page that plays different movies depending on which link the user clicks on. Only one player is displayed to play all the movies. Right now the links are text for my convenience but eventually they'll be images.

Problem: I can't get the player to change to the second movie. I'm doing this in JavaScript. Here I'm showing it to you as inline script, but it doesn't work as a function call either.

Question: How do I get this page to change the movie in the player based on the user's click?

I've tried this 2 different ways: creating the playing with manual code and creating it with an Apple-supplied function call.

This is how I create the player manually:

HTML Code:
<object CLASSID="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B"
CODEBASE="http://www.apple.com/qtactivex/qtplugin.cab" WIDTH="640" HEIGHT="370" id="movie1">
<PARAM NAME="src" VALUE="video/movie1.mp4" />

[Code]....

When I create the player using the Apple supplied function, I get no error message and it also doesn't change the movie. The existing movie just keeps playing. I created a bunch of other links to do things like stop the movie, start the movie, rewind the movie, and retrieve the movie URL, and these work in IE for the manual coding but not for the Apple supplied function call. I also tested both versions on the other 4 major browsers. None of them change the movie either, but for the Apple supplied function they will all start the movie, stop the movie and rewind the movie from JavaScript. I can give you that information as well.

View 2 Replies View Related

Javascript & Quicktime Problem

Dec 28, 2005

I do a lot of php and need now a bit of javascript to control a narration on a website which is run as an mp3 thru the quicktime plug-in. The plug-in is working fine and I've written javascript to pause and play the narration through the pages own button.

The next task was to get it to move to the next slide after the narration has finished, so I decided to do a javascript re-direct after the time returned by the int GetDuration() command which the apple site says returns the length of the movie. Code:

View 1 Replies View Related

Autcomplete Box Howto

Jul 23, 2005

I want to have the drop down menu to be selected by user in an input box.
It's like the autocomplete box in IE. But I would provide the options. Is
there any page on how to do that ? Or any library for this ?

I tried to search in google about "autocomplete, drop down menu, javascript"
but there is nothing exactly of what I want returned.

View 1 Replies View Related

Howto Point To A Textbox?

Jul 23, 2005

I just wondered how I can refer to the following two
textboxes in this form:

<FORM action="FormWrite.php" method="post" name="submitForm">
<INPUT NAME="inputValues[etunimi]" SIZE=40>
<INPUT NAME="inputValues[sukunimi]" SIZE=40>
<INPUT TYPE="button" onclick="javacscript:sendForm();"
VALUE="Lähetä">
</FORM>


the reason the [] signs are in the name is to get all the textboxes values
in one variable
when using a php script.

- But how can I refer to it with javascript? For example; I tried

alert(document.submitForm.inputValues[etunimi].value);

View 4 Replies View Related

HowTo Find Out DNS Clientside

Jan 27, 2006

How can I find out what a users DNS is clientside. We need to build a login page that has a login form. The action of the form needs to be dynamic depending on the clients dns. For example: Code:

View 1 Replies View Related

Quicktime And JS - What Am I Missing?

Jun 20, 2007

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.

View 1 Replies View Related

How To Hide QuickTime Object?

Dec 30, 2005

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:

View 6 Replies View Related

Playing Quicktime Movies

Jul 20, 2005

I have a webpage with thumbnail images that I want to be able to click on to play associated Quicktime movie files in either IE or Netscape. I'm having difficulty finding any HTML or Javascript code for doing this, and was wondering if this is not an easy thing to do. Is there
some special code needed for detecting Netscape Quicktime plugins, and what about IE?

View 1 Replies View Related

Quicktime QT_WriteOBJECT Problem

May 7, 2006

I'm trying to use the QT_WriteOBJECT function script as recommended by Apple, but I'm having no luck in getting my .mov file to show up. My popup html file appears, but with no movie. Here is the Apple site where I've found the technique:

http://developer.apple.com/internet/ieembedprep.html

I'm using the AC_QuickTime.js file.

Here is the code that rests within the head section:
<script src="[path]/AC_QuickTime.js" language="JavaScript" type="text/javascript"></script>

Here is my code that sits on my quicktime movie page: Code:

View 2 Replies View Related

Getting Quicktime Plugin To Work With IE 8?

Oct 24, 2010

I'm running my web page on IE8+9 with Windows Home via Boot Camp.

My JS code is:

if (QuicktimeIsPresent)
{
var song = PlaySong('200', '50', '#9cceff', 'false', 'false', 'tunes/taps.mov')
document.write (song)
}

The JS code for PlaySong is:

function PlaySong(width, height, bgcolor, autostart, loop, songloc)
{
var play = ''

[code]....

For IE8+9, the quicktime crescendo/midi control shows .. but when I click the play button on it, it almost immediately stops.Other Windows browsers(Firefox and Safari and IE 7) play just fine, together with all Macintosh browsers.

View 1 Replies View Related

JQuery :: Looking For Plugin To Detect Quicktime?

Apr 26, 2009

I'm looking for a jquery plugin (or vanilla method) for detecting quicktime, so I can decide whether to embed a QT movie or not. Did some googling, but most of the methods seems really old and I didn't see any jQuery plugins dedicated to detection.

View 1 Replies View Related

Dynamically Create Quicktime Video?

Apr 29, 2009

I'm attempting to dynamically create a QuickTime embedded movie. I'm including the AC_Quicktime.js script which contains methods for creating the embedded movie easily and putting it into an existing DIV. This is working correctly, however the movie will not load. Here's the code that I'm using.

Code:

function loadMovie() {
var objectTxt = QT_GenerateOBJECTText_XHTML('poster.jpg', '100%', '100%','','controller','true','autoplay','true','showlogo','true','moviename','stream', 'obj#ID', 'stream', 'cache','false','href','rtsp://192.168.20.105:554

[Code]....

View 1 Replies View Related

Test For Quicktime Plugin Launch .mov

Jun 13, 2008

My code tests for existence of Quicktime plugin.If the plugin is installed. A sample .mov should play but does not.The <h2> header does appear on screen, nothing else, no errors.

View 1 Replies View Related

Change Variable In Javascript

Oct 22, 2006

i use the following script (from textbook) to restrict 160 character in
Message_cont textbox.

how can i to change the number of character to 70 if any double bytes
character detected in the textbox. Code:

View 2 Replies View Related

If Then To Change A Parameter In Javascript

Nov 30, 2006

The following information is passed to a script to generate an email
from a form.
<INPUT TYPE="hidden" name="param_recipient" value="me@mycompany.org">

In the form further down on the page, a user enters a value in the ru
field. I want to write something similar to:
if ru=122 then sendformto="me@mycompany.org"
if ru=144 then sendformto="you@mycompany.org"

the paramater above would then become something like:
<INPUT TYPE="hidden" name="param_recipient" value=sendformto>

How would I go about doing this?

View 3 Replies View Related

Javascript: Img-Change-Problem With IE

Jul 20, 2005

I've a problem with JavaScript and IMG-Objects.
On my webpage I use a big image and several small images. If you click
on a small image, it executes a JavaScript to change the source of the
big image to the source of the small image.

It's working fine, but on some browsers (I use IE 6.0.2800.1106) the
image doesn't change properly.
I click on the image and the big image turns white. Now I have to
click on the image again and sometimes it works and changes the image
(without reloading the site). I've found no logic, why it's working
only sometimes. Code:

View 2 Replies View Related

Can I Change An Href In Javascript?

Jul 20, 2005

I am using some javascript code to change an image on an html page. I would
like the user to click on the image to bring them to another page. I need to
change an href to include an id value based on the image.

Here's the process:

1. select an image from a drop down list.
2. view the image on the same page.
3. click on the image to bring user to another page.

Here's my attempt at it:

function nextimg() {
txtString =
document.Topics.sel_val.options[document.Topics.sel_val.selectedIndex].value
document.image1.src = txtString.substring(txtString.lastIndexOf("&") + 1);
document.frmPic.href="details.asp?id=" & txtString;
}

I also think that txtString is not what I need. I believe it is a text
string (12345.jpg). So I will need to parse the string as well to get the
"12345".

View 2 Replies View Related

Change CSS Class Property Using Javascript?

Jul 23, 2005

I have several tags on a webpage of the same class. If the user clicks a
specific checkbox I'd like to be able to alter the display property of the
class, affecting all objects of that class.

This is an intranet application so we know that javascript will be enabled
and the browser will be IE.

How can I affect all the members of this class? Is there a way I can toggle
the DISPLAY property of a class so all the elements using that class would
be affected? Code:

View 3 Replies View Related

Change Link Colors From JavaScript?

Jul 23, 2005

I'm writing a FireFox extension and I have the dom and therefor the
links[] collection

window.getBrowser().contentDocument.links[i]

Is there a way to change the color of these links based on the stuff I'm
checking for from the JavaScript?

For example. If I have this loop
var number_of_links = window.getBrowser().contentDocument.links.length;

for (var i=0; i < number_of_links; i++)
{
var domain = window.getBrowser().contentDocument.links[i].hostname;
//Check hostname here and change color
}

how could I change the links color?

View 1 Replies View Related

Change The Domain, Keep The Path..with Javascript?

May 25, 2007

I'm currently at http://www.domain.com/the-path.jsp, and I would like
to be able, with JavaScript--and possibly the click of a button, which
I will most likely attach to IE's toolbar--transport to
http://domain.dev.domain.com/the-path.jsp.

Here's the environment: My browser is set to the page http://www.domain.com/the-path.jsp
and I plan to add a button to IE's toolbar via the registry that I
would like to execute the JavaScript, which contain the code to
perform the aforementioned procedure.

My JavaScript knowledge is, as I'm sure you've already surmised,
limited.

Here's what I know (or what I think I know)

The .js file header:
oShell= new
ActiveXObject("WScript.Shell");

the object: window.location.replace [or href].

I have a feeling a "and if" statement is needed here. Am I correct?

BTW: As far as the registry button addition is concerned, I'm set on
how to do that.

View 2 Replies View Related

Table Background Change Using Javascript

Dec 11, 2006

I'm trying to make a javascript menu. As a start, I want the background of the cell to change to a specific image on mouseOver. Does it not work because of the "background-image" translation from CSS to JAVASCRIPT or could it be something else.

<html>
<head>
<title>Untitled Document</title>
<link rel="stylesheet" href="main.css" />
<script language="javascript">
function change()
{
document.getElementById("homebtn").style.backgroundImage="imgs/btn_black2.gif">;
}
</script>

</head>
<body>

<table width="100" >
<td>
<tr style="background-image:url(imgs/btn_black.gif)" class="myFont" onMouseOver="change()" id="homebtn">- Home</tr>
<tr>asdfsdf</tr>
<tr>asdfsdf</tr>

</td>
</table>
</body>
</html>

View 1 Replies View Related

Change The Order Of Javascript Events

Sep 24, 2006

I'm using this script to allow people to populate form fields just by hitting the words from a list that most appeal to them. The idea is that on clicking a word the field is filled in and then "focus" is moved to the next one. I say "focus" because it's not actual focus, but "virtual focus" held in a js variable. Code:

View 2 Replies View Related

Using Javascript To Change Specific Css Parameter

Nov 5, 2003

Code:

document.getElementById('hello').style.border-top = "2px red solid";

What I'm trying to do is just change the top border color of something I defined with css. The code above of course didn't work.. heh. How would I do it?

View 21 Replies View Related

How To Change CSS Text Size Using JavaScript

Apr 1, 2002

I would like to know how i would go about changing my CSS text size by selecting a value form a select list.

I was told it would be pretty easy with DOM? but i dont know enough about JavaScript or DOM to figure it out. Code:

View 13 Replies View Related

Using ADO From JavaScript In HTML To Change A Spread Sheet

Feb 17, 2006

I'm trying to use client side JavaScript from an HTML file to open
and make changes to an Excel SpreadSheet using ADO w/ ODBC. What a
pain it is to do this. Anyways, I am able to open the excel file but I
don't know how to use ADO to work with it's contents. So far I have
the following code that works:

<html>
<script>
window.onload = function () {
var ExcelSheet;
var sConnect = "DRIVER={Microsoft Excel Driver
(*.xls)};DBQ=P:js-test.xls"
ExcelSheet = new ActiveXObject("ADODB.Connection");
ExcelSheet.Open(sConnect);
}
</script>
<body> =) </body>
</html>

Now that I have the sheet open, how do I manipulate it?

View 13 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved