Click on hyperlink - small picture pops out of website in a frame

D

DSG

Sorry this is long, but complete instructions really help.
FrontPage 2000

I've spent all afternoon trying to figure out how to set up a picture in
FrontPage so that after it is published to my web, then (on a forum, for
instance) one can click on a hyperlink to that picture, and the picture
jumps out of my website into a frame of its own. I almost have it, I think.
If I'm following the right instructions, then I am stuck with No. 5

(1) Import the picture into the Images folder. Create a new page from the
navigation view, name it, and open it. From the menu, click on Format >
Shared Borders. In the dialog box click on "current page" and clear the
check marks from all the boxes. This leaves the page absolutely blank (no
borders).

(2) Insert the picture from the Images folder. Right click picture for Page
Properties > Margins > put a check mark in front of 'specify top margin' and
'specify left margin' and both boxes should say 0 (zero). OK

(3) I n Page view, right-click the graphic, click Picture Properties on the
shortcut menu, and then click the General tab. In the Location box under
Default hyperlink, type the destination that you want to use as the default
hyperlink. This should be (?) the path to my website which includes, for
example,
http://my_ISPs_address/my_webs_directoryname/images/picture.jpg

(4) Then right under that URL is "Target Frame" which, when I click on the
little (pencil?) button, I get a new dialog box which gives me five common
targets to choose from.

(5) If I am in the right place for the procedure I described in the
beginning, I still don't know what choice to make. As I click on each one,
the Target Setting window shows a different type frame for each choice. The
book doesn't say in plain English exactly what I'm really going to get. At
this point it is speaking to someone who wrote the program and knows what he
is doing. I want the viewer to see just the picture with a frame
surrounding just the perimeter of the picture, not the whole page. I'm not
understanding if that happens by itself (or does it depend on which of the
five choices I make)? If it doesn't happen by itself (resize the page to
the actual size of the picture), then at what point do I have to give size
instructions?
DSG
 
A

Andrew Murray

Set the "target" to new window in the Hyperlinks dialogue box, or if you
want the window to be around the size of the actual image, use "Spawn" on
www.jimcosoftware.com

What you want is a "pop up window". Spawn accomplishes this nicely.
 
D

DSG

Thank you, Andrew. I downloaded Spawn, and followed the instructions
exactly, saved, and published the page. I planted the URL on another
website, went there, and got the IE6 browser with the image, lots of blank
space and all the browser's menus. I can already do that.

So I started over by removing all of Spawn's code from the page I was
working on, using instruction on his Properties tab. Saved the page, closed
FrontPage, shut down and restarted computer, reopened the page I was working
on to start over.
This time, using Jimco's readme file again, I changed some things using my
best judgment. I got the same result.

It's plain to see I'm not doing something right. If someone is willling to
help me, I can paste in the settings I made, and the page's HTML page.


