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...s/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>
</html>
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
"DSG" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
: Thanks, Trev. I will compare your HTML with mine and maybe I can figure it
: out. It has got to be really easy!
: DSG
: ................................................
: "Trevor L." <Trevor_L.@Canberra> wrote in message
: news:(E-Mail Removed)...
:: 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
::
::
:
: