PDA

View Full Version : Is this possible? please help



jcastillo
05-25-2012, 03:53 PM
1) Script Title:
Step Carousel Viewer v1.9
2) Script URL (on DD):
http://www.dynamicdrive.com/dynamicindex4/stepcarousel.htm
3) Describe problem:
Was wondering how can i add a refresh to this script. Im using the onslide:function and when i scroll through different panels. Everything works on the first scroll but when you come back to the panel from a different one some items are broken. If you refresh page it works perfectly. I was wondering is there a way to add a function that when you click to go to a panel that it auto refreshs just the content on panel on click? please help. here is my onslide code
onslide:function()
{
if (panel_start == 1)
{
$("#maincontent").load('/content/slide1.html');
return false;
}
if (panel_start == 2)
{
$("#maincontent").load('/content/slide2.html');
return false;
}
else if (panel_start == 3)
{
$("#maincontent").load('/content/slide3.html')
return false;
}

}
})