How to open a link in a new window giving a specified size?

J

José Joye

Hello,

I have a link which has a href to a gif file.
What I'm trying to do is to open this image in a new window that has the
exact size of the image.
I'm also trying to get this window without menus and other.

Is there a simple way to do it?

Here is my basic HTML command:

<a href="../images/MapByTrain.gif" target="_blank">By train</a>


Thanks,
José
 
T

Tom Pepper Willett

You'll need to use JavaScript for this.
Or, you can download and install the free FP addin Spawn from
www.jimcoaddins.com

--
=====================================================
Tom Pepper Willett [Microsoft MVP - FrontPage]
----------------------------------------------------------------------------
-------------------
Microsoft FrontPage:
http://www.microsoft.com/office/frontpage/prodinfo/default.mspx
http://msdn.microsoft.com/office/understanding/frontpage/

=====================================================
| Hello,
|
| I have a link which has a href to a gif file.
| What I'm trying to do is to open this image in a new window that has the
| exact size of the image.
| I'm also trying to get this window without menus and other.
|
| Is there a simple way to do it?
|
| Here is my basic HTML command:
|
| <a href="../images/MapByTrain.gif" target="_blank">By train</a>
|
|
| Thanks,
| José
|
|
 
A

anonymous

Jose,

Took me a minute to figure it out, but I think I got an
answer for you.

1. Create the following javascript on the page with the
text link:

<script language="javascript">
<!-- hide from old browsers
function popLink(Link,WinProps){
popup = window.open(Link, "newwin",WinProps)
}
// end hiding -->
</script>

2. Create a target page for displaying the image. The
only html needed on the new page is:

<html>
<head>
<title>New Page 1</title>
</head>
" border=0>
</body>
</html>
**** We'll call the page view_image.asp*****

3. Now for the href:

<a href="javascript:eek:nClick=(popLink('view_image.asp?
image_name=bytrain.gif','height=100,width=92,scrollbars=no,
resizeable=no'))">By Train</a>

4. The second page assumes that all of your images will
be in the same directory, so there may be a need for some
minor modifications...but it works, and of course you can
modify the display pages background color if your images
are not transparent.

Maybe not the best way, but A way.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top