Hmm, well definitely not jQuery. It's a free script that uses ordinary javascript, albeit with a fairly high level of sophistication. The script is from here:
http://www.dyn-web.com/code/popup/
Anyways, I don't know what you have, and what exactly you're trying to do. But if the top page already has the script on it and has something like:
Code:
<script type="text/javascript">
DYN_WEB.Event.domReady( function() {
DYN_WEB.Popup.setup( { id:'popup', handleId:'handle' } );
}
);
</script>
that on it and has the markup for the popup, then on a page in the iframe you can do:
Code:
<a href="#" onclick="parent.DYN_WEB.Popup.getInstance('popup').show(); return false;">Show Pop Up</a>
to pop it up.
If you want more help, please include a link to the page on your site that contains the problematic code so we can check it out.
But you can also simply do (to show it):
Code:
parent.document.getElementById('popup').style.visibility = 'visible';
and to hide it:
Code:
parent.document.getElementById('popup').style.visibility = 'hidden';
Bookmarks