G
Guest
just getting back into it - never was very strong programmer anyway, I
seem to be addressing wrong windows etc. I'd like to expand the gif
etc to size of the window - so user can select from gallery - here is
what I have as an example. If you can make any sense of my ham-fisted
code and can point out where I want to go -- then thank you so much
Keith
---------------------------------------------------------
<html>
<head>
<meta http-equiv="Content-Type"
content="text/html; charset=iso-8859-1">
<title>Click and expand a Picture </title>
</head>
<body bgcolor="#808000">
<img alt="bkw (1K)" src="bkw.gif" height="32" width="80"
onclick="expand()" /> expand one
<br />
<img alt="bkw (1K)" src="bkw.gif" height="32" width="80"
onclick="expandV2()" /> expand two
<br>
<SCRIPT LANGUAGE="JavaScript">
<!--
function expand ()
{
NewWindow=window.open(src="mapett.gif", "ClubMapWindow")
NewWindow.writeln("seems to be to a separate window to what I
thought")
NewWindow.writeln("basicly I do not know where the heck these
lines")
NewWindow.writeln("have been written to")
NewWindow.self.writeln("seems to be to a separate window to what I
thought")
document.clear()
NewWindow.status=("have been written to")
document.src="bbw.gif"
}
function expandV2 ()
{
NewWindow=window.open(src="mapett.gif", "cc", "height=100",
"width=100")
NewWindow.src="bbw.gif"
}
//-->
</SCRIPT>
</body>
</html>
seem to be addressing wrong windows etc. I'd like to expand the gif
etc to size of the window - so user can select from gallery - here is
what I have as an example. If you can make any sense of my ham-fisted
code and can point out where I want to go -- then thank you so much
Keith
---------------------------------------------------------
<html>
<head>
<meta http-equiv="Content-Type"
content="text/html; charset=iso-8859-1">
<title>Click and expand a Picture </title>
</head>
<body bgcolor="#808000">
<img alt="bkw (1K)" src="bkw.gif" height="32" width="80"
onclick="expand()" /> expand one
<br />
<img alt="bkw (1K)" src="bkw.gif" height="32" width="80"
onclick="expandV2()" /> expand two
<br>
<SCRIPT LANGUAGE="JavaScript">
<!--
function expand ()
{
NewWindow=window.open(src="mapett.gif", "ClubMapWindow")
NewWindow.writeln("seems to be to a separate window to what I
thought")
NewWindow.writeln("basicly I do not know where the heck these
lines")
NewWindow.writeln("have been written to")
NewWindow.self.writeln("seems to be to a separate window to what I
thought")
document.clear()
NewWindow.status=("have been written to")
document.src="bbw.gif"
}
function expandV2 ()
{
NewWindow=window.open(src="mapett.gif", "cc", "height=100",
"width=100")
NewWindow.src="bbw.gif"
}
//-->
</SCRIPT>
</body>
</html>