Well, I think it's possible.
You are adding the following code to the URL field of the closing object:
javascript:my_close('mypopup1')
If you want it to close multiple popups, add something like this:
javascript:my_close('mypopup1');my_close('mypopup2 ');my_close('mypopup3')
This will close mypopup1, mypopup2, mypopup3 simultaneously.
Second will need additional scripting.
Here's the improved script to use:
Code:
<script type="text/javascript">
function my_clk(e){xr_xpul=0;xr_pul=0;if(my_oldclk){my_oldclk(e)};};
var my_oldclk=document.onmouseup;
document.onmouseup=my_clk;
function my_close(my_name){var o=document.getElementById(my_name).parentNode; if(o.id=='')o=o.parentNode;xr_v0(o);};
function my_open(my_name){var o=document.getElementById(my_name).parentNode; if(o.id=='')o=o.parentNode;xr_v1(o);};
</script>
With it, you can add my_open('my_popup') to the URL field to open a layer.
So, for example, if you want to close "mypopup1" and "mypopup2" and open "mypopup3" and "mypopup4" simultaneously, you can add following string to the URL field:
javascript:my_close('mypopup1');my_close('mypopup2 ');my_open('mypopup3');my_open('mypopup4');
Bookmarks