Displaying the Popup box generated by Greybox on page load(onLoad)

拈花ヽ惹草 提交于 2019-12-12 03:17:15

问题


I have the following html code :

<a href="http://google.com/" title="Google" rel="gb_page_center[500, 500]">Launch</a>

It launches a popup generated with GREYBOX when I click on LAUNCH. but now I want this to happen automatically every time the website is opened! How do I do that?


回答1:


    <body>

    <script>
        AJS.AEV(window, 'load', function() {
          GB_show("Hello world", "http://google.com");
     });
    </script>

The AJS library used by greybox offers it's own pageload call



来源:https://stackoverflow.com/questions/8702686/displaying-the-popup-box-generated-by-greybox-on-page-loadonload

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!