epanding an image view after clicking a smaller version

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>
 

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

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top