Script: AnyLink Vertical Menu
http://www.dynamicdrive.com/dynamici...nkvertical.htm
Hello all you helpful people,
Here's my issue, and I hope you can help me.![]()
All I wanna do is use this script, and when clicking on the links, open them in a pop-up window. Sounds simple enough I know... The script works but I can't get it open in another window for some reason. Here is what I tried so far:
Now... <a href="OpenNewWindow" target="_blank" onClick="javascript:window.open('http://www.runescape.com'); return false">RuneScape</a>.... does work, when it is in the <body>, but when placed here, it does not.//Contents for menu 1
var menu1=new Array()
menu1[0]='<a href="OpenNewWindow" target="_blank" onClick="javascript:window.open('http://www.runescape.com'); return false">RuneScape</a>'
menu1[1]='<a href="http://www.zybez.com">Zybez</a>'
menu1[2]='<A HREF="http://tip.it/runescape">Tip.It</A>'
Secondly I have tried:
<A HREF="www.runescape.com" onClick="return popup(this, 'notes')">RuneScape</A> Also works in the <body> but not in this script.<SCRIPT TYPE="text/javascript">
<!--
function popup(mylink, windowname)
{
if (! window.focus)return true;
var href;
if (typeof(mylink) == 'string')
href=mylink;
else
href=mylink.href;
window.open(href, LastAlliance, 'width=400,height=200,scrollbars=yes');
return false;
}
//-->
</SCRIPT>
//Contents for menu 1
var menu1=new Array()
menu1[0]='<A HREF="www.runescape.com" onClick="return popup(this, 'notes')">RuneScape</A>'
menu1[1]='<a href="http://www.zybez.com">Zybez</a>'
menu1[2]='<A HREF="http://tip.it/runescape">Tip.It</A>'
Does anyone have any suggestions? I am open to anything. It would be most appreciated.
Thanks very much in advace.



Reply With Quote
lol


Bookmarks