| I don't normally post forum questions
and answers but this one is worthy of posting here.
Basically this tutorial uses FrontPage's Thumbnails and
Behaviors and a bit of code removal to make thumbnail
popup window in FrontPage 2003. >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!
>---------------------------
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, Have Fun!! |