Welcome to WebmasterWorld Guest from 54.144.80.75

Forum Moderators: phranque

Message Too Old, No Replies

fixed sized window: index.htm

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

New User

10+ Year Member

joined:June 30, 2003
posts:6
votes: 0


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?

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

Senior Member from US 

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

joined:Mar 31, 2002
posts:7575
votes: 0


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>

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

New User

10+ Year Member

joined:Aug 11, 2003
posts:16
votes: 0


How about this? Works on IE6 at least.

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

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

Senior Member from US 

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

joined:Mar 31, 2002
posts:7575
votes: 0


IMHO using javascript to dynamically resize the window is a bit disconcerting to most users.
7:37 pm on Sept 7, 2003 (gmt 0)

New User

10+ Year Member

joined:June 30, 2003
posts:6
votes: 0


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

thanx again

yamoto

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

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:May 14, 2002
posts:1192
votes: 0


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.

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

Moderator

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

joined:June 2, 2003
posts:7805
votes: 21


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

Response.Write LEAVE NOW AND NEVER RETURN

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

Junior Member

10+ Year Member

joined:July 29, 2003
posts:72
votes: 0


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...
8:31 pm on Sept 7, 2003 (gmt 0)

New User

10+ Year Member

joined:June 30, 2003
posts:6
votes: 0


this site is for ecological waste company. and this fixed size variation is idea of their web designer.
9:11 pm on Sept 7, 2003 (gmt 0)

Junior Member

10+ Year Member

joined:Jan 28, 2003
posts:129
votes: 0


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.
 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members