hello ,
i am using the below javascript for a photo gallery i have setup.
each photo has a different image size so i use variables in the JS to create popup windows based on the size of the photos.
problem is that if the popup is not closed, all photos are opening in it and keeping the size of the 1st one opened
ie,
clicked on image 1, popup of 400×400 opens, all looks nice
click on image 2, the image loads in the prvs popup and stays 400×400 even if i would have set it 200×200
so how can i fix that? ?
i think easiest is to have a new window for every click, but how ?
<SCRIPT LANGUAGE=”JavaScript”>
<!– Begin
function view(u, l, t, w, h) {
var windowprops = “URL=” + u + “,location=no,scrollbars=no,menubars=no,toolbars=no,resizable=no” + “,left=” + l + “,top=” + t + “,width=” + w + “,height=” + h;
popup = window.open(u,”MenuPopup”,windowprops);
}
// End –>
</script>
and link used:
javascript:view(‘/pictures/viewer.php?link=2004/P1.JPG&w=586&h=624’, 50, 160, 586, 624)
using script on site [url]www.lulpaintings.com