Displaying the Popup box generated by Greybox on page load(onLoad)
-
12-04-2021 - |
Domanda
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?
Soluzione
<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
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow