hi,
i have using the radrotator as the animation for myproject. I have putting the start, pause, next and previous button in my project. Both next and previous button work fill in ie6, ie7, ie8, mozzilla firefox and chrome. For the start and pause button i have do it by switch them that is when page load, it will be pause button and when user have click on the the pause button, it will be change to start button. the button is all fine in ie6, ie7, ie8, google chorome but not fine in firefox. anyone know how to solve this problem? here i am attach the javascript that i have use.
best regards;
sookkien
i have using the radrotator as the animation for myproject. I have putting the start, pause, next and previous button in my project. Both next and previous button work fill in ie6, ie7, ie8, mozzilla firefox and chrome. For the start and pause button i have do it by switch them that is when page load, it will be pause button and when user have click on the the pause button, it will be change to start button. the button is all fine in ie6, ie7, ie8, google chorome but not fine in firefox. anyone know how to solve this problem? here i am attach the javascript that i have use.
<script type="text/javascript"> |
var IsPostBack = false; |
function pageLoad() { |
if (IsPostBack == false) { |
StartRotator($find('<%=RadRotator1.ClientID%>'), Telerik.Web.UI.RotatorScrollDirection.Left); |
} |
} |
function StartRotator(rotator, direction) |
{ |
if (!rotator.autoIntervalID) |
{ |
rotator.autoIntervalID = window.setInterval(function() { rotator.showNext(direction); }, rotator.get_frameDuration()); |
if (divStart.style.display != "none") |
{ |
Pause.style.display = ''; |
Start.style.display = 'none'; |
divStart.className = "widget_btn_pause"; |
} |
else |
{ |
Pause.style.display = ''; |
Start.style.display = 'none'; |
divStart.className = "widget_btn_pause"; |
} |
} |
} |
function StopRotator(rotator) |
{ |
if (rotator.autoIntervalID) |
{ |
window.clearInterval(rotator.autoIntervalID); |
rotator.autoIntervalID = null; |
Pause.style.display = 'none'; |
Start.style.display = ''; |
divStart.className = "widget_btn_play"; |
div1.className = 'widget_btn_play'; |
} |
} |
</script> |
sookkien