Click to See Complete Forum and Search --> : resize window


Kerstin24
06-23-2003, 02:02 AM
hello everybody,

I have a little problem I cannot seem to handle. I designed a webpage in the solution 1024x768. I would like to make it resize itself as soon as someone in the web is using the 800x600 solution. I looked at my page with the 800x600 solution and it really does not cope that well.
Can someone help me with this? I really appreciate anybodys answer.

thanks,

Kerstin:confused:

pyro
06-23-2003, 07:38 AM
Make you pages so they work in 800x600...

Kerstin24
06-23-2003, 09:42 AM
Originally posted by pyro
Make you pages so they work in 800x600...
#





I thought there is a JavaScript, which switches automatically with the window.resize etc. Can you help?

greetings Kerstin

pyro
06-23-2003, 09:51 AM
Well, you could use resizeTo() (http://devedge.netscape.com/library/manuals/2000/javascript/1.3/reference/window.html#1203300), but for users with a screen res of 800x600, it is not going to do good things if you try to resize to 1024x768...

Kerstin24
06-24-2003, 03:14 AM
Yes you are right, but my problem is different. I know there is a source code to do the following steps:

1. check what solution the user has when logging on website
2. if (800x600) give it a dynamic resize, which means to me, that the pics, text, everything on my site is showing the same way in purportion than in the 1024x768 sol.

Since I´m a pretty bloody beginner in Javascript, I was hoping for anyone to provide me the programming code.

thanks a lot,

Kerstin

pyro
06-24-2003, 07:27 AM
I think what you are looking for is fluid layout. It involves using percentage widths, rather than pixel widths, causing the page to resize with the brower window.

Kerstin24
06-24-2003, 08:53 AM
yes, absolutely. I´m sorry if I seem confused. Thank you so much. now at least I know what I´m looking for. Can you help me with this. I really do not have a clue about how to write the source code for this.

greetings,

Kerstin

pyro
06-24-2003, 08:54 AM
Post a link to your site, or the code that you are using, please.

Kerstin24
06-24-2003, 08:56 AM
Originally posted by pyro
I think what you are looking for is fluid layout. It involves using percentage widths, rather than pixel widths, causing the page to resize with the brower window.



by the way - you have a phantastic site!

greetings,
Kerstin

pyro
06-24-2003, 08:59 AM
Thank you very much. :)

Kerstin24
06-24-2003, 09:07 AM
I hope I´m not getting on your nerves with this, but my site is not finished yet, which means it is not online.

The old site that will be changed you can see under
http://www.ib-werle.de (but it is not mine! This one had been done by someone else!) I work for this office to create a new one.
It is in german, but the source code is as much in english as you guys in the states.

Now, if you would ask me for the javascript for this flued layout I would write it like this:

<script language="JavaScript">
<!--
if(window.size==800x600)
{window.resizeTo(800x600)}

else
{window.document}

Like I said earlier, I´m at the babysteps of my programming. I´m sure this is not correct.



:D Kerstin

pyro
06-24-2003, 09:33 AM
I would start by getting rid of the frames. For a site like that I see no reason to use frames. You shouldn't need to use javascript at all to make a fluid layout. HTML and CSS shoud be it...

Kerstin24
06-24-2003, 09:40 AM
I think you are correct. Even though, the site I created right now has to use frames because of my navigation.

What do you think about the source code I wrote earlier? I know I must have made a mistake because I tried it and it did not work.

greets,

Kerstin

pyro
06-24-2003, 09:51 AM
As I said, I wouldn't recommend resizing the browser window. More than likely, it will just annoy the users. Try instead to make you page work on all resolutions, or at least 800x600 and 1024x768.

Kerstin24
06-24-2003, 09:59 AM
Well, thank you really a whole lot. When my page is finnished, I will let you know! (of course if you want that)

greetings to wisconsin from germany,

Kerstin:D

pyro
06-24-2003, 10:00 AM
Ok, sounds good... :)

Have a great day!