: Set the "target" to new window in the Hyperlinks dialogue box, or if you
: want the window to be around the size of the actual image, use "Spawn" on
: www.jimcosoftware.com
:
: What you want is a "pop up window". Spawn accomplishes this nicely.
:
: : > Sorry this is long, but complete instructions really help.
: > FrontPage 2000
: >
: > I've spent all afternoon trying to figure out how to set up a picture in
: > FrontPage so that after it is published to my web, then (on a forum, for
: > instance) one can click on a hyperlink to that picture, and the picture
: > jumps out of my website into a frame of its own. I almost have it, I
: > think.
: > If I'm following the right instructions, then I am stuck with No. 5
: >
: > (1) Import the picture into the Images folder. Create a new page from
the
: > navigation view, name it, and open it. From the menu, click on Format >
: > Shared Borders. In the dialog box click on "current page" and clear the
: > check marks from all the boxes. This leaves the page absolutely blank
(no
: > borders).
: >
: > (2) Insert the picture from the Images folder. Right click picture for
: > Page
: > Properties > Margins > put a check mark in front of 'specify top margin'
: > and
: > 'specify left margin' and both boxes should say 0 (zero). OK
: >
: > (3) I n Page view, right-click the graphic, click Picture Properties on
: > the
: > shortcut menu, and then click the General tab. In the Location box under
: > Default hyperlink, type the destination that you want to use as the
: > default
: > hyperlink. This should be (?) the path to my website which includes,
for
: > example,
: > http://my_ISPs_address/my_webs_directoryname/images/picture.jpg
: >
: > (4) Then right under that URL is "Target Frame" which, when I click on
: > the
: > little (pencil?) button, I get a new dialog box which gives me five
: > common
: > targets to choose from.
: >
: > (5) If I am in the right place for the procedure I described in the
: > beginning, I still don't know what choice to make. As I click on each
: > one,
: > the Target Setting window shows a different type frame for each choice.
: > The
: > book doesn't say in plain English exactly what I'm really going to get.
At
: > this point it is speaking to someone who wrote the program and knows
what
: > he
: > is doing. I want the viewer to see just the picture with a frame
: > surrounding just the perimeter of the picture, not the whole page. I'm
: > not
: > understanding if that happens by itself (or does it depend on which of
: > the
: > five choices I make)? If it doesn't happen by itself (resize the page
to
: > the actual size of the picture), then at what point do I have to give
size
: > instructions?
: > DSG
: >
: >
:
:
 
T

Trevor L.

DSG said:
Thank you, Andrew. I downloaded Spawn, and followed the instructions
exactly, saved, and published the page. I planted the URL on another
website, went there, and got the IE6 browser with the image, lots of
blank space and all the browser's menus. I can already do that.

So I started over by removing all of Spawn's code from the page I was
working on, using instruction on his Properties tab. Saved the page,
closed FrontPage, shut down and restarted computer, reopened the page
I was working on to start over.
This time, using Jimco's readme file again, I changed some things
using my best judgment. I got the same result.

It's plain to see I'm not doing something right. If someone is
willling to help me, I can paste in the settings I made, and the
page's HTML page.

Wow, what a lot of problems.

I take it this is the problem
This is not a difficult task

I use this code
<a href='nojsmess.html'
onclick="spawnJimcoPopup
( 'images/display/trevor.jpg', '_blank'
, 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no'
, '400','400','center','0','pixel');return false;">
<img src="images/display/trevor.jpg" alt=""
title='Click to see a larger picture'
height="80" />
</a>

The Javascript
function spawnJimcoPopup(url, name, options, h, w, x, y, scaleType)
{
var newWindow
if (scaleType == 'percent')
{ h = (h * screen.availHeight) / 100
w = (w * screen.availWidth) / 100 }
if (x == 'center')
x = (screen.availWidth - w) / 2
if (y == 'center')
y = (screen.availHeight - h) / 2
options += ',width=' + w + ',height=' + h
+ ',left=' + x + ',top=' + y
newWindow = window.open(url, name, options)
newWindow.focus()
}

Notes.
The spec href='nojsmess.html' is there to go to a default page if the javascript fails. Not essential

I have modifed the function slightly to accept two parameters for centering the window in x and y directions

The h and w parameters specify the height and width of the window.
 
D

DSG

