Results 1 to 5 of 5

Thread: HV menu/How can I open links in a new window?

  1. #1
    Join Date
    Jan 2005
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default HV menu/How can I open links in a new window?

    hi,

    I want to open a link of the hv menu in a new window. How do I have
    to do this. There is nothing about it in the config.htm or anywhere else.
    Please help me

    Bet regards

    bernd

  2. #2
    Join Date
    Jan 2005
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Change the line that says:

    var TargetLoc="";

    to say:

    var TargetLoc="_blank";

  3. #3
    Join Date
    Dec 2004
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    This is my problem too. Unfortunately, I only want some of my menu items to open in a new window and changing to var TargetLoc="_blank"; would change every menu link. Is there a way to only have the ones you want opening in another window?

    Sue

  4. #4
    Join Date
    Feb 2006
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Working on the same thing...

    I think you have to use some javascript. I did this once a while ago with hvmenu, but just have to figure it out again. Will post when I get it working right. It will be something approx. like this:

    Menu4_4=new Array("Trading Calendar","javascript:href='http://www.thectr.com/mmvi/cadent/index.php' target='_blank';","",0);

  5. #5
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Menu4_4=new Array("Trading Calendar","javascript:href='http://www.thectr.com/mmvi/cadent/index.php' target='_blank';","",0);
    What the heck is that?! Try:
    Code:
    Menu4_4=new Array("Trading Calendar","javascript:window.open('http://www.thectr.com/mmvi/cadent/index.php');","",0);
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends franšais | entiendo espa˝ol | t˘i Ýt hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •