seperate windows

C

chaps

I have created a local web site with lots of small images which when clicked
on open the image in full page. How can I get these images to open in a
seperate window leaving the original page as is. Any thoughts would be most
gratefully received.
paul pattinson

I am using Frontpage 2000.
 
C

Chris Leeds, MVP-FrontPage

right click one of them, chose hyperlink properties, and then target frame
(upper right), and select "new window". after you chose that you can check
the box for "make page default", but if you've got navigation and stuff that
won't be so good and you'll have to set each link's target property
individually or get creative with the find and replace.

--
Chris Leeds,
Microsoft MVP-FrontPage

Make More Money with Less Work
Let Your Clients Control Their Content With Just A Browser!
http://contentseed.com/
 
C

cookoonest

Try this .....

<a href="#" onclick="window.open('url_location', 'StatusBar',
'toolbar=yes,resizable=yes,scrollbars=yes,width=500,height=500,left=0,top=0'
);" title="tool tip">link anchor text or graphic</a>
 
M

Murray

For what it's worth, a link like that will fail if javascript is turned off.

This one will not, however -

<a href="url_location" onclick="window.open('url_location', 'StatusBar',
'toolbar=yes,resizable=yes,scrollbars=yes,width=500,height=500,left=0,top=0'
);return false" title="tool tip">link anchor text or graphic</a>
 
M

Murray

Oops - make it like this -

<a href="url_location" onclick="window.open('url_location', 'StatusBar',
'toolbar=yes,resizable=yes,scrollbars=yes,width=500,height=500,left=0,top=0'
);return false" title="tool tip" target="_blank">link anchor text or
graphic</a>
 
C

Chris Leeds, MVP-FrontPage

If you're a real nut for the stuff, there's an article on www.sitepoint.com
called "perfect popup". I"ve been using a slightly customized version for
some time now. if JavaScript is turned off, it just opens in a new window.
the best part about it is FrontPage will update the href in it if you rename
the page or something in the fp interface.



--
Chris Leeds,
Microsoft MVP-FrontPage

Make More Money with Less Work
Let Your Clients Control Their Content With Just A Browser!
http://contentseed.com/
--
 
S

Stefan B Rusynko

Better still (note the added ; after the return false and the target)

<a href="url_location" target="_blank" onclick="window.open('url_location', 'StatusBar',
'toolbar=yes,resizable=yes,scrollbars=yes,width=500,height=500,left=0,top=0' );return false;" title="tool tip">link anchor text or
graphic</a>

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
To find the best Newsgroup for FrontPage support see:
http://www.net-sites.com/sitebuilder/newsgroups.asp
_____________________________________________


| For what it's worth, a link like that will fail if javascript is turned off.
|
| This one will not, however -
|
| <a href="url_location" onclick="window.open('url_location', 'StatusBar',
| 'toolbar=yes,resizable=yes,scrollbars=yes,width=500,height=500,left=0,top=0'
| );return false" title="tool tip">link anchor text or graphic</a>
|
|
| --
| Murray
|
| | > Try this .....
| >
| > <a href="#" onclick="window.open('url_location', 'StatusBar',
| > 'toolbar=yes,resizable=yes,scrollbars=yes,width=500,height=500,left=0,top=0'
| > );" title="tool tip">link anchor text or graphic</a>
| >
| >
| >
| >
| >
| > | >> I have created a local web site with lots of small images which when
| > clicked
| >> on open the image in full page. How can I get these images to open in a
| >> seperate window leaving the original page as is. Any thoughts would be
| > most
| >> gratefully received.
| >> paul pattinson
| >>
| >> I am using Frontpage 2000.
| >>
| >>
| >
| >
|
|
 
M

Murray

There is not one after target, and the one after the 'false' is not
necessary. The important, necessary, and sufficient concept as you have
shown, too, is to add the link *and* the return false after the event
handler.
 
C

Chris Leeds, MVP-FrontPage

your "url_location" threw me off, I didn't see an extension on it. but in
your pop-up segment you're using the url_location again, where in that
article it's "this.href". FrontPage isn't so hot at updating anything
except the actual href="****.***", so by using this.href you won't have to
worry about FrontPage not updating the JS part of it.

--
Chris Leeds,
Microsoft MVP-FrontPage

Make More Money with Less Work
Let Your Clients Control Their Content With Just A Browser!
http://contentseed.com/
--
 
M

Murray

Actually, I did that to be consistent with the OP's code. I thought about
adding the extension, but didn't want to confuse. 8)
 
M

MD Websunlimited

Murray,

I don't see here in your example you 'URL_Loctaion' which is not the same as this.href. BTW, this is not just an FP thing.
 
M

Murray

Huh?

My recommendation was -

<a href="url_location" onclick="window.open('url_location',
'StatusBar','toolbar=yes,resizable=yes,scrollbars=yes,width=500,height=500,left=0,top=0');return
false" title="tool tip" target="_blank">link anchor text or graphic</a>

url_location is a generic term for "foo.htm(l)" or "foo.asp" or "foo.php" or
"foo.whatever", no?

I know it's not just an FP thing. It's good coding practice! 8)
 
M

MD Websunlimited

But it be should be coded as "this.href" and not foo.asp

Doing that way allows you to change the href only and as Chris pointed out allows you to drag the page around in FP without any
concerns about the reference as FP will update the href. It will not update the onclick event.

It also allows the page to be shown if a popup blocker is envolved.

--
Mike -- FrontPage MVP '97-'02
J-Bots 2004 Released Special Pricing
http://www.websunlimited.com
FrontPage Add-ins Since '97 FP 2003 / 2002 / 2000 Compatible
 
M

Murray

Ahh - gotcha.

<a href="url_location" onclick="window.open('this.href'

That's a very good thing to do. I will incorporate that in my litany! 8)
 

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