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

target= in ListMenu


Poster: theredbaron76
Dated: Thursday June 7 2007 - 15:22:50 BST

Hello. Is it possible to target in a new windows using list based men?
Thought it was to insert an easy "target='_blank'" inside my <a href tag... but it doesn't work. It opens in my self window only.

Any idea? Here is my little code:

Code:
  <tr>
    <td>

 
  <script>

  _menuCloseDelay=500;
  _menuOpenDelay=350;
  _subOffsetTop=2;
  _subOffsetLeft=-2;
 
  with(menuStyle1=new mm_style()){   
  align="left";
  borderwidth=1;
  bordercolor="#303030";
  separatorsize=1;
  separatorcolor="#ffffff";
  separatorpadding=1;
  separatorheight=20;
  fontfamily="Verdana";
  fontsize="12px";
  fontstyle="normal";
  fontweight="normal";
  offbgcolor="#303030";
  offcolor="#FFFFFF";
  onbgcolor="#FFFFFF";
  oncolor="#303030";
  padding="5px";
  subimage="../images/arrow.gif";
  subimagepadding=2;
  }
 
  </script>   
 
  <table border="0" cellpadding="0" cellspacing="0" width="970"><tr><td valign="top" width="970">
<ul id="menulist">
<li><a href="http://abw.bisiacaria.com" target="_blank">Associazione ABW</a></li>
<ul>
<li><a href="http://abw.bisiacaria.com/iscrizione/" target="_blank">Iscriviti ad ABW!</a></li>
<li><a href="http://abw.bisiacaria.com/convenzioni/" target="_blank">Convenzioni ABW</a></li>
</ul>
<li><a href="http://media.bisiacaria.com" target="_blank">MediaStreaming</a></li>
<li><a href="http://trovacasa.bisiacaria.com" target="_blank">TrovaCasa di Bisiacaria.com</a></li>
<ul>
<li><a href="http://trovacasa.bisiacaria.com/signup.asp" target="_blank">Iscriviti al TrovaCasa!</a></li>
<li><a href="http://trovacasa.bisiacaria.com/immobiliari.asp" target="_blank">Tutte le Agenzie Immobiliari</a></li>
</ul>
</ul>
<script>buildListMenu("menulist","menuStyle1","alwaysvisible=true;orientation='horizontal';position='relative';menuwidth='100%';")</script>
</td>
</tr></table>
    </td>
  </tr>
</table>


Poster: Ruth
Dated: Thursday June 7 2007 - 18:19:12 BST

Hi,

I just tested your code and it works fine. We'll need to see the actual page to figure out what's going on.

Ruth


Poster: theredbaron76
Dated: Friday June 8 2007 - 15:47:36 BST

Yes, it works... but it doesn't open new browser window...
Here is my test page
http://www.bisiacaria.com/menutest.asp?topcat=7

Thanks in advance


Poster: Ruth
Dated: Friday June 8 2007 - 16:29:05 BST

Hi,

The first thing you have to do is get the newest version of the menu to test this.

I'm going to post to Milonic about it since I can't figure out the problem. It doesn't work now, but when I tried it yesterday with your pasted code, it did open in a new window.

Ruth

Re: target= in ListMenu


Poster: jfennell
Dated: Wednesday November 7 2007 - 4:55:05 GMT

Hello,

Was there ever a resolution to this question? I am having the same problem and my code looks to be the same. I am trying to use the listmenu in a frame of a frameset and have it update a different frame in the set. But it always updates the same frame that contains the menu. The page has a BASE target="main" tag in the HEAD section, and each list item anchor tag has target="main" specified as well. If I change the targets to "_blank" it still opens the pages in the same frame that contains the menu.

Thanks in advance,

~ Jim Fennell

Re: target= in ListMenu


Poster: Ruth
Dated: Thursday November 8 2007 - 6:02:21 GMT

Hi,

Can you give a url, please? I'm not able to find solutions if I don't have the page to test and see what's causing the problem.

Ruth

Re: target= in ListMenu


Poster: earthmanweb
Dated: Tuesday January 22 2008 - 0:41:51 GMT

I am having the same problem and do not see an answer to it here, please let us know if there is a solution for this please...

My test site is here:

http://dev2.########.com/

You will notice in the source code that many of the links in the UL of menu items have a target="_blank" attribute, but are continuing to open in the same window. I am using the ListMenu version as well. My

Thanks!
Terran


PS, here is my buildlistmenu.js contents:

Code:
fixMozillaZIndex=false; //Fixes Z-Index problem  with Mozilla browsers but causes odd scrolling problem, toggle to see if it helps
_menuCloseDelay=500;
_menuOpenDelay=170;
_subOffsetTop=2;
_subOffsetLeft=-2;
buildAfterLoad=true;

with(menuStyle=new mm_style()){
onclass="menuStyle";
offclass="menuStyle";
bordercolor="";
borderstyle="";
borderwidth=0;
fontfamily="Verdana, Tahoma, Arial";
fontsize="12px";
fontstyle="normal";
headerbgcolor="";
headercolor="";
offbgcolor="";
offcolor="#FFFFFF";
onbgcolor="";
oncolor="#FF9";
padding=6;
pagebgcolor="";
pagecolor="#FF9";
separatorcolor="#CCCCCC";
separatorsize=1;
subimage="";
subimagepadding=2;
}

with(menuStyle2=new mm_style()){
onclass="menuStyle2";
offclass="menuStyle2";
bordercolor="";
borderstyle="";
borderwidth=0;
fontfamily="Verdana, Tahoma, Arial";
fontsize="100%";
fontstyle="normal";
headerbgcolor="";
headercolor="#000000";
offbgcolor="";
offcolor="#000000";
onbgcolor="";
oncolor="#EF7B0F";
padding=4;
pagebgcolor="";
pagecolor="";
separatorcolor="#CCCCCC";
separatorsize=1;
subimage="templates/includes/milonic/arrow.gif";
subimagepadding=2;

}

with(menuStyle3=new mm_style()){
onclass="menuStyle3";
offclass="menuStyle3";
bordercolor="";
borderstyle="";
borderwidth=0;
fontfamily="Verdana, Tahoma, Arial";
fontsize="100%";
fontstyle="normal";
headerbgcolor="";
headercolor="#000000";
offbgcolor="";
offcolor="#000000";
onbgcolor="";
oncolor="#EF7B0F";
padding=4;
pagebgcolor="";
pagecolor="black";
separatorcolor="#CCCCCC";
separatorsize=1;
subimage="templates/includes/milonic/arrow.gif";
subimagepadding=2;
}

with(menuStyle4=new mm_style()){
onclass="menuStyle3";
offclass="menuStyle3";
bordercolor="";
borderstyle="";
borderwidth=0;
fontfamily="Verdana, Tahoma, Arial";
fontsize="100%";
fontstyle="normal";
headerbgcolor="";
headercolor="#000000";
offbgcolor="";
offcolor="#000000";
onbgcolor="";
oncolor="#EF7B0F";
padding=4;
pagebgcolor="";
pagecolor="black";
separatorcolor="#CCCCCC";
separatorsize=1;
subimage="templates/includes/milonic/arrow.gif";
subimagepadding=2;
}


// syntax: buildListMenu("id of list", "menu style name", "main menu properties")
buildListMenu("milonicmenu1","menuStyle","alwaysvisible=true;orientation='horizontal';position='relative';");

Re: target= in ListMenu


Poster: earthmanweb
Dated: Wednesday January 30 2008 - 10:10:42 GMT

This question was finally answered when it was reposted here:

viewtopic.php?f=10&t=9561

Cheers!
Terran