target= in ListMenu

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
theredbaron76
Beginner
Beginner
Posts: 5
Joined: Thu Jun 07, 2007 3:09 pm

target= in ListMenu

Post by theredbaron76 »

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: Select all

  <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://websites.milonic.com/abw.bisiacaria.com" target="_blank">Associazione ABW</a></li>
<ul>
<li><a href="http://websites.milonic.com/abw.bisiacaria.com/iscrizione/" target="_blank">Iscriviti ad ABW!</a></li>
<li><a href="http://websites.milonic.com/abw.bisiacaria.com/convenzioni/" target="_blank">Convenzioni ABW</a></li>
</ul>
<li><a href="http://websites.milonic.com/media.bisiacaria.com" target="_blank">MediaStreaming</a></li>
<li><a href="http://websites.milonic.com/trovacasa.bisiacaria.com" target="_blank">TrovaCasa di Bisiacaria.com</a></li>
<ul>
<li><a href="http://websites.milonic.com/trovacasa.bisiacaria.com/signup.asp" target="_blank">Iscriviti al TrovaCasa!</a></li>
<li><a href="http://websites.milonic.com/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>
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

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
theredbaron76
Beginner
Beginner
Posts: 5
Joined: Thu Jun 07, 2007 3:09 pm

Post by theredbaron76 »

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
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

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
jfennell
Beginner
Beginner
Posts: 1
Joined: Sat Jun 15, 2002 10:18 pm
Location: Massachusetts, USA
Contact:

Re: target= in ListMenu

Post by jfennell »

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
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Re: target= in ListMenu

Post by Ruth »

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
earthmanweb
Beginner
Beginner
Posts: 7
Joined: Tue Jan 08, 2008 9:23 am

Re: target= in ListMenu

Post by earthmanweb »

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: Select all

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';");
earthmanweb
Beginner
Beginner
Posts: 7
Joined: Tue Jan 08, 2008 9:23 am

Re: target= in ListMenu

Post by earthmanweb »

This question was finally answered when it was reposted here:

viewtopic.php?f=10&t=9561

Cheers!
Terran
Post Reply