Results 1 to 3 of 3

Thread: Anylink CSS Menu (new window)

  1. #1
    Join Date
    Dec 2007
    Location
    Mississauga
    Posts
    166
    Thanks
    13
    Thanked 0 Times in 0 Posts

    Default Anylink CSS Menu (new window)

    1) Script Title: AnyLink CSS Menu

    2) Script URL (on DD): http://dynamicdrive.com/dynamicindex1/anylinkcss.htm

    3) Describe problem:

    I have the drop down menu running great on a site I worked on, problem now is the client wants to have the links from the drop down menu to open in a new browser window and I threw think line together...

    HTML Code:
    menu3[1]='<a href="http://www.link.com", "_blank">The Link</a>'
    And the link still opens in the main browser window.

    Does anyone have any input as to how to get it in a new window? I can imagine this will be such a simple fix.

    Way it always goes.


    -- Nate

  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

    That's not AnyLink CSS Menu, it looks more like AnyLink Drop Down Menu:

    http://dynamicdrive.com/dynamicindex1/dropmenuindex.htm

    Either way, you have the syntax all mixed up. If it is AnyLink Drop Down Menu, the code would be like:

    Code:
    menu3[1]='<a href="http://www.link.com" target="_blank">The Link</a>'
    No comma, and with a formal declaration of the target attribute, just like in regular HTML.

    So we can at least determine which script you are using, and hopefully sort out any other problems, if you need more help:

    Please post a link to the page on your site that contains the problematic code so we can check it out.
    - John
    ________________________

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

  3. The Following User Says Thank You to jscheuer1 For This Useful Post:

    nate51 (05-05-2008)

  4. #3
    Join Date
    Dec 2007
    Location
    Mississauga
    Posts
    166
    Thanks
    13
    Thanked 0 Times in 0 Posts

    Default

    jscheuer,

    That fixed it perfectly, sad part is just like I said I knew it would be easy I cannot believe I forgot that.

    Thanks a bunch!


    -- Nate

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
  •