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('pi c.html?'+path,. ..); Any ideas?? Thanks in
advance!
<body bgcolor="#00000 0" text="#ffffff" onLoad="loader( )"
onBlur="self.cl ose()" topmargin=0 leftmargin=0 marginheight=0
marginwidth=0>
<script language="JavaS cript"><!--
function loader() {
var str = document.locati on.toString();
var pic = str.substring(s tr.indexOf('?') +1, str.length);
image.src = pic;
image.alt = 'Picture: ' + pic;
}
function resizer() {
window.resizeTo (document.all.i mage.width+10,
document.all.im age.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('pi c.html?'+path,. ..); Any ideas?? Thanks in
advance!
<body bgcolor="#00000 0" text="#ffffff" onLoad="loader( )"
onBlur="self.cl ose()" topmargin=0 leftmargin=0 marginheight=0
marginwidth=0>
<script language="JavaS cript"><!--
function loader() {
var str = document.locati on.toString();
var pic = str.substring(s tr.indexOf('?') +1, str.length);
image.src = pic;
image.alt = 'Picture: ' + pic;
}
function resizer() {
window.resizeTo (document.all.i mage.width+10,
document.all.im age.height+30);
window.focus();
}
--></script>
<img name="image" src="" alt="" onLoad="resizer ()"
style="display: block">
</body>
</html>
Comment