« Return to the main article
Thanks! However, this leads me to another question (sorry!)...
I'm using the more streamlined version of the window open code found elsewhere in this thread:
function windowOpener(pic, title, size) {
if(typeof(popupWin) != "object" || popupWin.closed) { popupWin = window.open(pic,title,size); } else { popupWin.location.href = pic; }
popupWin.focus(); }
My links to call the javascript (and therefore open the window to display the graphics) are then found in the body of the page, e.g.:
<a href="javascript:windowOpener('../screens.php?fi=picture1&fh=&shot=photo 1.jpg&altag=Nice%20Picture&colour=red','screens','width=480,height=450') ">picture1</a>
fi, fh, shot, colour, etc. are all php variables that help me to define the picture and how it is displayed, using php code elsewhere.
The height and width are therefore usually defined in the link, so how would I incorporate the popupWin.width and popupWin.height into the above?
Thanks! However, this leads me to another question (sorry!)...
I'm using the more streamlined version of the window open code found elsewhere in this thread:
function windowOpener(pic, title, size) {
if(typeof(popupWin) != "object" || popupWin.closed) { popupWin = window.open(pic,title,size); } else { popupWin.location.href = pic; }
popupWin.focus(); }
My links to call the javascript (and therefore open the window to display the graphics) are then found in the body of the page, e.g.:
<a href="javascript:windowOpener('../screens.php?fi=picture1&fh=&shot=photo 1.jpg&altag=Nice%20Picture&colour=red','screens','width=480,height=450') ">picture1</a>
fi, fh, shot, colour, etc. are all php variables that help me to define the picture and how it is displayed, using php code elsewhere.
The height and width are therefore usually defined in the link, so how would I incorporate the popupWin.width and popupWin.height into the above?