epicweb
07-06-2006, 05:10 PM
Just wondering if anyone can help be determine how this window popup resizing works. go to http://www.xigla.com/absolutefm/demo.htm and click on Demo 1 : FAQ Implementation
It will open 2 windows. How do they get it to resize both windows like this? I'm sure its javascript. Can you one help provide an example?
:lovewht:
superprogram
07-06-2006, 06:25 PM
2 windows??
I can only see a new browser window which is resized
epicweb
07-06-2006, 09:27 PM
when you click, it resizes the active window and then opens a new window to the right of the screen. Both windows = 100% of screen.
2 windows??
I can only see a new browser window which is resized
maxymizer
07-07-2006, 03:35 AM
View source and see what they're using?
NE-Andy
07-07-2006, 08:13 PM
Javascript thing... probably grabs your screen wdith and adjust current window and launch new one with matching size for the remainder. MS Word have been doing that kind of thing since forever.
<script type="text/javascript">
<!-- <![CDATA[
var widthFull = screen.width;
var widthNewWindow = 200;
var widthCurrentWindow = widthFull - widthCurrentWindow;
window.resizeTo( widthCurrentWindow, screen.height ); // resize current window
window.moveTo( widthNewWindow, 0); // move current window to avoid new window
// launch new window with the dimension you want.
// and include a moveTo code to move to 0, 0 (very left hand top) to avoid current window
// ]]> -->
</script>
Philio
07-08-2006, 07:32 AM
Windows that resize themselves have to be about the most annoying things ever, or unwanted popup adverts... or both equally :D