Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Sammie

macrumors newbie
Original poster
Nov 4, 2004
19
0
Peawanuck, Ontario
I want t to know what code and where to put it for my main page www.suttonriver.ca I don't like the page with the window opening up. I just want the picture and the window to open to the size of the picture only.

I created the whole page using imageready including the rollovers and I can't figure out to control the size of the window???

HELP!!!

Sammie

:confused:
 
I'm not exacally shure how to do what you want. But, I know how to make a pop up window using javascript. I had to do it for website I did a while ago. If you want the code and stuff e-mail me and i'll send it to you. I don't know it off the top of my head, i'm away from my home computer.
 
Need help for main page

I guess I didnt explain what I want but when I open my site, the main page which is the one I posted should open to a window to the size of the picture. My main page will have three different sites and that is fishing, polar bear viewing and my portfolio.

I just don't like it when I look type the address and the picture is in the top left corner when the page opens. I would prefer only the size of the picture to show.
 
Personally, I detest both pop up windows and automatically resizing windows, even if they're legitimate web pages and not ads. I doubt that I'm alone. You won't make too many friends designing websites that move/resize/just otherwise mess with the window without a really good reason to do so.

How about placing the graphic in the center and just having a background color (black looks like it would work fine with a little bit of work on the graphic) so it will accommodate different sized screens?
 
mms said:
Personally, I detest both pop up windows and automatically resizing windows, even if they're legitimate web pages and not ads. I doubt that I'm alone. You won't make too many friends designing websites that move/resize/just otherwise mess with the window without a really good reason to do so.

How about placing the graphic in the center and just having a background color (black looks like it would work fine with a little bit of work on the graphic) so it will accommodate different sized screens?


I agree, I see what this guy wants to do but trust me man, you won't be happy with the results. It'll look fidgity and bad.
 
the more elegant solution is to create a background the same color as the edge of your window and center the image in the page.

You have to realize that not everyone is going to have the same window size or they'll want to have a different size than what you want.

I made a mock up for you - its just a jpg, so you'll have to do it yourself
but it also gets rid of the cut of gradient that you have.

I also gives you room to put Copyright and contact info underneith if you want.

D

http://www.gone3d.com/suttonRiver/
 
Thanx so much!

I really appreciate the help and I will complete my full site in a week or two.

Now I feel :) and thank you again!

sammie
 
I think you're looking for something like this:

Code:
<body onLoad="window.resizeTo(800,400)">
But, I'll echo what has been said above: it's not polite to change people's browser size, and most people don't like it. I sure don't. I only use the above in a popup window, which is launched only when a user clicks on a link.

Good luck with your site!
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.