EspaƱol juegos - Wordpress Themes - Debt Consolidation - Self Improvement Articles Directory - Turquoise Rings

PDA

View Full Version : Opening New Windows that are a Specific Size


travoholic
Mar 15th 2006, 1:27 am
Hello,

I want to have some photo thumbnails on a page and when they're clicked want to open a new window that is a specific size for an enlarged version of the photo without all the typical Explorer buttons at the top. I'm not sure if this is a programming or HTML question but could someone please point me in the right direction and tell me how this is done?

Thanks!
Kirsty

mad4
Mar 15th 2006, 1:36 am
Try this tool (http://javascript.internet.com/generators/popup-window.html), its a good way to learn what popups can do.

DuncanM
Mar 15th 2006, 3:52 pm
Here is one way to do it, with Javascript:

function newWindow(p){// Function to open a new window
var win = "width=600,height=300,menubar=yes,toolbar=yes,status=yes,scrollbars=yes,resizable=yes";
window.open(p, "", win);
} //End of function newWindow

Then, in your HTML code, you'd have a statement similar to the following:

please visit the <a href="javascript:newWindow('LstSqrBackSam.html')">Background and Worked Example page</a> (opens in a new window).

fluid
Mar 24th 2006, 2:40 am
Just would like to make a small and trivial change to DuncanM function:

... menubar = no, toolbar = no ...

so that you dont get the IE menus and buttons on your popup.

For your reference to all the properties of the window.open function:
javascript-coder.com/window-popup/javascript-window-open.phtml