Results 1 to 3 of 3

Thread: Advanced RSS Ticker - Open in new window?

  1. #1
    Join Date
    Sep 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Advanced RSS Ticker - Open in new window?

    1) Script Title: Advanced RSS Ticker (Ajax invocation)

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...ajax/index.htm

    3) Describe problem: It's not really a problem because the tool works exactly the way I need it to. I just need help on a slight modification. The RSS links open in the current page instead of opening a new page.

    I've narrowed it down to this line:
    var linktitle='<div class="rsstitle"><a href="'+this.link[this.pointer]+'">'+this.title[this.pointer]+'</a></div>'
    I assume somewhere in that bolded part (probably at the tail end of it) has to enter the target=_blank statement to open the link onto a new page. I've tried all of the different syntax I can come up with and no luck.

    Have any ideas on a quick fix?

    Thank you.

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Try this (changes in red):

    Code:
    var linktitle='<div class="rsstitle"><a href="'+this.link[this.pointer]+'" target="_new">'+this.title[this.pointer]+'</a></div>'
    DD Admin

  3. #3
    Join Date
    Sep 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Thumbs up

    Quote Originally Posted by ddadmin View Post
    Try this (changes in red):

    Code:
    var linktitle='<div class="rsstitle"><a href="'+this.link[this.pointer]+'" target="_new">'+this.title[this.pointer]+'</a></div>'
    SUCCESS

    Immediately after you posted that I knew where I went wrong. I was trying to put it before the last quote instead of after it.

    Thank you so much

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
  •