Hi
We have the following script which is being used to display images in popup windows that have been returned from ASP database search results (popups prompted by selecting from a list of images). I end up with a number of separate popups that all need to be closed. Can someone amend the script so that the popups are linked to the page from where they have been prompted (ie the parent page where the list of selectable images is displayed)and are all closed when the parent page is closed. Also if an onUnload statement is needed in the tag can you provide the code that is required.
I need a very speedy response to this and can provide £10-£20 for the amendment.
---------------Current script-----------
<SCRIPT LANGUAGE="JavaScript">
function popUp(URL) {
day = new Date();
id = [login to view URL]();
eval("page" + id + " = [login to view URL](URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=350,height=350');");
}
function redirect(URL) {
[login to view URL] = URL;
}
//
</script>-----------------------------------
The following is in the body of the page and prompts each popup to be shown when an image is clicked:
<a href="javascript PopUp('photos/