Thumbnail question

They have: 2 posts

Joined: Jul 2000

I have thumbnails of larger pictures on my site, theres about 20 in all. When they click the thumbnail it takes them to the picture, full sized, in the same browser.( this is the actual html:
------------------------------------------------------------
I want to know how i can have the picture open in a new window without having it be an acutal site with the picture on it.?

They have: 184 posts

Joined: Jun 2000

Add this lil' tid bit into the tag:
[Doesn't matter where.]

target="_blank"

That should fix you up.

They have: 99 posts

Joined: May 1999

If you wish to have a bit more control over the child window that is opened to display the picture, then you can use the following.

In the head section, define a function such as:

function display_me(url){
picture_win=window.open(url,"picture_win","width=450,height=400,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,left=50,top=50,screenX=50,screenY=50");
}

Then in the link on your thumbnail use

Notes:
Keep the window.open definition on one continuous line, you avoid problems that way.

Make sure you pass either a complete url or a relative url for the picture to the function.

The window.open function is fairly self explanatory. You define the name of the window, the size, location, etc. The first field passed is the http link for the content, the second field is the window name (useful if you wish to refer to the window or close it from the parent window). The third defines the attributes of the new window (size, position, scrollbars or not, etc...)

Hope this is useful

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.