greybox

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