From: larryf666 on
I am using Frontpage & have chosen behaviours to open a new window when
clicking a thumbnail, this is the coding for that
<img border="2" src="images/small/NAT%202_small.JPG"
xthumbnail-orig-image="images/terry/NAT 2.JPG"
onclick="FP_openNewWindow('400', '300', false, false, false, false, true,
true, 'nat', /*href*/'images/terry/NAT%202.JPG')">
I wish to add a button on this page to close the window rather than click
the X where would I insert it on this line for that to happen, Also how would
I change the background of this window to black rather than white.
Iam new at this & any help will be appreciated.
From: Murray on
When you directly open an image, as you are doing -

/*href*/'images/terry/NAT%202.JPG (and by the way, you should not use
file/pathnames containing spaces)

you do not have the option to do what you want. The only way you could add
some characteristics to the window that is opened like that would be to open
an HTML page containing the image. Then you could specify the button in the
HTML markup of the page being opened as well as the page's background color.


--
Murray
============

"larryf666" <larryf666(a)discussions.microsoft.com> wrote in message
news:427467A2-0575-4090-8085-5EE3920A5281(a)microsoft.com...
>I am using Frontpage & have chosen behaviours to open a new window when
> clicking a thumbnail, this is the coding for that
> <img border="2" src="images/small/NAT%202_small.JPG"
> xthumbnail-orig-image="images/terry/NAT 2.JPG"
> onclick="FP_openNewWindow('400', '300', false, false, false, false, true,
> true, 'nat', /*href*/'images/terry/NAT%202.JPG')">
> I wish to add a button on this page to close the window rather than click
> the X where would I insert it on this line for that to happen, Also how
> would
> I change the background of this window to black rather than white.
> Iam new at this & any help will be appreciated.


From: Thomas A. Rowe on
You have to actually create a page for each large image and then change your link from the thumbnail
to point to this page or modify the FP code to call the individual pages for each large image, then
you can a Close Window link.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)
http://www.ycoln-resources.com
FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
To assist you in getting the best answers for FrontPage support see:
http://www.net-sites.com/sitebuilder/newsgroups.asp

"larryf666" <larryf666(a)discussions.microsoft.com> wrote in message
news:427467A2-0575-4090-8085-5EE3920A5281(a)microsoft.com...
>I am using Frontpage & have chosen behaviours to open a new window when
> clicking a thumbnail, this is the coding for that
> <img border="2" src="images/small/NAT%202_small.JPG"
> xthumbnail-orig-image="images/terry/NAT 2.JPG"
> onclick="FP_openNewWindow('400', '300', false, false, false, false, true,
> true, 'nat', /*href*/'images/terry/NAT%202.JPG')">
> I wish to add a button on this page to close the window rather than click
> the X where would I insert it on this line for that to happen, Also how would
> I change the background of this window to black rather than white.
> Iam new at this & any help will be appreciated.


From: Andrew Murray on
Close window with a form button:
<input type="button" value="Close Window" name="close"
onclick="window.close();">

Close window with text link:
<a href="#" onclick="window.close();">CLose Window</a>

Close Windows with image:
<a href="#" onclick="window.close();"><img src="images/image.jpg"></a>

"larryf666" <larryf666(a)discussions.microsoft.com> wrote in message
news:427467A2-0575-4090-8085-5EE3920A5281(a)microsoft.com...
>I am using Frontpage & have chosen behaviours to open a new window when
> clicking a thumbnail, this is the coding for that
> <img border="2" src="images/small/NAT%202_small.JPG"
> xthumbnail-orig-image="images/terry/NAT 2.JPG"
> onclick="FP_openNewWindow('400', '300', false, false, false, false, true,
> true, 'nat', /*href*/'images/terry/NAT%202.JPG')">
> I wish to add a button on this page to close the window rather than click
> the X where would I insert it on this line for that to happen, Also how
> would
> I change the background of this window to black rather than white.
> Iam new at this & any help will be appreciated.


From: Andrew Murray on
this has nothing to do with closing a window! (read the subject: "Close
Window Query").


"Thomas A. Rowe" <tarowe(a)mvps.org> wrote in message
news:%23$UwgVsFFHA.3648(a)TK2MSFTNGP09.phx.gbl...
> You have to actually create a page for each large image and then change
> your link from the thumbnail to point to this page or modify the FP code
> to call the individual pages for each large image, then you can a Close
> Window link.
>
> --
> ==============================================
> Thomas A. Rowe (Microsoft MVP - FrontPage)
> WEBMASTER Resources(tm)
> http://www.ycoln-resources.com
> FrontPage Resources, WebCircle, MS KB Quick Links, etc.
> ==============================================
> To assist you in getting the best answers for FrontPage support see:
> http://www.net-sites.com/sitebuilder/newsgroups.asp
>
> "larryf666" <larryf666(a)discussions.microsoft.com> wrote in message
> news:427467A2-0575-4090-8085-5EE3920A5281(a)microsoft.com...
>>I am using Frontpage & have chosen behaviours to open a new window when
>> clicking a thumbnail, this is the coding for that
>> <img border="2" src="images/small/NAT%202_small.JPG"
>> xthumbnail-orig-image="images/terry/NAT 2.JPG"
>> onclick="FP_openNewWindow('400', '300', false, false, false, false, true,
>> true, 'nat', /*href*/'images/terry/NAT%202.JPG')">
>> I wish to add a button on this page to close the window rather than click
>> the X where would I insert it on this line for that to happen, Also how
>> would
>> I change the background of this window to black rather than white.
>> Iam new at this & any help will be appreciated.
>
>