Results 1 to 9 of 9

Thread: HV Menu v5.5 - launching links in new window

  1. #1
    Join Date
    Feb 2005
    Posts
    54
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question HV Menu v5.5 - launching links in new window

    Howdy all,

    Is it possible to launch all links from the HV Menu v5.5 in a new window? I tried adding the "_blank" tag link into each of the links in the exmplmenu_var.js code, but that didn't work.

    Here's an example from my exmplmenu_var.js:

    Menu8_1=new Array("CCIA Home Page","http://ccia/","",0,20,150);

    What could I add to either the js code or the main HTML code that would cooperate with this script and launch the "http://ccia/" link in a new window from my menu?



    Thanks.

  2. #2
    Join Date
    Aug 2004
    Location
    Brighton
    Posts
    1,563
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Hiya - please read fully the "config.htm" file which comes in the zip. It explains how to target frames.

    Specifically,
    Code:
     var DocTargetFrame="_blank";
    Play around with the variables in config.htm until it works.

    cr3ative
    A retired member, drop me a line through my site if you'd like to find me!
    cr3ative media | read the stickies

  3. #3
    Join Date
    Feb 2005
    Posts
    54
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks for the reply cr3ative, but that didn't work for me... I checked that line in the exmplmenu_var.js script, but it's still launching pages in the same window, and not opening a new browser window like I'm trying to get it to do... any other thoughts/suggestions?

    I tried it as both:

    var DocTargetFrame="_blank";
    var DocTargetFrame='_blank';

    ...but neither worked...

  4. #4
    Join Date
    Feb 2005
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Use this code for opening frame in a separate window:

    Menu1_1=new Array("Name of URL","javascript:window.open(URL.htm);","",);

  5. #5
    Join Date
    Mar 2005
    Posts
    16
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I tried that also and it doesn't work.

  6. #6
    Join Date
    Mar 2005
    Posts
    16
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I tried this code and it works.

    "javascript:window.open('http://www.yoursite.com','yourtitle',config='height=400,width=600')"

    You can add whatever configurations you want after config=

    Hope this helps!

  7. #7
    Join Date
    Mar 2005
    Posts
    16
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Actually go here http://www.bellaonline.com/articles/art29105.asp

    You don't have to use the config= command and each feature has to be enclosed in a single quote.
    ex. 'height=600,width=400','resizable=yes',scrollable=no'

  8. #8
    Join Date
    Feb 2005
    Posts
    54
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks all,

    I was also able to accomplish this with the following string:

    Menu4_4_1=new Array("Test","javascript:NewWin=window.open(\"http://www.dynamicdrive.com\",\"NWin\");window[\"NewWin\"].focus()","",0,20,125);

    I appreciate all the help.

    - i

  9. #9
    Join Date
    Aug 2005
    Location
    Krakow, Poland
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Hi everybody
    I used this:
    Quote Originally Posted by johnnyi

    Menu4_4_1=new Array("Test","javascript:NewWin=window.open(\"http://www.dynamicdrive.com\",\"NWin\");window[\"NewWin\"].focus()","",0,20,125);
    but the mew window opens without address bar... what should I change to have link open in new window with address?

    thanks in advance

    regards

    Maciej

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
  •