Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

Back To Start Of Archive
Taken From The Forum: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:01

Force Window On Top Solved!


Poster: whaywardj
Dated: Friday December 10 2004 - 16:48:10 GMT

Thanks to Ruth.

Issue: Make secondary window from first menu-click stay on top of main window so 1) menu remains visible; 2) content from subsequent menu-clicks recycles in that window; and 3) it stays on top during content cycling.

Java function in (my) main page is:

Code:

<script language="JavaScript">
<!--
var newwindow;
function poptop(url)
{
   newwindow=window.open(url,'name','height=400,width=200');
   if (window.focus) {newwindow.focus()}
}
</script>



(My) Milonic *.js menu item link configuration is:

Code:

aI("text=IEC/ISO Standards;url=javascript:poptop('http://www.standardsinfo.net/isoiec/stdcat.html')");



Target features are handled in the function statement. On slow machines, it's a little in-elegant but, for my purposes, preferred over having the secondary window open and/or cycle content behind the main window.

Thanks again, Ruth.

Oops! ERROR. I dropped a semi-colon in the menu item string when copying it to the forum. Menu item strings need to read as follows for the "on top" function to be called:

Code:

aI("text=Estimating Documentation Costs;url=javascript:poptop('pdf/estimating.pdf');");



Note the two semi-colons at the end.[/code]


Poster: Ruth
Dated: Friday December 10 2004 - 17:49:08 GMT

You're welcome, I learned something new :D . As to the bottom scroll links. I'm not sure I understand what you meant about that, but I'd think if you didnt' want a new window for each click, you could just make another function like this one on that page and give the window a different name?

Ruth