Is there somebody who knows how to implement Shadowbox options?
I tried something like this:
drupal_add_js('
Shadowbox.open({
options: {onOpen: alert("test")}
});
', 'inline', 'footer');
However, this alerts "test" already when only the page is loaded. Anybody knows why that is?
Comments
Comment #1
hamsterbacke42 commentedNevermind, found that this works:
Not really a Drupal issue
Comment #2
hamsterbacke42 commented