Pop-up windows

K

Keith

My website contains many "how-to" pages with diagrams in the form of
thumbnails that may be clicked to enlarge the graphic. However, I would
like the enlarged graphic to appear in a separate pop-up window, the
same size as the graphic. I know the appropriate javascript code and can
edit the HTML code to include this, but on a page with many graphics,
doing this for each graphic can be tedious and time-consuming. Does
FrontPage have the ability to specify a link opening in a new window
without the titlebar, scrollbars, etc.?

Thanks!
 
F

Fuse - News

If you have FP2003, its called behaviors.

Click on the image you want to open in a new window, click on the format
menu then select behaviors. From there select the insert menu, open new
browser window then follow the prompts.

If you want the image to display the hover hand to alert users that this
image is clickable, select the image then hit control-k then type
javascript:; in the URL field.
 
K

Keith

I have FP2002 SP2. Am I out of luck here?


If you have FP2003, its called behaviors.

Click on the image you want to open in a new window, click on the format
menu then select behaviors. From there select the insert menu, open new
browser window then follow the prompts.

If you want the image to display the hover hand to alert users that this
image is clickable, select the image then hit control-k then type
javascript:; in the URL field.


--
FORDification.com - The '67-'72 Ford Pickup Resource
FORDification.com Web Forums at:
http://com3.runboard.com/bthefordificationforum6772fords

Life is not a journey to the grave with the intention of arriving safely
in a pretty and well-preserved body, but rather to skid in broadside,
thoroughly used up, totally worn out, and loudly proclaiming--'WOW, what
a ride!!!
 
B

Bill Schroyer

I do this all the time with FrontPage 2003 Behaviors.

Create the thumbnail as normal and save the page.
Make a note on the original size of the image, you will
need this.

The click on >Format >Behaviors
Click on the image then >Insert >Open Browser Window
Enter the path to the image and fill out the rest.
Now click on the image in design view then switch to code
view, this will highlight the relevant code.
This is my code:
<p><a target="_blank" href="GE.jpg">
<img border="2" src="GE_small.jpg" xthumbnail-orig-
image="GE.jpg" onclick="FP_openNewWindow('321', '225',
false, false, false, false, false,
false, 'GEimage', /*href*/'ge.jpg')"></a></p>
First remove this line of code: <a target="_blank"
href="GE.jpg">
Then this:xthumbnail-orig-image="GE.jpg"
And finally this:</a>
Your code will look like this:
<p>
<img border="2" src="GE_small.jpg"
onclick="FP_openNewWindow('321', '225', false, false,
false, false, false,
false, 'GEimage', /*href*/'ge.jpg')"></p>

That's it, Hope this helps.

Bill Schroyer
(e-mail address removed)
http://www.frontpagewiz.com
 
B

Bill Schroyer

Yep, sorry....
Here's the code that does all the work in FronPage 2003,
goes in the <head>
<script language="JavaScript">
<!--
function FP_openNewWindow
(w,h,nav,loc,sts,menu,scroll,resize,name,url) {//v1.0
var windowProperties=''; if(nav==false)
windowProperties+='toolbar=no,'; else
windowProperties+='toolbar=yes,'; if(loc==false)
windowProperties+='location=no,';
else windowProperties+='location=yes,'; if(sts==false)
windowProperties+='status=no,';
else windowProperties+='status=yes,'; if(menu==false)
windowProperties+='menubar=no,';
else windowProperties+='menubar=yes,'; if(scroll==false)
windowProperties+='scrollbars=no,';
else windowProperties+='scrollbars=yes,'; if
(resize==false) windowProperties+='resizable=no,';
else windowProperties+='resizable=yes,'; if(w!="")
windowProperties+='width='+w+',';
if(h!="") windowProperties+='height='+h; if
(windowProperties!="") {
if( windowProperties.charAt(windowProperties.length-1)
==',')
windowProperties=windowProperties.substring
(0,windowProperties.length-1); }
window.open(url,name,windowProperties);
}
// -->
</script>

If you have a lot to do try asprunner or aspmaker.
Both of these are a breeze to use.

Bill Schroyer
(e-mail address removed)
http://www.frontpagewiz.com
 

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