homepage Welcome to WebmasterWorld Guest from 54.226.147.84
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / WebmasterWorld / Webmaster General
Forum Library, Charter, Moderators: phranque

Webmaster General Forum

    
fixed sized window: index.htm
yamoto

10+ Year Member



 
Msg#: 3316 posted 2:20 pm on Sep 5, 2003 (gmt 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?

 

lorax

WebmasterWorld Administrator lorax us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 3316 posted 2:31 pm on Sep 5, 2003 (gmt 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>

Jingle

10+ Year Member



 
Msg#: 3316 posted 4:48 pm on Sep 5, 2003 (gmt 0)

How about this? Works on IE6 at least.

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

lorax

WebmasterWorld Administrator lorax us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 3316 posted 6:30 pm on Sep 5, 2003 (gmt 0)

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

yamoto

10+ Year Member



 
Msg#: 3316 posted 7:37 pm on Sep 7, 2003 (gmt 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

Mohamed_E

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 3316 posted 7:48 pm on Sep 7, 2003 (gmt 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.

Webwork

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



 
Msg#: 3316 posted 8:09 pm on Sep 7, 2003 (gmt 0)

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

Response.Write LEAVE NOW AND NEVER RETURN

RobinC

10+ Year Member



 
Msg#: 3316 posted 8:19 pm on Sep 7, 2003 (gmt 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...

yamoto

10+ Year Member



 
Msg#: 3316 posted 8:31 pm on Sep 7, 2003 (gmt 0)

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

kyr01

10+ Year Member



 
Msg#: 3316 posted 9:11 pm on Sep 7, 2003 (gmt 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.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / WebmasterWorld / Webmaster General
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved