Click to See Complete Forum and Search --> : Picture Gallery


peterdavies2
08-08-2003, 09:01 AM
Hi all,

Have what seems an insoluable problem but I have seen it don't some while ago but have no idea whether html, java or something else.

I have for instance a normal html page which has a table of thumbnail pics with a bit of text. Basically a picture gallery.

I want to be able to click any of of them and have the full-size pic appear in a separate browser window with:
a) The window is the same size as each pic ( plus perhaps some text below)

I realise I can get new window with html _blank, but not how to size it.

b) the Window must have no borders or task bar etc..

I realise window can be closed just by hitting the X in the corner - thats no problem.

peter

AdamGundry
08-08-2003, 09:06 AM
You shouldn't really be using popup windows, as it violates accessibility recommendations, but if you must, use this Javascript:

<a href="picture.jpg" onclick="window.open(this.href, 'picture', 'height=500,width=400')"><img src="thumbnail.jpg"></a>

Adam

P.S. That window will have borders, and it is difficult to remove them. Shouldn't be too much of a problem, though.