View Full Version : Certain size page?
NSpears
06-28-2002, 05:26 PM
I need to know the following:
When you want a link to open in a blank page. How do you make it so that the page opens only to a certain size. I hope you all understand what I am asking since I am a newbie.
Gruff
06-28-2002, 07:19 PM
Not sure if this is what you're asking, but this will be a link that will create a new window 640x480 with no scrollbars etc, for the webpage 'yourURL'
Inside the HEAD tag:
<script language="javascript">
function open_window(url)
{ mywin = window.open(url,"win",'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=no,resizable=1,width=640,height=4 80');
}
</script>
And then in the code the link:
<a href="javascript:open_window('yourURL')">Link</a>
Andy
shifted
06-28-2002, 07:50 PM
However, i'd like to point out that using popups can be a bit annoying. Some people, such as myself, browse with popups turned off.
Also, if you use purely javascript to access a page, search engines won't find it, so watch out for this hangup.
<span style="color: #f00">NOTE: there is no space between java and script in the code above. The forum software inserts that.</span>
Gruff
06-29-2002, 06:21 AM
"Nspears", was that what you were asking?
Yup "Shifted" is right, popups can be very annoying, but alas you can miss half a site if you aren't seeing them.
Personally if it's a popup I asked for, then I don't mind it... often good to warn the user that the link will open another window! Like the popups on the 100megs main page for plan details/ordering.... actually serving a useful purpose.
Perhaps you should stop visiting some many of those err.. ladies sites Shifted ;)
Andy
NSpears
06-29-2002, 09:18 AM
Originally posted by Gruff
"Nspears", was that what you were asking?
Yup "Shifted" is right, popups can be very annoying, but alas you can miss half a site if you aren't seeing them.
Personally if it's a popup I asked for, then I don't mind it... often good to warn the user that the link will open another window! Like the popups on the 100megs main page for plan details/ordering.... actually serving a useful purpose.
Perhaps you should stop visiting some many of those err.. ladies sites Shifted ;)
Andy
Thanks Gruff that should be helpful.
nsr81
06-29-2002, 10:44 AM
Originally posted by Gruff
Perhaps you should stop visiting some many of those err.. ladies sites Shifted ;)
Hahahahahahaha that was a good one. LMAO :D
shifted
06-29-2002, 01:57 PM
Originally posted by Gruff
Perhaps you should stop visiting some many of those err.. ladies sites Shifted ;)
lmao :P
Actually, the worst now are those free-hosting (eg. tripopup.com, et cetera) sites or anything at yahoo.com. I am tired of getting a new pop-under add at each new page. Having a site with no popups was, in fact, the reason why i got my own domain in the first place.. i just never got around to building the actual site... lol. Now, however, i'm going in to webdesign and hosting.
To be honest, i wouldn't mind popups at all, if they didn't contain advertising. I really hate ads. It has become instinctual to close anything that just pops up. Being able to get rid of them all together was a blessing.
But feel free to use them... the majority of users (stuck using IE) can't disable them, and thus they will have a pleasant browsing experience.
Gruff
06-29-2002, 04:46 PM
Sorry, couldn't resist that one. ;)
But I agree, death to auto-pop-ups, especailly dumb ads.
I remember my first free website had no ads, no banners and a huge 1mb, although that was the days when the web was err mostly textual.
Poor old archie and gopher.
Andy
shifted
06-29-2002, 04:52 PM
Originally posted by Gruff
I remember my first free website had no ads, no banners and a huge 1mb, although that was the days when the web was err mostly textual.
Poor old archie and gopher.
I never seriously browsed the web until early '99 or so, though i had first used it back when Netscape 1.1 was king! Yay for tables! Or was that the version that introduced animated gif's? i can't remember.
I never used archie, and only used gopher once a few years ago—hardly a quantitative experience.
vBulletin® v3.6.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.