This code is for a popup that will display a screenshot. I would like the user to be able to resize the window, but not have the window wider or longer than the picture.
However, I do not know how to capture the .onResize so that the script executes...
window.onResize="resizeme()"
thanks again for your help, it is always appreciated,Code:<script type="text/javascript"> <!-- function resizeme() { var mywin if ($pic_sizex == self.width && $pic_sizey == self.height) { window.resizeto("$pic_sizex*$factor, $pic_sizey*$factor") } else if ($pic_sizex*$factor > self.width) { window.resizeto = ("window.width, $pic_sizey*$factor") } else ($pic_sizey*$factor > self.height) { window.resizeto = ("$pic_sizex*$factor, window.height") } } // --> </script>
jared




Bookmarks