Click to See Complete Forum and Search --> : drop-down open new window help
tconey
03-23-2003, 03:16 PM
I'm configuring HV Menu- by Ger Versluis for use at my site and would like to have the links open in a new window - a plain ol' everyday new browser window. All the new window scripts I've seen seem to be one-url-specific and I'll have more than a hundred. Any ideas on an overall 'all links open a new window' addition to his script?
The menu link info looks like this:
Menu2=new Array("News","blank.htm","",2);
Menu2_1=new Array("General","blank.htm","",5,20,150);
Menu2_1_1=new Array("SOD","http://www.southern-oregon-directory.com","",0,20,150);
So the actual link to click is third level down (Menu2_1_1)
Need more info, or is this enough?
Thanks, Tim
tconey
03-24-2003, 04:14 AM
No one can help with this? Really? Is it because I didn't write the script myself, or is it so simple that folks are laughing at me?
...sigh...
Tim again
khaki
03-24-2003, 06:52 PM
Hi Tim...
Changing that menu is not just some quick mod... it will require altering the array (maybe many arrays... who knows).
Maybe you can create a redirect page and carry some variables in the querystring to send it off to the proper page for each link (yikes... what a hack that would be! lol).
or...
ask the author.
or...
well... I don't know what else.
I'm not sure that you will find someone ambitious enough to want to tackle this for you (but if they do... it will open the door to many such scripts with the same limitation).
Good luck (but don't get your hopes up)...
k
tconey
03-24-2003, 09:32 PM
[QUOTE]Originally posted by khaki
[B]Hi Tim...
<a lil snip>
or...
ask the author.
*************
I did (sigh...), no response.
Since posting my question, I noticed in the configuration instructions that he said:
" Can also be used to execute javascript statements. For instance when you want the link to open in the top window use "javascript:top.document.location.href='Link.htm';"
You can in fact start a whole script when the element is clicked with the help of javascript:. "javascript:{your script; another function;}" "
and he did so in his example:
" Menu5=new Array("Other","javascript:top.location.href='blank.htm'","",1);
Menu5_1=new Array("Author\'s Site","http://www.burmees.nl/","",0,20,140); "
I tried substituting 'blank' for 'top' hoping it would emulate a TARGET command, but it caused an error. (ignore his 'blank.htm' - it's merely a way to have an unclickable non-link in the menu - no relation to TARGET)
Everything I've tried causes an error. darn it. Thanks for trying.
Tim