Thanks, Trev. I will compare your HTML with mine and maybe I can figure it
out. It has got to be really easy!
DSG
.................................................
: DSG wrote:
: > Thank you, Andrew. I downloaded Spawn, and followed the instructions
: > exactly, saved, and published the page. I planted the URL on another
: > website, went there, and got the IE6 browser with the image, lots of
: > blank space and all the browser's menus. I can already do that.
: >
: > So I started over by removing all of Spawn's code from the page I was
: > working on, using instruction on his Properties tab. Saved the page,
: > closed FrontPage, shut down and restarted computer, reopened the page
: > I was working on to start over.
: > This time, using Jimco's readme file again, I changed some things
: > using my best judgment. I got the same result.
: >
: > It's plain to see I'm not doing something right. If someone is
: > willling to help me, I can paste in the settings I made, and the
: > page's HTML page.
:
: Wow, what a lot of problems.
:
: I take it this is the problem
: >> I've spent all afternoon trying to figure out how to set up a picture
in
: >> FrontPage so that after it is published to my web, then (on a forum,
for
: >> instance) one can click on a hyperlink to that picture, and the picture
: >> jumps out of my website into a frame of its own.
:
: This is not a difficult task
:
: I use this code
: <a href='nojsmess.html'
: onclick="spawnJimcoPopup
: ( 'images/display/trevor.jpg', '_blank'
: ,
'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no'
: , '400','400','center','0','pixel');return false;">
: <img src="images/display/trevor.jpg" alt=""
: title='Click to see a larger picture'
: height="80" />
: </a>
:
: The Javascript
: function spawnJimcoPopup(url, name, options, h, w, x, y, scaleType)
: {
: var newWindow
: if (scaleType == 'percent')
: { h = (h * screen.availHeight) / 100
: w = (w * screen.availWidth) / 100 }
: if (x == 'center')
: x = (screen.availWidth - w) / 2
: if (y == 'center')
: y = (screen.availHeight - h) / 2
: options += ',width=' + w + ',height=' + h
: + ',left=' + x + ',top=' + y
: newWindow = window.open(url, name, options)
: newWindow.focus()
: }
:
: Notes.
: The spec href='nojsmess.html' is there to go to a default page if the
javascript fails. Not essential
:
: I have modifed the function slightly to accept two parameters for
centering the window in x and y directions
:
: The h and w parameters specify the height and width of the window.
:
: --
: Cheers,
: Trevor L.
: Website: http://tandcl.homemail.com.au
:
:
 
D

DSG

I'm back again. Here's my fourth try. I figured out some things by reading
your code, but apparently don't know how to answer the questions. It still
comes up in IE 6 with lots of space and the IE menus. I don't get an
opportunity to choose a type of window, and there is no place to say how
wide the window border could be (8 pixels?). Here's my URL
http://home.nycap.rr.com/smallfamily/images/erin8yrs.jpg

and here's FrontPage Editor's HTML for the page where the picture is.

<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>erin8yrs</title>
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta name="Microsoft Border" content="none">
</head>

<body topmargin="0" leftmargin="0">
<script language="javascript" id="jcSpawn">
// Jimco Add-ins Spawn JavaScript
// This script is freely redistributable. //-->
function spawnJimcoPopup(url, name, options, h, w, x, y, scaleType)
{
var windowOptions;
if (scaleType == 'percent')
{
w = (w * screen.availWidth) / 100;
h = (h * screen.availHeight) / 100;
}
if (x == 'center')
{
x = (screen.availWidth - w) / 2;
y = (screen.availHeight - h) / 2;
}
windowOptions = options + ',width=' + w + ',height=' + h + ',left=' + x +
',top=' + y;
newWindow = window.open(url, name, windowOptions);
newWindow.focus();
}
</script>
<p title="Click to open" style="cursor:hand"

onclick="spawnJimcoPopup('http://home.nycap.rr.com/smallfamily/images/erin8yrs.htm'

,'565A290B3D5B464AA492B26746A5A5B2','toolbar=no,location=no,directories=no,s

tatus=no,menubar=no,scrollbars=no,resizable=no','313','216','0','0','pixel');return

false;"><img
border="0" src="images/erin8yrs.jpg" width="216" height="313"></p>
</body>

