runnerboy49
11-11-2002, 09:10 PM
sorry if this is a redundant topic...but i'm want to know how to get a popup so that it is the exact size of the picture that is popping up. with what I have now it has white to the left and top of the image and not all is shown in the popup.
this is what I was using
<SCRIPT LANGUAGE="JavaScript">
<!-- Idea by: Nic Wolfe (Nic@TimelapseProductions.com) -->
<!-- Web URL: http://fineline.xs.mw -->
<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->
<!-- Begin
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=1,width=400,height=300');");
}
// End -->
</script>
and <A HREF="javascript:popUp('/image.jpg)">link</a>
is there a better script that I should use
this is what I was using
<SCRIPT LANGUAGE="JavaScript">
<!-- Idea by: Nic Wolfe (Nic@TimelapseProductions.com) -->
<!-- Web URL: http://fineline.xs.mw -->
<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->
<!-- Begin
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=1,width=400,height=300');");
}
// End -->
</script>
and <A HREF="javascript:popUp('/image.jpg)">link</a>
is there a better script that I should use