RSS to HTML links |
RSS to HTML links |
Kenny |
Mar 21 2007, 08:10 PM
Post
#1
|
Group: Members Posts: 5 Joined: 21-March 07 Member No.: 2,285 |
Hey, we're trying to work out an RSS feed on a sports talk website, and we're having some trouble with the links, mostly because we're using IFrames...Heres the link
http://sports-nation.net/SPORTS-NATION/INDEX.html When you go to "Current News" and click on the link, it stays within that Iframe...I know that you can go in and add the "_Parent" to the link, but is there anything I can do so that I don't have to update the links with the "_Parent" every time the Feed is updated? We're using the RSS2HTML converter, so if you know a better converter that has this option in there, that'd be great too. Thanks in advance guys. |
Midian |
Mar 22 2007, 10:30 AM
Post
#2
|
Group: Members Posts: 4 Joined: 21-March 07 Member No.: 2,280 |
function externalLinks()
{ if (!document.getElementsByTagName) return; var anchors = document.getElementsByTagName("a"); for (var i=0; i<anchors.length; i++) { var anchor = anchors[i]; if (anchor.getAttribute("href")) anchor.target = "_parent"; } } window.onload = externalLinks; This will automatically set all links to have a target of _parent. |
Lo-Fi Version | Time is now: 27th April 2024 - 02:47 AM |