Open image in new window ??

They have: 5 posts

Joined: Sep 2002

Hello,

Okay I want to add a feature to this site i'm working on.

I have been to sites that have thumbnail images. When you follow the hyperlnk of the thumbnail a new browser window opens the exact size of the image. With out any browser functions like the address bar etc. Now I know the Html code to open a new window is target= "blank" But how do I tell it to size the browser and remove the address bar,tools, etc. I know this answer is very simple i just can't seem to figure it out.

Thanks Bill

The world's problem is stupidity. I'm not saying that there should be capitol punishment for being stupid, I just think we should take the warning labels off everything and let nature run it's course.

The Webmistress's picture

She has: 5,586 posts

Joined: Feb 2001

This is one way, someone else might come up with a better way.

Put this within the head section (without the spaces in Java Script):

<script language="Java Script" type="text/Java Script">

</script>

Then your thumnail images on the page will have a link to the Java Script as:

a href="javascript:;" onclick="MM_openBrWindow('large-image-name.html','images','width=400,height=400')"

Obviously changing the browser window height & width to suit your image

Julia - if life was meant to be easy Michael Angelo would have painted the floor....

Busy's picture

He has: 6,151 posts

Joined: May 2001

Since these days people are surfing with javascript turned off (stops pop ups) offer a normal link picture or something

Suzanne's picture

She has: 5,507 posts

Joined: Feb 2000

Better yet -- code it nicely so those without JavaScript, with alternative browsers, or the Right Clickers can view it easily and it will degrade for pdas and such...

http://www.zerocattle.com/examples/popUp.html

It's good, valid and kind coding for pop ups.

They have: 5 posts

Joined: Sep 2002

Thanks,

I will try it our tonight and see if it is what i'm looking for.

I gotta go to work.

Bill

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.