Choopernickel
04-18-2003, 07:17 PM
Hey, how ya doin'? Good? Me too. Well, mostly.
I've got this page, right? It's in this frameset, okay, so its content (just one applet invoked by the object tag) has been sized at 100% by 100%. Now we're slightly redoing this frameset to add a sixteen-pixel toolbar to the top of the page.
I still want the rest of the applet to look like it did before, filling the rest of the screen (positioning the toolbar imgs over the applet isn't really an option), but I don't know the height, since I'd have to subtract the sixteen pixels from 100%.
How do I retrieve the current window's (frame's) available height?
How do I set the height of an applet/object?
I've tried these:
function fixMapHeight() {
map = document.getElementByID('IMSMap');
map.height = '##px';
}
and
map.setAttribute('height', '##px');
and
map.style.height = '##px';
but they all return errors - the object doesn't support this method or property.
Any pointers?
TIA,
Choop.
I've got this page, right? It's in this frameset, okay, so its content (just one applet invoked by the object tag) has been sized at 100% by 100%. Now we're slightly redoing this frameset to add a sixteen-pixel toolbar to the top of the page.
I still want the rest of the applet to look like it did before, filling the rest of the screen (positioning the toolbar imgs over the applet isn't really an option), but I don't know the height, since I'd have to subtract the sixteen pixels from 100%.
How do I retrieve the current window's (frame's) available height?
How do I set the height of an applet/object?
I've tried these:
function fixMapHeight() {
map = document.getElementByID('IMSMap');
map.height = '##px';
}
and
map.setAttribute('height', '##px');
and
map.style.height = '##px';
but they all return errors - the object doesn't support this method or property.
Any pointers?
TIA,
Choop.