Welcome to WebmasterWorld Guest from 54.144.79.200

Forum Moderators: phranque

Message Too Old, No Replies

fixed sized window: index.htm

     

yamoto

2:20 pm on Sep 5, 2003 (gmt 0)

10+ Year Member



hello

i would like to have index.htm fixed sized window (like script: open new window or pop-up window) 700 x 500? is this possible?

i try with this in index.htm:

i put onLoad="NewWindow('menu.htm'....
and window.close action with timer set to 0,5 second.

and i get: ... do you want to close window? question.

is there a way to disable this?

lorax

2:31 pm on Sep 5, 2003 (gmt 0)

WebmasterWorld Senior Member lorax is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



yamoto, Welcome to WebmasterWorld!
It is possible but not the way you're going about it.

You need to place the content of the index.htm within a div or a table that you can control the width of. So you would have something like:

<body>
<table width="700">
<tr>
<td>
<!--- your existing content here -->
</td>
</tr>
</table>
</body>

Jingle

4:48 pm on Sep 5, 2003 (gmt 0)

10+ Year Member



How about this? Works on IE6 at least.

<script language="javascript">
self.resizeTo(700,500);
</script>

lorax

6:30 pm on Sep 5, 2003 (gmt 0)

WebmasterWorld Senior Member lorax is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



IMHO using javascript to dynamically resize the window is a bit disconcerting to most users.

yamoto

7:37 pm on Sep 7, 2003 (gmt 0)

10+ Year Member



Thanx Jingle that really helps me. Now it looks lovely.
But, is possible to disable bars and menus in index.htm?

thanx again

yamoto

Mohamed_E

7:48 pm on Sep 7, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to WebmasterWorld, yamoto!

Now it looks lovely.

Maybe it looks lovely to you, but I would think very carefully about what lorax wrote:

IMHO using javascript to dynamically resize the window is a bit disconcerting to most users.

I would certainly immediately leave a site that changed my browser and never, ever return to it.

Webwork

8:09 pm on Sep 7, 2003 (gmt 0)

WebmasterWorld Administrator webwork is a WebmasterWorld Top Contributor of All Time 10+ Year Member



Browser resizing = sex site, spam site, aggressive/hostile site.

Response.Write LEAVE NOW AND NEVER RETURN

RobinC

8:19 pm on Sep 7, 2003 (gmt 0)

10+ Year Member



Hear, hear... I've got any sort of resizing/gadget removing disabled, but before I did that, any sites that tried that got the window closed before it could even finish loading...

yamoto

8:31 pm on Sep 7, 2003 (gmt 0)

10+ Year Member



this site is for ecological waste company. and this fixed size variation is idea of their web designer.

kyr01

9:11 pm on Sep 7, 2003 (gmt 0)

10+ Year Member



Apart from being a clear sign of an unfriendly site, Javascript is not always enabled, and you may have to deal with some visitors looking at a full-size window anyway. I would use a simple div of the needed size (that can also be set using relative units, compared to the fixed pixel layout) with a dark background (or whatever color you may like) on the full-size window.
 

Featured Threads

Hot Threads This Week

Hot Threads This Month