Reply LinkBack Thread Tools Search this Thread
Old 29-03-2004, 12:14   #21 (permalink)
Stickman
Dr. Lucien Sanchez
 
Stickman's Avatar
 
Join Date: Mar 2003
Location: UK
Posts: 5,638
Thanks - but I just tried it and the window opens without toolbars, status bar etc. Also, it applies to every link as I don't know how to tell it that class="external" means the link is external and all the others aren't. I really do not do javascript.

Working on something else right now, so I'll test out any more offers in the morning.

Sorry about lack of clarity, misunderstandings - I think it's the madness that is the welsh language seeping into my brain.
  Reply With Quote
Old 29-03-2004, 13:17   #22 (permalink)
Bill Posters
trouble free and loverlee
 
Join Date: Mar 2003
Location: YooKay
Posts: 2,968
Amended the script(s) to show all the window features.
Tbh, I actually struggled a little.
S'been about a million years since I did that kind of popup and I seem to be quite rusty.

Anyhoo, this should give you want you want.

Note:
Don't use class attributes. Use the rel attribute as prescribed in the original SitePoint method.

The first example will isolate links that are external (i.e. point to another domain).
The second example will isolate links with the rel="external" attribute/value combo.
  Reply With Quote
Old 29-03-2004, 13:52   #23 (permalink)
roto
Floating libation anyone?
 
roto's Avatar
 
Join Date: Apr 2003
Location: El Barco del Amor
Posts: 4,596
Send a message via AIM to roto Send a message via Yahoo to roto
...and, Bill, with your script, should I substitute a # for width and a # for height to get the size I'm after if you don't want it to open full screen???

Code:
height="+screen.availHeight+",width="+screen.availWidth+"
__________________
fun: HGC v.4 | last.fm: DT | me | oi! f*ck u roto: ...via meebo!

New to interweb design? Your friends at dt can help.
  Reply With Quote
Old 29-03-2004, 14:37   #24 (permalink)
Bill Posters
trouble free and loverlee
 
Join Date: Mar 2003
Location: YooKay
Posts: 2,968
yep

e.g.
Code:
newWin = window.open(url,"_blank","top=0,left=0,height=300,width=500,location,scrollbars,directories,menubar,resizeable,status,toolbar");

If you set no height and width values at all, then the window will open at the same size as the last manipulated window.
(As Brown mentioned, browsers tend to 'remember' the dimensions of the last window you manually resized or the last window created or resized usingt javascript. They use that size for all new windows unless other dimensions are specified during the window creation process (in which case a new window size will be committed to memory and so forth…).)

Last edited by Bill Posters : 29-03-2004 at 15:03.
  Reply With Quote
Old 29-03-2004, 16:10   #25 (permalink)
roto
Floating libation anyone?
 
roto's Avatar
 
Join Date: Apr 2003
Location: El Barco del Amor
Posts: 4,596
Send a message via AIM to roto Send a message via Yahoo to roto
Quote:
Originally Posted by Bill Posters
(As Brown mentioned, browsers tend to 'remember' the dimensions of the last window you manually resized or the last window created or resized usingt javascript. They use that size for all new windows unless other dimensions are specified during the window creation process (in which case a new window size will be committed to memory and so forth…).)
Thanks...did I mention I absolutely hate when the memory is stuck at full screen? B/C, for example, when you visit a site that resizes to full screen and you had already set a perfect restore down size you like, it is lost. Because of this, I'd like to use the script that makes it a specific size...do you recommend something like 640x480, 8x6, etc.? I'd like something to go with that is safe and that can cover as many basic resolutions sizes as possible.

Also, what happens if someone is at 640x480 ( ) and the script is set to resize the new window to 8x6?
__________________
fun: HGC v.4 | last.fm: DT | me | oi! f*ck u roto: ...via meebo!

New to interweb design? Your friends at dt can help.
  Reply With Quote
Old 29-03-2004, 18:26   #26 (permalink)
Brown
volkswagen yellow & gold
 
Brown's Avatar
 
Join Date: Apr 2003
Location: london, england.
Posts: 6,186
Quote:
Originally Posted by ®oto
...did I mention... squark ... squark ... recommend something like 640x480 ... ... go with that is safe
just leave it alone.

[AsASideNote]i'm keen to know what the stick is playing at too. i'm sure that i can quote pretty much along the lines of - i like my browser, leave it alone please. but i've probably got the wrong end of the, er, stick. again. sorry.[/AsASideNote]
  Reply With Quote
Old 30-03-2004, 03:17   #27 (permalink)
Bill Posters
trouble free and loverlee
 
Join Date: Mar 2003
Location: YooKay
Posts: 2,968
Safari reuses recent sizes for new windows too.
Consequently I set up a bookmarklet some time ago that goes through the neccessary step to resizing and re-establishing my preferred default size.
(Safari unfortunately doesn't 'remember' the size of windows resized via js, but does remember the size of sized js popups, consequently…)

e.g.
Code:
javascript:self.moveTo(0,0);self.resizeTo(820,screen.availHeight);newWin=window.open('','','left=0,top=0,width=818,height='+screen.availHeight+',directories=1,toolbar=1,menubar=1,scrollbars=1,status=1,resize=1');newWin.close();
('random' spaces inserted by forum software)

It's in my favourites bar with a simple • as its name.
It's also associated with a keyboard shortcut.
This means that however a site resizes or repositions my browser window I can reset that window (and also the 'remembered' size used for subsequent windows) perfectly with a single click or keystroke.
  Reply With Quote
Old 30-03-2004, 04:14   #28 (permalink)
Stickman
Dr. Lucien Sanchez
 
Stickman's Avatar
 
Join Date: Mar 2003
Location: UK
Posts: 5,638
Cheers bill. Seems to do what I want.


Quote:
Originally Posted by Brown
[AsASideNote]i'm keen to know what the stick is playing at too. i'm sure that i can quote pretty much along the lines of - i like my browser, leave it alone please. but i've probably got the wrong end of the, er, stick. again. sorry.[/AsASideNote]
Just investigating.

I'd got new windows working to standards and wanted to know if I could force IE to stop being so IE.
Now I've tried it out, I don't think I'll use this for this project - but it's nice to have the option.
Knowledge is power.
  Reply With Quote
Old 30-03-2004, 04:21   #29 (permalink)
smallbeer
I Ain't Losing Any Sleep™
 
Join Date: Apr 2003
Posts: 5,235
My work here is done
__________________
That's fuckin' ingenious, if I understand it correctly. It's a Swiss fuckin' watch.
  Reply With Quote
Old 30-03-2004, 04:28   #30 (permalink)
Bill Posters
trouble free and loverlee
 
Join Date: Mar 2003
Location: YooKay
Posts: 2,968
touché, sb
  Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Contact Us - Web Design Forums - Archive - Top
Search Engine Optimization by vBSEO 3.0.0 RC8