1) Script Title: featured content slider 2.4
2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...tentslider.htm
3) Describe problem: I have my slider set up to use the external list of contents which in my case are four png chart imagess. The slider is working fine and rotates through my four charts.
you can see the current slider which is basically a widget here:
http://www.futurescloud.com/widgets/...x-aud-rtw.html
I need help using the "onChange" function to instruct the slider to go out and get fresh contents on each rotation since the chart images are actually being updated each minute and I want the slider always to show the latest availabe chart, not the one it first found maybe a few minutes earlier.
Using the example provided I got the idea to use the command "else if (previndex==3)" like this
<script type="text/javascript">
featuredcontentslider.init({
id: "slider-forex-aud", //id of main slider DIV
contentsource: ["ajax", "/../../futurescloud-content/charts-forex-aud-rtw.htm"], //Valid values: ["inline", ""] or ["ajax", "path_to_file"]
toc: "markup", //Valid values: "#increment", "markup", ["label1", "label2", etc]
nextprev: ["Previous", "Next"], //labels for "prev" and "next" links. Set to "" to hide.
enablefade: [true, 0.1], //[true/false, fadedegree]
autorotate: [true, 10000], //[true/false, pausetime]
onChange: function(previndex, curindex){
if (previndex==curindex) //if two indices point to the same slide (page first loads)
return //do nothing
else if (previndex==3)
--- need something to refresh the contents here
}
})
</script>
Could you please tell me what code I can insert to force the content slider to go out and retrieve the latest versions of the same four chart images by this method
If this method will not work can I refresh contents per rotation some other way?
Thank you for any assistance,
pixelrow
for your reference this is the content of the external file describing the 4 divs
<div class="contentdiv">
<a href="http://www.futurescloud.com/forex/" target="_blank"><img src="http://www.minicharts.mobi/AUD-CAD-300.png" alt="Real-Time FOREX Chart AUD-CAD
Click for the latest FOREX News, Opinions & Numbers at FuturesCloud.com" />
</div>
<div class="contentdiv">
<a href="http://www.futurescloud.com/forex/" target="_blank"><img src="http://www.minicharts.mobi/AUD-CHF-300.png" alt="Real-Time FOREX Chart AUD-CHF
Click for the latest FOREX News, Opinions & Numbers at FuturesCloud.com" />
</div>
<div class="contentdiv">
<a href="http://www.futurescloud.com/forex/" target="_blank"><img src="http://www.minicharts.mobi/AUD-JPY-300.png" alt="Real-Time FOREX Chart AUD-JPY
Click for the latest FOREX News, Opinions & Numbers at FuturesCloud.com" />
</div>
<div class="contentdiv">
<a href="http://www.futurescloud.com/forex/" target="_blank"><img src="http://www.minicharts.mobi/AUD-USD-300.png" alt="Real-Time FOREX Chart AUD-USD
Click for the latest FOREX News, Opinions & Numbers at FuturesCloud.com" />
</div>



Reply With Quote

Bookmarks