Freelancers Network - freelance work, jobs uk and world
wide
Prosperity4
Freelancing or Contracting?

Effortless freelancing. Enjoy a perfect work-Life balance.

Request a FREE Contracting pack Today!!



Projects by Month
December 2001
November 2001
October 2001
September 2001
August 2001
July 2001
June 2001
May 2001
April 2001
March 2001
February 2001
January 2001


Projects by Year
2008
2007
2006
2005
2004
2003
2002
2001
2000
skill list top cap
Homepage
Join the Freelancer's Network
Update your details
Find a freelancer
Post a project
Find a project
Projects Archive
Post a job
Find a job
Jobs Archive
See Dan's Pages
See Andy's Pages
Link to this site
Resources
Join/Leave Forum
Forum Messages
+Additions+ Adverts
Advertising
Contact Us
Subscribe to our newsletter - enter your email address and hit return
Freelancers.net is owned and operated by Andy Stowell and Dan Winchester
skill list end cap
guru web hostcom

Find me again on Freelancers.net

Quick fix for Javascript code

posted on 5/11/2001

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 = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=350,height=350');");
}

function redirect(URL) {
window.location = 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/<%=ref%>_<%=addimg%>.jpg')"><img border="0" src="images/add_<%=addimg%>.gif"></a>
-----------------------------------------
Many thanks




We are no longer accepting applications for this project.

Back to Project List