RevCMS topstories.

shaheemz

Member
Feb 4, 2012
30
5
Hey i want my revcms to show 3 topstories instead of 5.
How can i do this ? Please help!

The mango.js code:



Code:
var mango={"news":{totalStories:0,currentStory:2,"init":function(){var tsim=cimagesLocation+"ase/ts/"+news[1][1];$("#top-story").css("background-image",'url('+tsim+')');$("#top-story").html("<a href=\"index.php?url=news&id="+news[1][0]+"\">"+news[1][3]+"</a><div style=\"height:10px;\"></div><p class=\"snippet\">"+news[1][2]+"<br><br><a href=\"index.php?url=news&id="+news[1][0]+"\">Read More &raquo;</a></span>");mango.news.totalStories=news.length;setTimeout('mango.news.cycleNews()',6000);},"cycleNews":function(){if(mango.news.currentStory==mango.news.totalStories)
{mango.news.currentStory=1;}
var tsim=cimagesLocation+"ase/ts/"+news[mango.news.currentStory][1];$("#top-story").css("background-image",'url('+tsim+')');$("#top-story").html("<a href=\"index.php?url=news&id="+news[mango.news.currentStory][0]+"\">"+news[mango.news.currentStory][3]+"</a><div style=\"height:10px;\"></div><p class=\"snippet\">"+news[mango.news.currentStory][2]+"<br><br><a href=\"index.php?url=news&id="+news[mango.news.currentStory][0]+"\">Read More &raquo;</a></span>");mango.news.currentStory++;setTimeout('mango.news.cycleNews()',3000);},},}
 

Users who are viewing this thread

Top