View Full Version : Anylink help

06-29-2008, 06:00 AM
1) Script: Anylink Drop down menu
2) Anylink (http://www.dynamicdrive.com/dynamicindex1/dropmenuindex.htm)
Alright I'm trying to figure out how to have Anylinks drop down menu's links open up the page to a Contentwrapper or frame. I've tried to put targets in to point it, I've tried the onclick in the menus but I can't seem to get it to work.

menu1[1]='<a href="http://www.freewarejava.com" target="content">Medium Pressure</a>'

Even tried adding this in but doesn't work any chance any of you guys can help me..I just don't want it to open up a new window everytime...
<onClick="document.location.href='Main Page.html';">Medium Pressure</a>'

06-29-2008, 07:56 AM
Warning: Please include a link to the DD script in question in your post. See this thread (http://www.dynamicdrive.com/forums/showthread.php?t=6) for the proper posting format when asking a question.

06-29-2008, 04:05 PM
Sorry about that.

07-02-2008, 02:51 AM
Adding target as you have above should work. For example, the below would open the menu item in a new window:

<a href="http://www.freewarejava.com" target="_new">Medium Pressure</a>

Make sure the HTML code:

<a href="http://www.freewarejava.com" target="content">Medium Pressure</a>

on its own, directly added to the page as HTML works the way you want it to (ie: opens Freewarejava.com in the FRAME called "content"). If it does, then moving the above code into the script should work just the same, as the script simply outputs that HTML as is.