开发者

Add mootools in Facebook iframe

开发者 https://www.devze.com 2023-03-03 15:02 出处:网络
I\'m a beginner with Facebook Iframe. This code works well on my page: <script src=\"js/mootools-1.2.4-core-yc.js\" type=\"text/javascript\" charset=\"utf-8\"></script>

I'm a beginner with Facebook Iframe.

This code works well on my page:

<script src="js/mootools-1.2.4-core-yc.js" type="text/javascript" charset="utf-8"></script>
    <script src="js/Bubble.js" type="text/javascript" charset="utf-8"&开发者_StackOverflowgt;</script>
    <script type="text/javascript" charset="utf-8">
        window.addEvent('domready', function(){
            var positions_for_demo = ['above', 'below', 'left', 'right'];
            $$('.bubble_me').each(function(item){
                new Bubble(item,{
                    position: positions_for_demo.getRandom()
                });
            });
        });
    </script>

But, doesn't work in the Facebook iframe...


You cannot access window element on facebook iframe.

0

精彩评论

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