Russ Hunter said:
Hi Jim:
Thanks for your reply. Sorry couldn't get back to the newsgroup due to
holidays and all.
I tried your solution but I don't think I am doing it right as it's not
working. Could you be a little more specific how to add the scripts (of
course after slight modification to reflect the correct link) in the code
view?
Whoops, my mistake. You also need void(0) at the end.
To test this, open a new, blank web page, switch to HTML view, and
paste this code after the <body> tag, all on one line:
<a href="javascript:window.open('popup.htm','_blank',
'height=200,width=400,top=100,left=100,
directories=no,location=no,menubar=no,
resizable=no,scrollbars=no,status=no');void(0);">popup</a>
Of course, you'll need to change the URL popup.htm so it points to a
file that exists in your own site.
Having done this, save the page and preview it in IE. Clicking the
hyperlink should display the new window.
To make this happen from a picture hotspot:
1. For a new hotspot, select the picture, select the tool
you want from the Pictures toolbar, and mark the hotspot
area in the usual way. This will display an Insert Hyperlink
dialog box.
For an existing hotspot, select the picture, right-click the
hotspot area, and choose Hyperlink from the shortcut menu.
2. Enter a URL string such as the following in the Address text box,
all on one line:
javascript:window.open('popup.htm','_blank',
'height=200,width=400,top=100,left=100,
directories=no,location=no,menubar=no,
resizable=no,scrollbars=no,status=no');void(0);
As before, change popup.htm to the URL of your popup page.
3. Click OK.
Alternatively, if you have a lot of these to do, add the following
script to your <head> section:
<script>
function myPopup(aPage){
window.open (aPage,"_blank",
"height=200,width=400,top=100,left=100,directories=no,location=no,menubar=no,resizable=no,scrollbars=no,status=no");
}
</script>
and then configure a hyperlink like this for each hotspot:
javascript:myPopup('popup.htm');void(0);
Jim Buyens
Microsoft FrontPage MVP
http://www.interlacken.com
Author of:
*----------------------------------------------------
|\---------------------------------------------------
|| Microsoft Office FrontPage 2003 Inside Out
||---------------------------------------------------
|| Web Database Development Step by Step .NET Edition
|| Microsoft FrontPage Version 2002 Inside Out
|| Faster Smarter Beginning Programming
|| (All from Microsoft Press)
|/---------------------------------------------------
*----------------------------------------------------