本文介绍了显示由页面加载时由Greybox生成的弹出框(onLoad)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有以下html代码:
< a href =http://google.com/title =Google =gb_page_center [500,500]>启动< / a>
当我点击LAUNCH时,它会启动一个由GREYBOX生成的弹出窗口。但是现在我希望每次打开网站时都会自动发生这种情况!我怎么做?
< script>
AJS.AEV(window,'load',function(){
GB_show(Hello world,http://google.com);
});
< / script>
由greybox使用的AJS库提供它自己的pageload调用
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?
解决方案
<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
这篇关于显示由页面加载时由Greybox生成的弹出框(onLoad)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!