Bonjour,
thaks for your answer..
if i not think have understand what you mean..
i have actualy in my xml :
<image>
<title>name</title>
<url>image source</url>
<link>link product</link>
you mean i add in my xml ?
<description>
<image>
<title>name</title>
<url>image source</url>
<link>link product</link>
</description>
or adding it in gajascroller.jsp ?
Code:
// -------------------------------------------------------------------
// formatrssmessage()- Global function that formats a RSS entry(s) to the desired components (title, date, description etc)
// -------------------------------------------------------------------
function formatrssmessage(feedslice, showoptions, itemcontainer, linktarget){
var rssoutput=(itemcontainer=="<li>")? "<ul>\n" : "" //if "itemcontainer" is set to "<li>", define a "<ul>" tag to wrap around the result
for (var i=0; i<feedslice.length; i++){ //Loop through the entered slice of a RSS feed (1 or more entries)
var itemtitle="<a href=\"" + feedslice[i].link + "\" target=\"_blank\" class=\"titlefield\">" + feedslice[i].title + "</a>"
var itemlabel=/label/i.test(showoptions)? '<span class="labelfield">['+feedslice[i].ddlabel+']</span>' : " "
var itemdate=gfeedfetcher._formatdate(feedslice[i].publishedDate, showoptions)
var itemdescription=/description/i.test(showoptions)? "<br />"+feedslice[i].content : /snippet/i.test(showoptions)? "<br />"+feedslice[i].contentSnippet : ""
rssoutput+=itemcontainer + itemtitle + " " + itemlabel + " " + itemdate + "\n" + itemdescription + itemcontainer.replace("<", "</") + "\n\n"
}
rssoutput+=(itemcontainer=="<li>")? "</ul>\n" : ""
return rssoutput
}
i have test this, it will add loading image :
Code:
var itemtitle="<a href=\"" + feedslice[i].link + "\" target=\"_blank\" class=\"titlefield\"><img src=\""+gfeedfetcher_loading_image+"\" border=\"0\" align=\"absmiddle\" /> " + feedslice[i].title + "</a>"
it is at this place where we place image <description> ?
or adding in my xml something like this : <description><![CDATA[ to have facility to adding it in script..
see in this link what working (in bottom of page ) : http://www.reparateur-pc-portable.fr
thanks
Bookmarks