How can I target the position of a new window?
Where can I let the new window know where to "popup" ??
Thanks a lot for your help - Armin
aI("text=Musik;url=../se/music-se/popup-se.html;align=right; showmenu=Musik;image=../se/images-se/music/music-se.gif;itemwidth=14%;target=Musik;targetfeatures=width=200 height=150 toolbar=no location=no directories=no status=no menubar=no scrollbars=no resizable=no copyhistory=no;");
targetfeatures ? Position
When placing code, please use the code button to open and close it.
You can position the window using the targetfeature.
However you need to be aware of a couple of things. This will not work in all browsers because they don't all support it. Also, if the window is already open and it gets the new page gets loaded in it, it will not position differently from where it already is.
Ruth
You can position the window using the targetfeature.
Code: Select all
targetfeatures=all the stuff you have plus left=10 top=10 or whatever placement you want;");
However you need to be aware of a couple of things. This will not work in all browsers because they don't all support it. Also, if the window is already open and it gets the new page gets loaded in it, it will not position differently from where it already is.
Ruth
I think you need a function. I saw this and don't know if it will do what you want.
As to what you do with that function, where you put it, etc. I'm not sure. I think you put it in between the head tags and then in the menu link you'd call it, I think like this Hopefully you can do something with this.
Ruth
Code: Select all
var newwindow;
function poptastic(url)
{
newwindow=window.open(url,'name','height=500,width=400,left=100,
top=100,resizable=yes,scrollbars=yes,toolbar=yes,status=yes');
}
As to what you do with that function, where you put it, etc. I'm not sure. I think you put it in between the head tags and then in the menu link you'd call it, I think like this
Code: Select all
aI("text=item;url=javascript:newwindow('http://whatever/');");
Ruth

Code: Select all
aI("text=item;url=javascript:newwindow('http://whatever/');");
Code: Select all
aI("text=item;url=javascript:poptastic('http://whatever/');");
Ruth
-
- Beginner
- Posts: 2
- Joined: Thu Dec 23, 2004 3:26 pm
but the menu doesn't auto hide
I use similar code to pop up a small dislogue box from a sub-menu item .
I get the pop to display correctly, but the menu/sub-menu/sub-menu item display
doesn't auto-hide.in the mail/original window!
Thoughts?
ps: I'm running the latest Milonic download in Foxfire 1.0
I get the pop to display correctly, but the menu/sub-menu/sub-menu item display
doesn't auto-hide.in the mail/original window!
Thoughts?
ps: I'm running the latest Milonic download in Foxfire 1.0
Hi Armin,
Hi Greengrass,
Cheers,
Kevin
Like Ruth mentioned, not all attributes are supported by all browsers. At least some versions of Netscape do not support the left= and top= window attributes in the window.open() method. So, it won't work with those.Armin wrote:Like you have written it work in IE but not in Firework or Netscape.
Hi Greengrass,
Try adding closeAllMenus(); to the top of the function you use to open your popup window.greengrass wrote:I get the pop to display correctly, but the menu/sub-menu/sub-menu item display doesn't auto-hide in the mail/original window!
Cheers,
Kevin
-
- Beginner
- Posts: 2
- Joined: Thu Dec 23, 2004 3:26 pm