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:39

Target=_NEW doesn't work properly...


Poster: Areometer
Dated: Monday March 8 2004 - 6:16:51 GMT

Hi All, wish someone could help me this time. :|

The site is at: http://www.Aquaristics.com. Please rest your cursor on Contact, then again on the text Forum (on top of the text). If you click on the text now, no new window opens.

Now do the same thing but instead of clicking on the text 'Forum', click on the background other than Forum. A NEW window pops up. How can I make it behave only in the latter way even when the user clicks on the text Forum?

The code is:

Quote:
with(milonic=new menuname("Contact")){
style=menuStyle;
aI("text=E-mail: info __at__ aquaconnect.us;url=info __at__ aquaconnect.us?subject=Aquaristics;;status=Click to E-mail us;");
aI("text=Tel: 617-494-8396 (12 - 6pm EST);status=Our telephone number;");
aI("text=Fax: 866-728-3575 (toll-free);status=Toll-free fax number;");
aI("text=Forum;url=http://www.sigmaautomotive.com/phpbb/index.php;target=_new;status=Aquaristics forum powered by Sigma Automotive;");
aI("text=Tell-A-Friend;url=http://www.recommend-it.com/irec/ReferralReferPage.jsp?433516;target=_new;status=Recommend Aquaristics site to your friends;");
}


Thank you.

Areometer


Poster: bobwill
Dated: Monday March 8 2004 - 15:30:41 GMT

I tested your site using IE 6.0 and everything works fine. When I move cursor over "Contact" and the sub-menu appears and then when I click on "Forum" a new window appears at http://www.sigmaautomotive.com/phpbb/index.php

Maybe I don't understand the issue.


Poster: stephen702
Dated: Monday March 8 2004 - 20:51:30 GMT

I think I understand the issue.

Once a second window has been opened via "Target=_NEW" any other menu link with "Target=_NEW" will open in the same second window, instead of opening up additional new windows.

There is javascript available that will open up additional windows [one example is at http://www.pageresource.com/jscript/jwinopen.htm]


Poster: Areometer
Dated: Tuesday March 9 2004 - 0:38:00 GMT

bobwill wrote:
I tested your site using IE 6.0 and everything works fine. When I move cursor over "Contact" and the sub-menu appears and then when I click on "Forum" a new window appears at http://www.sigmaautomotive.com/phpbb/index.php

Maybe I don't understand the issue.


Hi, thanks for trying. Did you click on the text Forum or merely somewhere in the background? A new window is opened ONLY if you click on the background. If you click on the text itself, the new page will be loaded in the same window. I just tried again and it is still the case.

Thanks.

Areometer


Poster: Areometer
Dated: Tuesday March 9 2004 - 0:40:09 GMT

stephen702 wrote:
I think I understand the issue.

Once a second window has been opened via "Target=_NEW" any other menu link with "Target=_NEW" will open in the same second window, instead of opening up additional new windows.

There is javascript available that will open up additional windows [one example is at http://www.pageresource.com/jscript/jwinopen.htm]


Thanks for your explanation. I don't think I can agree with your observation. Try to click on the background of instead of the text Forum, they behave differently. Former will open up a new window every time. Latter will load the new page in the same window every time.

Also, the above link isn't working for me. Thanks.

Areometer


Poster: fredlongworthhighschool
Dated: Tuesday March 9 2004 - 12:17:18 GMT

What do you mean when you say 'background'? I can't reproduce your error either.


Poster: John
Dated: Tuesday March 9 2004 - 13:43:06 GMT

fredlongworthhighschool wrote:
What do you mean when you say 'background'? I can't reproduce your error either.

I can. Click anywhere within the sub-menu item in question on its background area (not the text of that menu item) and it works. Click directly on the text of that same menu item and it does not work; i.e., hover over the blue background of 'Forum' (not the word Forum') and click and you get a new window; hover over the word 'Forum' and click and you do not get a new window.

Sorry, but I don't have an answer.


Poster: Areometer
Dated: Wednesday March 10 2004 - 6:34:37 GMT

Thank you John. You are right on!

So, no solution to this issue of mine either, huh? Any one else experiencing this same thing?

Areometer


Poster: Andy
Dated: Wednesday March 10 2004 - 10:56:53 GMT

The problem is within the file http://www.aquaristics.com/qa.js

The functions in the file are changing ALL the DIV's on the page. As the menu is made up of a series of divs this is breaking the menu.

Where did this file come from and what does it do?

Is it another one of DynamicDrives wonderful (yes I am beng sarcastic) free (NOT) scripts? If it is, I suggest you try and get rid of it.

Cheers
Andy


Poster: Areometer
Dated: Sunday March 14 2004 - 3:12:31 GMT

Hi Andy, sorry to reply you late. Wow, you are gooood. I trust that you've located the source of my problem. QA is a cool script, great for Q&As. Take a look here: http://www.aquaristics.com/schuran_skimmerfresh.asp, in the middle of the page, click on that down arrow. More text will be expanded.

I think it's from DynamicDrive indeed.

Thanks.

Areometer


Poster: Andy
Dated: Monday March 15 2004 - 11:01:50 GMT

The menu will also do the same, this is based on the Tooltips functionality.

-- Andy

EDIT - Actually I got it wrong, the tooltips are at the bottom of your page. The code for showing the extra text could be done with the menu but it's probably better what you already have.