window.open("popUp.html","mywindow","menubar=1,resizable=1,width=350,height=250");You can set the width and height in the parameters just like above. However, if you want to have a close button, you will need to have it point to an html file (as above) that has the image and close button in them.
Suggestion: Have you tried looking into Lightboxes like "Pretty Photo" or something of that nature? It handles this technique quite well and takes minutes to implement.
nathan@mynarcik.com
On Mon, Dec 19, 2011 at 2:16 PM, EastSideDev <eastsidedev@gmail.com> wrote:
I mostly write PHP code. I have an image gallery that's displaying
fine as thumbnails. What I would like to do, is when I click on one of
the thumbnails, to see the image open up in separate window. I am
using a Javascript script to do that, but the window opens up with
only a portion of the image showing, forcing me to take additional
action.
How can I get it to open up in a window/frame that I set to particular
fixed size (with a close button in the upper right corner?
--
You received this message because you are subscribed to the Google Groups "JavaScript Forum" group.
To post to this group, send email to javascript-information@googlegroups.com.
To unsubscribe from this group, send email to javascript-information+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/javascript-information?hl=en.
You received this message because you are subscribed to the Google Groups "JavaScript Forum" group.
To post to this group, send email to javascript-information@googlegroups.com.
To unsubscribe from this group, send email to javascript-information+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/javascript-information?hl=en.
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.