: Thanks, Trev. I will compare your HTML with mine and maybe I can figure it
: out. It has got to be really easy!
: DSG
: ................................................
: :: DSG wrote:
:: > Thank you, Andrew. I downloaded Spawn, and followed the instructions
:: > exactly, saved, and published the page. I planted the URL on another
:: > website, went there, and got the IE6 browser with the image, lots of
:: > blank space and all the browser's menus. I can already do that.
:: >
:: > So I started over by removing all of Spawn's code from the page I was
:: > working on, using instruction on his Properties tab. Saved the page,
:: > closed FrontPage, shut down and restarted computer, reopened the page
:: > I was working on to start over.
:: > This time, using Jimco's readme file again, I changed some things
:: > using my best judgment. I got the same result.
:: >
:: > It's plain to see I'm not doing something right. If someone is
:: > willling to help me, I can paste in the settings I made, and the
:: > page's HTML page.
::
:: Wow, what a lot of problems.
::
:: I take it this is the problem
:: >> I've spent all afternoon trying to figure out how to set up a picture
: in
:: >> FrontPage so that after it is published to my web, then (on a forum,
: for
:: >> instance) one can click on a hyperlink to that picture, and the
picture
:: >> jumps out of my website into a frame of its own.
::
:: This is not a difficult task
::
:: I use this code
:: <a href='nojsmess.html'
:: onclick="spawnJimcoPopup
:: ( 'images/display/trevor.jpg', '_blank'
:: ,
:
'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no'
:: , '400','400','center','0','pixel');return false;">
:: <img src="images/display/trevor.jpg" alt=""
:: title='Click to see a larger picture'
:: height="80" />
:: </a>
::
:: The Javascript
:: function spawnJimcoPopup(url, name, options, h, w, x, y, scaleType)
:: {
:: var newWindow
:: if (scaleType == 'percent')
:: { h = (h * screen.availHeight) / 100
:: w = (w * screen.availWidth) / 100 }
:: if (x == 'center')
:: x = (screen.availWidth - w) / 2
:: if (y == 'center')
:: y = (screen.availHeight - h) / 2
:: options += ',width=' + w + ',height=' + h
:: + ',left=' + x + ',top=' + y
:: newWindow = window.open(url, name, options)
:: newWindow.focus()
:: }
::
:: Notes.
:: The spec href='nojsmess.html' is there to go to a default page if the
: javascript fails. Not essential
::
:: I have modifed the function slightly to accept two parameters for
: centering the window in x and y directions
::
:: The h and w parameters specify the height and width of the window.
::
:: --
:: Cheers,
:: Trevor L.
:: Website: http://tandcl.homemail.com.au
::
::
:
:
 
T

Trevor L.

DSG said:
I'm back again. Here's my fourth try. I figured out some things by
reading your code, but apparently don't know how to answer the
questions. It still comes up in IE 6 with lots of space and the IE
menus. I don't get an opportunity to choose a type of window, and
there is no place to say how wide the window border could be (8
pixels?). Here's my URL http://home.nycap.rr.com/smallfamily/images/erin8yrs.jpg >
and here's FrontPage Editor's HTML for the page where the picture is.
[snip]

Well, I have looked at the code and I can only see one problem - you have linked to
http://home.nycap.rr.com/smallfamily/images/erin8yrs.html not to http://home.nycap.rr.com/smallfamily/images/erin8yrs.jpg

The code as I have amended it is below.

What seems odd is that both images are the same size - the image in the page that opens with the code below and the image in the
page opened by spawn.

But I haven't followed all the thread. So I can't recall what your other problems were. If you post again, I'll try not to delete it
(obviously I did before !!)

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>erin8yrs</title>
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta name="Microsoft Border" content="none">
</head>
<body topmargin="0" leftmargin="0">
<script type="text/javascript">
function spawnJimcoPopup(url, name, options, h, w, x, y, scaleType)
{
var windowOptions;
if (scaleType == 'percent')
{w = (w * screen.availWidth) / 100;
h = (h * screen.availHeight) / 100; }
if (x == 'center')
{ x = (screen.availWidth - w) / 2;
y = (screen.availHeight - h) / 2; }
windowOptions = options + ',width=' + w + ',height=' + h
+ ',left=' + x + ',top=' + y;
newWindow = window.open(url, name, windowOptions);
newWindow.focus();
}
</script>
<p title="Click to open" style="cursor:hand"
onclick="spawnJimcoPopup('http://home.nycap.rr.com/smallfamily/images/erin8yrs.jpg',''
,'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no'
,'313','216','0','0','pixel');return false;">
<img border="0" src="http://home.nycap.rr.com/smallfamily/images/erin8yrs.jpg" width="216" height="313">
</p>
</body>
</html>
 
