Forum Moderators: phranque

Message Too Old, No Replies

Want new window to open for better viewing..

         

jtmoney77

5:39 pm on Aug 11, 2004 (gmt 0)

10+ Year Member



I want someone to view a thumbnail (or fairly smaller pic) on my website, then have the option to click to enlarge. How do I make it enlarge in a new window? I use Front Page, so it would easier if you told me how to do it in that.

Thanks

Oops on last post.....urls

kalos

6:51 pm on Aug 11, 2004 (gmt 0)

10+ Year Member



I'll answer your most recent incarnation of this question instead of the post from an hour and a half earlier.

In your link set target="_blank" and a new instance of the browser will open with your picture. If you wish to turn off toolbars and whatnot you'll need to use Javascript.

ex:


<script>
function openURL(sURL){
window.open(sURL,null,"height=475,width=590,top=0,left=50,status=no,toolbar=no,menubar=no,location=no,scrollbars=yes");
}
</script>

<a href="javascript: openURL('http://server.tld/path/to/picture.ext');">click here</a>

Also, you may want to pass the height and width of the picture to the openURL function so that it opens as large as the image itself. Leaving the scrollbar is alway a good thing since you are unable to reliably tell the size of someone's browser window (and resetting it just upsets people).

Sorry I couldn't offer a frontpage specific answer but I haven't used nor tried to use frontpage/dreamweaver/golive in over five years.