I’m just beginning to learn JavaScript and I’m quite confused. I want to be able to click on a thumbnail on my page and have it bring up a popup featuring the full size image but so far I haven’t been able to do this. ?
I’ve tried so many different things so far that I’m not sure what to copy/paste here. Currently, I have this jumbled mess in the heading:
[CODE]<script language=”JavaScript” type=”text/javascript”>
function popup(url, name, width, height) {
settings=”toolbar=yes, location=yes, directories=yes,” +
“status=no, menubar=no, scrollbars=yes,” +
“resizable=yes, width=” + width+”, height=”+height;
MyNewWindow=window.open(url,name,settings);
}
</script>
And I have this in the body:
[CODE]<a href=”#” onclick=”popup(‘../media/ipadLARGE.jpg’, ‘iPad’, 2400, 1645);”><img src=”../media/ipadSMALL.jpg”
width=”150″ height=”103″ alt=”Picture of an iPad.” /></a>
I apologize if that’s really bad, I’ve been looking at different sources for help and I’m getting confused. *sigh