D

DSG

Fifth try.
1. The reason the picture is the same size in the popup is because I don't
need it to be any larger.
2. I see Jimco's little program shows <img border="0" ...Why isn't there
any place for me to enter a border width? Or is there another menu in
FrontPage to do that? Or can I just enter 6 (pixels) in the script where the
zero is?

http://home.nycap.rr.com/smallfamily/images/erin8yrs.jpg

I have just now copied the below script out of FrontPage after I published
again. I corrected my error (jpg instead of htm in the two places) I know
better. However, I still do not get a popup. If you see an error I will try
it once more. Is it possible there is something broken?

</script>
<p title="Click to open" style="cursor:hand"
onclick="spawnJimcoPopup('http://home.nycap.rr.com/smallfamil...zable=no','313','216','0','0','pixel');return
false;"><img
border="0" src="http://home.nycap.rr.com/smallfamily/images/erin8yrs.jpg"
width="216" height="313">
</p>
</body>
: DSG wrote:
: > I'm back again. Here's my fourth try. I figured out some things by
: > reading your code, but apparently don't know how to answer the
: > questions. It still comes up in IE 6 with lots of space and the IE
: > menus. I don't get an opportunity to choose a type of window, and
: > there is no place to say how wide the window border could be (8
: > pixels?). Here's my URL
http://home.nycap.rr.com/smallfamily/images/erin8yrs.jpg >
: > and here's FrontPage Editor's HTML for the page where the picture is.
: [snip]
:
: Well, I have looked at the code and I can only see one problem - you have
linked to
: http://home.nycap.rr.com/smallfamily/images/erin8yrs.html not to
http://home.nycap.rr.com/smallfamily/images/erin8yrs.jpg
:
: The code as I have amended it is below.
:
: What seems odd is that both images are the same size - the image in the
page that opens with the code below and the image in the
: page opened by spawn.
:
: But I haven't followed all the thread. So I can't recall what your other
problems were. If you post again, I'll try not to delete it
: (obviously I did before !!)
:
: <html>
: <head>
: <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
: <title>erin8yrs</title>
: <meta name="GENERATOR" content="Microsoft FrontPage 4.0">
: <meta name="ProgId" content="FrontPage.Editor.Document">
: <meta name="Microsoft Border" content="none">
: </head>
: <body topmargin="0" leftmargin="0">
: <script type="text/javascript">
: function spawnJimcoPopup(url, name, options, h, w, x, y, scaleType)
: {
: var windowOptions;
: if (scaleType == 'percent')
: {w = (w * screen.availWidth) / 100;
: h = (h * screen.availHeight) / 100; }
: if (x == 'center')
: { x = (screen.availWidth - w) / 2;
: y = (screen.availHeight - h) / 2; }
: windowOptions = options + ',width=' + w + ',height=' + h
: + ',left=' + x + ',top=' + y;
: newWindow = window.open(url, name, windowOptions);
: newWindow.focus();
: }
: </script>
: <p title="Click to open" style="cursor:hand"
:
onclick="spawnJimcoPopup('http://home.nycap.rr.com/smallfamily/images/erin8yrs.jpg',''
:
,'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no'
: ,'313','216','0','0','pixel');return false;">
: <img border="0"
src="http://home.nycap.rr.com/smallfamily/images/erin8yrs.jpg" width="216"
height="313">
: </p>
: </body>
: </html>
:
: --
: Cheers,
: Trevor L.
: Website: http://tandcl.homemail.com.au
:
:
 
