开发者

prettyPhoto not working on document ready

开发者 https://www.devze.com 2023-03-28 20:04 出处:网络
I have seen this asked and followed everything but it simply doesnt work for me Could anyone tell me if they see anything wrong h开发者_开发问答ere?

I have seen this asked and followed everything but it simply doesnt work for me

Could anyone tell me if they see anything wrong h开发者_开发问答ere? Im not very good at this yet, I am sure it must be something simple.

My goal is to display a popUp once the page is loaded.

Any help is appreciated!

<script type="text/javascript" charset="utf-8">
        $(document).ready(function(){               
            $("a[rel^='prettyPhoto']").prettyPhoto();

            function showPopUp() {
                var where = "images/popup.jpg";
                var title = "";
                var comment = "";           

                $.prettyPhoto.open(where, title, comment);
            }

            showPopUp();

        });
    </script>


Problem has been fixed in version 3.0.3.

Solution was found here: isSet is not defined

0

精彩评论

暂无评论...
验证码 换一张
取 消