[Javascript] Re: Getting image size and controlling window
Cutter (javascript list)
javascript at theblades-family.com
Tue Oct 1 14:14:55 CDT 2002
for my pic.html I used:
<!--- pic.html //--->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Your Title</title>
</head>
<body
onLoad="self.resizeTo(document.imgItemPic.width,document.imgItemPic.height+2
5)" marginheight="0" marginwidth="0" leftmargin="0" topmargin="0">
<script>
document.write("<img src='images/" + window.name + ".lg.jpg' border='0'
name='imgItemPic'>");
</script>
</html>
<!--- end //--->
Pay attention to the onload event
Cutter
Jefferis Peterson writes:
> I see that an image opened in its own window returns the dimensions of the
> image size. Is there a way to feed that info into an onLoad behavior to set
> the pop up window size ?
>
> Jeff
> ~~~~~~~~~~~~
> Jefferis Peterson, Pres.
> Web Design and Marketing
> http://www.PetersonSales.net
> Tel . 724-458-7169
> ICQ 19112253
>
> http://www.Slippery-Rock.com - 7,000 hits per year
>
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> https://lists.LaTech.edu/mailman/listinfo/javascript
More information about the Javascript
mailing list