T

Trevor L.

DSG said:
Fifth try.
1. The reason the picture is the same size in the popup is because I
don't need it to be any larger.

I thought (not having read all the thread) that the idea was to have a smaller picture on the main page and a larger one in the
pop-up.
But I am not criticising - I just wondered.
2. I see Jimco's little program shows <img border="0" ...Why isn't
there any place for me to enter a border width? Or is there another
menu in FrontPage to do that? Or can I just enter 6 (pixels) in the
script where the zero is?

I am confused. Jimco's function does not have any such code.

Ahah, I just noticed. Your code has this:
<img border="0" src="http://home.nycap.rr.com/smallfamily/images/erin8yrs.jpg"
width="216" height="313">

It is entirely up to you what you code here. You can add a border; just change "0" to "8px".

But note that this will only affect the border of the image on the main page (the calling page) not on the pop-up which is simply a
jpeg file.
WYSIWYG (That is, if the jpeg file has a border, it will show, but if it hasn't you can't add one.Well you can, but it gets a bit
complex here - you need to call an HTML page which includes the image in a border)
I have just now copied the below script out of FrontPage after I
published again. I corrected my error (jpg instead of htm in the two
places) I know better. However, I still do not get a popup. If you
see an error I will try it once more. Is it possible there is
something broken?
[snip - your code]

This works perfectly. I just cut this code and pasted it into the copy I had before.

Below is the code as on my PC. This works, but on the web you may not need to specify the full paths.
For example, you can change
'http://home.nycap.rr.com/smallfamily/images/erin8yrs.jpg'
to
'smallfamily/images/erin8yrs.jpg'

BTW, if you are still having problems, maybe it is because what I am testing is not the entire code. So far I think I have only seen
the address of the jpeg nmage and some code which you have posted, not the code for the page itself. (But perhaps you posted it
earlier and I missed it)

P.S. Don't give up. This is not something which can't be done.
Lots of people do it all the time - well, I do and I have seen lots of posts that indicate that others do as well.

Please post back with further problems.

CODE FOLLOWS
==============
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>erin8yrs</title>
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta name="Microsoft Border" content="none">
</head>
<body topmargin="0" leftmargin="0">
<script type="text/javascript">
function spawnJimcoPopup(url, name, options, h, w, x, y, scaleType)
{
var windowOptions;
if (scaleType == 'percent')
{
w = (w * screen.availWidth) / 100;
h = (h * screen.availHeight) / 100;
}
if (x == 'center')
{
x = (screen.availWidth - w) / 2;
y = (screen.availHeight - h) / 2;
}
windowOptions = options + ',width=' + w + ',height=' + h
+ ',left=' + x + ',top=' + y;
newWindow = window.open(url, name, windowOptions);
newWindow.focus();
}
</script>
<p title="Click to open" style="cursor:hand"
onclick="spawnJimcoPopup('http://home.nycap.rr.com/smallfamily/images/erin8yrs.jpg'
,'565A290B3D5B464AA492B26746A5A5B2'
,'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no'
,'313','216','0','0','pixel');return false;">
<img border="0" src="http://home.nycap.rr.com/smallfamily/images/erin8yrs.jpg"
width="216" height="313">
</p>
</body>
</html>
 
D

DSG

I have decided to throw in the towel. A seemingly simple task, but something
missing along the way. I get the page to show up in the browser, but not a
popup window all by itself. Trevor, I compared your final script with my
final script that I worked on myself. Word for word, etc., they were
identical - but my picture still showed up in IE browser. I think you were
working just within your web. That was not what I was trying to do. I can
already create a thumbnail, then create a link to a larger picture.

I actually tried one last time after that, got the picture in the browser,
but temporarily creamed the top shared borders on my remote website. When I
opened the live site, the navigation view only showed two folders (out of
168): the htm file for the picture, and the 'home' folder, but they were
switched east and west - opposite from the way we usually view the folders
and files. Upon deleting the htm file and republishing, all is well on the
live site.

