NameSilo

Windown sizing..

Spaceship Spaceship
Watch
Impact
0
ok see my website(http://www.visualpoetrystudios.tk), ok I want the window size to look like the pop up window that follows after it.......I cant figure it out though
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
You want the window to be that size without having a popup or anything, just want the page to be that small when people enter?
 
0
•••
the page to be that small when you enter, the pop up is 800x600, and i want the index page to look the same
 
0
•••
I'm still not quite sure what you're saying. :D

But, I think your saying that you want the entire broswer to be resized to the size you want when ever someon enters. Is that correct?

Also I don't see any popup anywhere that follows your page. The only one I see is the auto popup from Dot TK. Is that the popup you're talking about or am I missing something :-/

If you can possibly answer them questions and explain in a little more detail that would help. :) :webdev:
 
0
•••
lol yeah the entire browser size once you open the site...sorry about the misunderstanding, i was distracted while typing that
 
0
•••
Try this:
Code:
<html>
<head>
<script> 
window.resizeTo(500,500); 
</script>
</head>
<body>
You've been resized!
</body>
</html>

You can change the, 500,500, to what ever width and height you want. Your users may not like it though. :D ..... But it should resize the users browser to what you have set when they enter. :D
 
0
•••
thank you very much i will apply it as soon as I figure out how to, im new to html, do i make a script for this or just place it anywhere?.....while im at it I found a script to remove geocities banners, but it hasnt worked for me, take a look;


http://ghostbone.com/main/tutorials/scripts/removebanners.html
 
0
•••
You just have to place it between the:

<head>
</head>

tags on the pages you want the browser to auto resize on entry.

The geocities thing, well you'll just have to experiment with that. :D You'll probably get kicked off anyways if you remove their ads.
 
0
•••
thanks i like this place, you guys know everything, you wouldnt happen to know how to make all the tools and scroll bars go away so it appears like a pop up window
 
0
•••
Well without having the new window load from the page that's entered, that could get diffuclt, unless you didn't mind having a warning box popup every time someone entered asking if they want to close the window. I think you would have to write out your whole page with JavaScript if you wanted to do it that way without a warning box. You would just have to trick it into thinking it's a new window. :D I'll see if can get some code together to show you what I'm talking about.

But it can be easily done with two windows.

<html>
<head>
<title>Resize Window without Scrollbars and Toolboars</title>
<script language="JavaScript">
function popUP() {
myWin = window.open("http://www.webdesigntalk.net", "","toolbar=no,location=no,directories=no,menubar=no,scrollbars=no,resizable=no,left=60,top=60,width=600,height=400")
}
</script>
</head>
<body onLoad="popUP();">
This is the window that will launch the popup with out any scrollbars or toolbar.
</body>
</html>

You can replace http://webdesigntalk.net with the url of the window you want to popup. You can also change the width and height, and the other settings in the line that starts with myWin to what you want. That part should be all on one line in your page. I've attached a text file that you can look at to see how it should look in your page.
 
0
•••
Here's an example of what I was talking about where the user will get a message asking if they want to close the window:

<html>
<head>
<title>Resize Window without Scrollbars and Toolboars</title>
<script language="JavaScript">
function popUP() {
myWin = window.open("http://www.webdesigntalk.net", ""," toolbar=no,location=no,directories=no,menubar=no,s
crollbars=no,resizable=no,left=60,top=60,width=600
,height=400")
}
</script>
</head>
<body onLoad="popUP(); self.close();">
This is the window that will launch the popup with out any scrollbars or toolbar.
</body>
</html>

It's the exact same code as above, only I've added self.close(); to the body tag <body onLoad="popUP(); self.close();"> That will attempt to close the window that the popup was launched from, but it will give a warning asking the user if they want to close the window or not, so there's really not much use in it. Your best option would probably be to just have two windows, one that loads the popup and the actual popup.

It is possible to remove the scroll bars using the first code I posted that resized the browser window. Just add scroll=no to the body tag.
Code:
<html>
<head>
<script> 
window.resizeTo(500,500); 
</script>
</head>
<body scroll=no>
You've been resized!
</body>
</html>

But other than that, I don't think it's possible to manipulate any of the other browser properties unless you launch a new window from a current window. Which is probably a good thing. :)
 
0
•••
yeah its been a while......ok i have one more problem........im using this script here....

<html>
<head>
<script>
window.resizeTo(480,730);
</script>
</head>
<body scroll=no>
</body>
</html>


it shows up like so..http://visualpoetrystudios.com/1.jpg
I want it so that you can not resize the window and the menu will not show...whats can i add to that script to do so script i can use to do so?

one more thing i want to create a link that will make a pop up window lets say 540x650, how would i go about doing that?


thanks in advance....this message board has saved me countless times
 
0
•••
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back