Results 1 to 3 of 3

Thread: Open Links in New Window

  1. #1
    Join Date
    Jul 2005
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Open Links in New Window

    I want to be able to use this feature but I'm having trouble. With Open links in new window FF1+ IE5+ Opr7+ , I don't want the toggle and when I remove the BODY section, I get an error. With Open offsite links in new window FF1+ IE5+ , I get text added to the site - most of which I can remove but am still left with an >. Any help with this would be greatly appreciated.

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

    Default

    The only line that references the checkbox in the former script is:
    Code:
    if (document.targetform.targetnew.checked)
    You can remove this or edit it to use an alternative source. Make sure if removing it that you change
    Code:
    hyperlinks(true)
    to the value you want on startup (true for all links in new window, false for all links in same window).

    As for the second one, the only HTML it should output is this:
    Code:
    if (!auto)
    document.write('<form name="targetmain"><input type="checkbox" name="targetnew" checked onClick="dynamiclink()">Open off-site links in new window</form>')
    You can stop this from happening by setting auto to 0 here:
    Code:
    //2)Automatically open offsite links in new window? (1=yes, 0 will render a checkbox for manual selection)
    var auto=1
    Oh, and the DD credit, of course.
    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!

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

    Default

    Thanks Twey! I'll give it a shot later when I have more time. I really appreciate your help.

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
  •