Thanks for being very patient. DSG

: DSG wrote:
: > Fifth try.
: > 1. The reason the picture is the same size in the popup is because I
: > don't need it to be any larger.
:
: I thought (not having read all the thread) that the idea was to have a
smaller picture on the main page and a larger one in the
: pop-up.
: But I am not criticising - I just wondered.
:
: > 2. I see Jimco's little program shows <img border="0" ...Why isn't
: > there any place for me to enter a border width? Or is there another
: > menu in FrontPage to do that? Or can I just enter 6 (pixels) in the
: > script where the zero is?
:
: I am confused. Jimco's function does not have any such code.
:
: Ahah, I just noticed. Your code has this:
: <img border="0"
src="http://home.nycap.rr.com/smallfamily/images/erin8yrs.jpg"
: width="216" height="313">
:
: It is entirely up to you what you code here. You can add a border; just
change "0" to "8px".
:
: But note that this will only affect the border of the image on the main
page (the calling page) not on the pop-up which is simply a
: jpeg file.
: WYSIWYG (That is, if the jpeg file has a border, it will show, but if it
hasn't you can't add one.Well you can, but it gets a bit
: complex here - you need to call an HTML page which includes the image in a
border)
:
: > I have just now copied the below script out of FrontPage after I
: > published again. I corrected my error (jpg instead of htm in the two
: > places) I know better. However, I still do not get a popup. If you
: > see an error I will try it once more. Is it possible there is
: > something broken?
: [snip - your code]
:
: This works perfectly. I just cut this code and pasted it into the copy I
had before.
:
: Below is the code as on my PC. This works, but on the web you may not need
to specify the full paths.
: For example, you can change
: 'http://home.nycap.rr.com/smallfamily/images/erin8yrs.jpg'
: to
: 'smallfamily/images/erin8yrs.jpg'
:
: BTW, if you are still having problems, maybe it is because what I am
testing is not the entire code. So far I think I have only seen
: the address of the jpeg nmage and some code which you have posted, not the
code for the page itself. (But perhaps you posted it
: earlier and I missed it)
:
: P.S. Don't give up. This is not something which can't be done.
: Lots of people do it all the time - well, I do and I have seen lots of
posts that indicate that others do as well.
:
: Please post back with further problems.
:
: CODE FOLLOWS
: ==============
: <html>
: <head>
: <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
: <title>erin8yrs</title>
: <meta name="GENERATOR" content="Microsoft FrontPage 4.0">
: <meta name="ProgId" content="FrontPage.Editor.Document">
: <meta name="Microsoft Border" content="none">
: </head>
: <body topmargin="0" leftmargin="0">
: <script type="text/javascript">
: function spawnJimcoPopup(url, name, options, h, w, x, y, scaleType)
: {
: var windowOptions;
: if (scaleType == 'percent')
: {
: w = (w * screen.availWidth) / 100;
: h = (h * screen.availHeight) / 100;
: }
: if (x == 'center')
: {
: x = (screen.availWidth - w) / 2;
: y = (screen.availHeight - h) / 2;
: }
: windowOptions = options + ',width=' + w + ',height=' + h
: + ',left=' + x + ',top=' + y;
: newWindow = window.open(url, name, windowOptions);
: newWindow.focus();
: }
: </script>
: <p title="Click to open" style="cursor:hand"
:
onclick="spawnJimcoPopup('http://home.nycap.rr.com/smallfamily/images/erin8yrs.jpg'
: ,'565A290B3D5B464AA492B26746A5A5B2'
:
,'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no'
: ,'313','216','0','0','pixel');return false;">
: <img border="0"
src="http://home.nycap.rr.com/smallfamily/images/erin8yrs.jpg"
: width="216" height="313">
: </p>
: </body>
: </html>
:
: --
: Cheers,
: Trevor L.
: Website: http://tandcl.homemail.com.au
:
:
 

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