R
Robert
Hi, here's my code to basically make an popup window open with an
image in it and resize to fit it properly. It works in IE, but not in
Mozilla (no picture shows up and it doesn't resize). It would be
opened with window.open('pic.html?'+path,...); Any ideas?? Thanks in
advance!
<body bgcolor="#000000" text="#ffffff" onLoad="loader()"
onBlur="self.close()" topmargin=0 leftmargin=0 marginheight=0
marginwidth=0>
<script language="JavaScript"><!--
function loader() {
var str = document.location.toString();
var pic = str.substring(str.indexOf('?')+1, str.length);
image.src = pic;
image.alt = 'Picture: ' + pic;
}
function resizer() {
window.resizeTo(document.all.image.width+10,
document.all.image.height+30);
window.focus();
}
--></script>
<img name="image" src="" alt="" onLoad="resizer()"
style="display:block">
</body>
</html>
image in it and resize to fit it properly. It works in IE, but not in
Mozilla (no picture shows up and it doesn't resize). It would be
opened with window.open('pic.html?'+path,...); Any ideas?? Thanks in
advance!
<body bgcolor="#000000" text="#ffffff" onLoad="loader()"
onBlur="self.close()" topmargin=0 leftmargin=0 marginheight=0
marginwidth=0>
<script language="JavaScript"><!--
function loader() {
var str = document.location.toString();
var pic = str.substring(str.indexOf('?')+1, str.length);
image.src = pic;
image.alt = 'Picture: ' + pic;
}
function resizer() {
window.resizeTo(document.all.image.width+10,
document.all.image.height+30);
window.focus();
}
--></script>
<img name="image" src="" alt="" onLoad="resizer()"
style="display:block">
</body>
</html>