The code I have works in all browsers except internet explorer. It's
for loading in an .flv movie without having to reload the page and to
resize the element depending on what aspect ratio it is. This was
working in internet explorer before I made the changes to do with the
size of the div. The video loads when you first go onto the page in
internet explorer although any videos after that won't work. If I call
the function using the console I get an "undefined".

The code

function setFlash(theSrc, iswide) {
    var video;
        if (iswide == 1) {
            video = 528;
            $('#svideo').removeClass('video21x9');
            $('#svideo').addClass('video16x9');
    } else if (iswide === undefined) {
            video = 402;
            $('#svideo').removeClass('video16x9');
            $('#svideo').addClass('video21x9');
    } else {
            video = 402;
            $('#svideo').removeClass('video16x9');
            $('#svideo').addClass('video21x9');
    }
    swfobject.embedSWF("playerlinkhere", "flvdiv", "940", video, "9",
{}, {streaming:"0", fileName: theSrc}, {allowScriptAccess:"always",
allowFullScreen:true, wmode:"transparent"});
}
window.onload = function () {
    var startvideo = "plan_b/plan_b_21x9.flv";
    var flv16 = 0;
    if (flv16 == 1) {
        setFlash(startvideo, flv16);
    } else {
        setFlash(startvideo);
    }
};

-- 
You received this message because you are subscribed to the Google Groups 
"SWFObject" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/swfobject?hl=en.

Reply via email to