Resize the window the image appears in when using Photo Gallery.

C

Chas

Hi,

When I right click an image then click Hperlink Properties, then in Edit
Hyperlink click Target Frame and then in Target Frame click New Window and
accept the default "_blank" and click ok, Front page sets up the Photo
Gallery images to open in a new window just fine when the image is clicked.
However, the image is opened up in a huge window much bigger than the image.
I would like the window to neatly frame the image. Can this be done in
Frontpage with a few simple clicks or do I have to edit the code longhand.
Before I got Frontpage I did it "manually" using this sample code for each
image: <td width="135" height="105" align="center" valign="middle"><a
href="#" onClick="window.open ('PopupImage01.html','pics',
config='width=574,height=364');"><img src="Image01.jpg" border="1"
width="100" height="63"></a></td>.

I thank you.

Regards, Chas
 
S

Steve Easton

You can do this with the free Spawn add in.
www.jimcoaddins.com

--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed............
........................with a computer
 
C

Chas

Steve,

I thank you, it works. Now I have a question on Spawn. The code I included
in my question makes a window that is tight against all four borders of the
image. Can this be accomplished with Spawn? I've tried with no success. If
I make the window size a little larger than the image, the image ends up
nicely positioned in the window with a white border around it. This looks
well and is a good alternative, but if the "tight" frame can be accomplished,
I would prefer it.

I thank you again.

Regards,

Chas
 
S

Steve Easton

Is there an option in Spawn to set the margins at zero??

--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed............
........................with a computer
 
C

Chas

No, not that I can find. However, there is a bock labeled "CSS Class:". I
am using a .css file, but I do not know enough about CSS to know if it could
be used to accomplish this, or how. What do you think?
 
S

Stefan B Rusynko

The CSS class is what is applied to your hyperlink
Whatever your popup file name is (say PopupImage01.html) set the page margins to 0




| No, not that I can find. However, there is a bock labeled "CSS Class:". I
| am using a .css file, but I do not know enough about CSS to know if it could
| be used to accomplish this, or how. What do you think?
|
| "Steve Easton" wrote:
|
| > Is there an option in Spawn to set the margins at zero??
| >
| > --
| > Steve Easton
| > Microsoft MVP FrontPage
| > 95isalive
| > This site is best viewed............
| > ........................with a computer
| >
| > | > > Steve,
| > >
| > > I thank you, it works. Now I have a question on Spawn. The code I included
| > > in my question makes a window that is tight against all four borders of the
| > > image. Can this be accomplished with Spawn? I've tried with no success. If
| > > I make the window size a little larger than the image, the image ends up
| > > nicely positioned in the window with a white border around it. This looks
| > > well and is a good alternative, but if the "tight" frame can be accomplished,
| > > I would prefer it.
| > >
| > > I thank you again.
| > >
| > > Regards,
| > >
| > > Chas
| > >
| > > "Steve Easton" wrote:
| > >
| > > > You can do this with the free Spawn add in.
| > > > www.jimcoaddins.com
| > > >
| > > > --
| > > > Steve Easton
| > > > Microsoft MVP FrontPage
| > > > 95isalive
| > > > This site is best viewed............
| > > > ........................with a computer
| > > >
| > > > | > > > > Hi,
| > > > >
| > > > > When I right click an image then click Hperlink Properties, then in Edit
| > > > > Hyperlink click Target Frame and then in Target Frame click New Window and
| > > > > accept the default "_blank" and click ok, Front page sets up the Photo
| > > > > Gallery images to open in a new window just fine when the image is clicked.
| > > > > However, the image is opened up in a huge window much bigger than the image.
| > > > > I would like the window to neatly frame the image. Can this be done in
| > > > > Frontpage with a few simple clicks or do I have to edit the code longhand.
| > > > > Before I got Frontpage I did it "manually" using this sample code for each
| > > > > image: <td width="135" height="105" align="center" valign="middle"><a
| > > > > href="#" onClick="window.open ('PopupImage01.html','pics',
| > > > > config='width=574,height=364');"><img src="Image01.jpg" border="1"
| > > > > width="100" height="63"></a></td>.
| > > > >
| > > > > I thank you.
| > > > >
| > > > > Regards, Chas
| > > >
| > > >
| > > >
| >
| >
| >
 
C

Chas

Hi,

You got me thinking, which got me going in the right direction and I ended
up finding a Javascript function that does the trick. It is located at the
following link:
http://www.codelifter.com/main/javascript/autosizeimagepopup.html. I like it
because there is a lot less coding and fewer html files than using 'onClick'.
I found out that that the '_blank' window cannot be resized so 'target=' was
out of the running as well as CSS. At any rate, I have a good solution and I
thank you Stefan and Steve for your input.

Regards,

Chas
 

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