macraedavis
11-28-2008, 06:57 PM
Working with the Pausing Up-down scroller
http://www.dynamicdrive.com/dynamicindex17/rsspausescroller/index.htm
and tweaked to fit my needs. It works correctly in Chrome, Firefox and Safari. But the hyperlink isn't there in IE and Opera.
My rss feed is description (which is a jpeg) and link only. the idea is that the jpegs will scroll and by clicking on the jpeg you will open an new window to the page of the link. below is the code from the rsspausescroller.js file that is causing me problems.
One other note that I found interesting - I had to remove the closing '>' of the 'a href' line, otherwise the > appeared in the scroller. Leaving the '>' in the code did not help IE with the lack of link.
The location is http://secretswall.com/scroller/scroller.html and, of course, all other relevant files are located in the scroller directory.
function formatrssmessage(divid, msgnumber, linktarget, logicswitch){
var rsscontent=rsscontentdata[divid][msgnumber]
var linktitle='<span class="rsstitle"><a href="'+unescape(rsscontent.link)+'" target="'+linktarget+'">'+unescape(rsscontent.title)+'</a></span>'
var description='<div class="rssdescription"><a href="'+unescape(rsscontent.link)+unescape(rsscontent.description)+'</a></div>'
var feeddate='<span class="rssdate">'+unescape(rsscontent.date)+'</span>'
if (logicswitch.indexOf("description")!=-1 && logicswitch.indexOf("date")!=-1) //Logic switch- Show description and date
return linktitle+"<br />"+feeddate+description
else if (logicswitch.indexOf("description")!=-1) //Logic switch- Show just description
return description
else if (logicswitch.indexOf("date")!=-1) //Logic switch- Show just date
return linktitle+"<br />"+feeddate
else
return linktitle //Default- Just return hyperlinked RSS title
}
http://www.dynamicdrive.com/dynamicindex17/rsspausescroller/index.htm
and tweaked to fit my needs. It works correctly in Chrome, Firefox and Safari. But the hyperlink isn't there in IE and Opera.
My rss feed is description (which is a jpeg) and link only. the idea is that the jpegs will scroll and by clicking on the jpeg you will open an new window to the page of the link. below is the code from the rsspausescroller.js file that is causing me problems.
One other note that I found interesting - I had to remove the closing '>' of the 'a href' line, otherwise the > appeared in the scroller. Leaving the '>' in the code did not help IE with the lack of link.
The location is http://secretswall.com/scroller/scroller.html and, of course, all other relevant files are located in the scroller directory.
function formatrssmessage(divid, msgnumber, linktarget, logicswitch){
var rsscontent=rsscontentdata[divid][msgnumber]
var linktitle='<span class="rsstitle"><a href="'+unescape(rsscontent.link)+'" target="'+linktarget+'">'+unescape(rsscontent.title)+'</a></span>'
var description='<div class="rssdescription"><a href="'+unescape(rsscontent.link)+unescape(rsscontent.description)+'</a></div>'
var feeddate='<span class="rssdate">'+unescape(rsscontent.date)+'</span>'
if (logicswitch.indexOf("description")!=-1 && logicswitch.indexOf("date")!=-1) //Logic switch- Show description and date
return linktitle+"<br />"+feeddate+description
else if (logicswitch.indexOf("description")!=-1) //Logic switch- Show just description
return description
else if (logicswitch.indexOf("date")!=-1) //Logic switch- Show just date
return linktitle+"<br />"+feeddate
else
return linktitle //Default- Just return hyperlinked RSS title
}