I have a script that, when called, creates a popup window with an image. It also uses an html script to set some variables. It takes the image name, left, top, width as parameters (defaults to a given size in the middle of the page).
I need someone to modify the scripts as follows:-
Rename the script to PopPage(name, left, top, size, c). 'Name' can be any url, starting in the root folder. So if name was [login to view URL] it would load [login to view URL] if name was products/[login to view URL] it would load [login to view URL] etc.
'Left' = position in pixels from the left of the screen; if left out use middle of page.
Similar with 'top' position.
'Size' = size of popup window in pixels, width the same as height, if left out default = 300.
The popup window will now display a .php page instead of an image.
The script will be called 'onclick' from various buttons on various pages throughout the website. The scripts will be held in the 'media/' folder on the website.