Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

resize quicktime movie on webpage



I change the url of an quicktime movie when a certain area in a webpage is
clicked:
**************************************
<script language="javascript1.1">
function changeMovie(moviename){
original_url=document.mainmovie.GetURL();
url=original_url.substring(0,original_url.lastIndexOf('/')+1)+moviename+".mo
v";
document.mainmovie.SetURL(url);
}
</script>
**************************************



the area i defined like this:
**************************************
<area shape="circle" coords="343,96,8"
href="javascript:changeMovie('poort');">
**************************************

the embed source is coded like this:
**************************************
<object CLASSID="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B"
CODEBASE="http://www.apple.com/qtactivex/qtplugin.cab"; width="480"
height="360" align="right" id="mainmovie">
<param name="src" value="docs/movies/poort.mov">
<param name="autoplay" value="true">
<param name="loop" value="false">
<param name="controller" value="true">
<embed src="docs/movies/poort.mov" name="mainmovie" width="480" height="360"
loop="false" align="right" autoplay="true" controller="true"
pluginspage="http://www.apple.com/quicktime/";
enablejavascript="true"></embed>
</object>
*************************************

This works perfectly.

Now i want all the movies to be the same size (they are different sizes but
the proportions are simular)
When i set the parameter:
<param name="scale" value="ToFit"> (and the same in the embedd tag) this
works perfectly for the first movie (the movie is resized to the dimensions
of my embed tag)
When i click an area the movie url changes (another movie is loaded) but the
newly loaded movie uses his own dimensions and does not seem to look after
the 'ToFit' attribute.
I suppose this is logical, although i would like it the otherway arround.

So what i need is a addition to my script so the movie is resized when it is
loaded.

Thx in advance

RV

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
QuickTime-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quicktime-users/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.