I am using the REPLACE code successfully (though ONLY in FF and Opera
- IEs not doing ANYTHING)

I found I HAD to use the metadata.js code FROM the page link/demo
below as the newer version of metadata.js is quite different and does
not work with the CODE example below the link (see below)

I have two issues:

ONE: that the code below does NOT work with the latest version of
metadata.js

TWO: my working page does absolutely noting in IE7 and IE7. I am
hoping this is due to the metadata older version, as I'd read about
problems with the older metadata.js.

SO..... I need to find out what to change in the code examnple below
(that I got from the ink below:

THEN I'm hoping that my pages will work in IE6 and IE7.

Please help me if possible. Many thanks!


http://www.malsup.com/jquery/media/replace.html


---------- REAPLCE code from link page above)
$(function() {
    $('a.media').click(function() {
        // get media options from the markup using metadata plugin
        var opts = $(this).data();
        opts.src = this.href;
        setTimeout(function() { playMedia(opts); }, 50);
        return false;
    });
});

function playMedia(opts) {
    // stop the current media
    $('object,embed', '#player').each(function() {
            try { this.Stop();   } catch(e) {}  // quicktime
            try { this.controls.stop(); } catch(e) {} // windows media
player
            $(this).hide().remove();
        });
    // start the new media using opts arg
    $('#player').empty().media(opts);
}
-----------------------

Reply via email to