View Full Version : resize window media player X, Y

03-08-2005, 07:58 PM

I have 3 corp videos all the same encoded at different sizes.

Im trying to find a way to give the user 3 links 300x400 | 500x800 | 700x1000. These will carry the width and height of the clip.

<OBJECT ID="mediaPlayer" CLASSID="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" TYPE="application/x-oleobject" width="300" height="400">

how can I pass these dynamically, im guessing a document.write('') with the above and some how use a JavaScript:vidID(300,400); to populate the video, or something.

how would i best go implementing this.. im alittle confused.


03-08-2005, 09:30 PM
something like:

<script type="text/javascript">
function sizeIt(eId, w, h)
eId = document.getElementById(eId);
eId.width = w;
eId.height = h;

<a href="#mediaPlayer" onclick="sizeIt('mediaPlayer', 300, 400)">slide one</a>

If you were asking about changing the source file too... just send its path as a parameter, adding another argument to the function; e.g.

function sizeIt(eId, w, h, path)
document[eId].Filename = path;
eId = document.getElementById(eId);
// etc...

03-09-2005, 01:17 AM
dude thanks for your help - much appricated :thumbsup: