close window query again (sorry)

L

larryf666

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.
 
M

Murray

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.
 
T

Thomas A. Rowe

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)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
 
A

Andrew Murray

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>
 
A

Andrew Murray

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

Murray

Right - but the poster is wanting to OPEN A JPG and put a close link on the
JPG.

No can do. As Thomas says, you have to do that by opening an HTML page
containing the image rather than directly opening the image (didn't you read
my response? 8).
 
T

Thomas A. Rowe

I did, but you didn't!

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
 
S

sheetrum

Now this is what I think larryf666 was looking for!

Thanks Andrew, I for one have copied the info below for reference later.
 

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