Results 1 to 2 of 2

Thread: HV Menu v5.5 question.

  1. #1
    Join Date
    May 2007
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default HV Menu v5.5 question.

    1) Script Title: HV Menu v5.5

    2) Script URL (on DD):
    http://www.dynamicdrive.com/dynamici...menu/index.htm
    3) Describe problem:
    I want to add a target to the links in the menu:
    ex... to open a window in a new browser

    target=_blank


    or even to open it up in an iframe.
    I'm unsure of the scrpit used and was hoping that someone could help guide me to the right direction for it.

    Thanks in advance.
    Last edited by bill1082; 05-10-2007 at 10:54 PM.

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Modified from the demo exmplmenu_var.js file:

    Code:
    Menu2_1_1=new Array("CNN","javascript:window.open('http://www.cnn.com')","",0,20,150);
    Will open in a new window (it's like target="_blank"). To target a named frame or named iframe:

    Code:
    Menu2_1_1=new Array("CNN","javascript:window.open('http://www.cnn.com','frame_name')","",0,20,150);
    It's like:

    target="frame_name"
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

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
  •