I have the following code that works fine in FireFox but throws an error
that prevents it from working in IE.

The area that is throwing the error is bolded below. I am assuming is
something small I am missing.

Thanks for your help in advance.

$(document).ready(function () {

    $("a.triggoverlay").click(function() {


        destination = $(this).attr("href");
        cta = $(this).attr("rel");

        $("#overlay a").attr("href", destination);

        flowplayer("a.fplayer","/flowplayer/flowplayer.commercial-3.1.0.swf",
{

            key: '#...@xxxxxxx',
            clip: {
                scaling: 'fit',
                *onCuepoint: [[-2000], function() {
                    if (cta) {
                        var myContent = this.getPlugin("myContent");

                        myContent.show();
                        myContent.setHtml(cta);
                    }
                }]*
            },
            canvas: {
                background: '#000000',

                backgroundGradient: 'none',
            },
            plugins: {
                myContent: { url: '/flowplayer/flowplayer.content-3.1.0.swf',
                    top: 20,

                    width: 300,
                    borderRadius: 10, display: 'none'
                }
            }
        });

        $("#overlay").overlay({

            closeOnClick: true,
            finish:  {
                top: 30
            },
            onBeforeLoad: function(content) {
                this.getBackgroundImage().expose({color: '#444'});

                this.getContent().find("a.fplayer").flowplayer(0).load();
            },
            onLoad: function(content) {

            },
            onClose: function(content) {

                $.expose.close();
                $f().unload();
                $('#overlay').unbind().removeData();
            }
        });

        $("#overlay").overlay().load();

        return false;
    });
});

Reply via email to