0
* 下面是我的代码更改RadRotator的RotatorType属性: - 但它不工作*在鼠标悬停使用JavaScript
<telerik:RadRotator ID="TestRotator" runat="server" Width="560px" Height="140px"
ScrollDuration="2000" FrameDuration="20000" ItemHeight="120" ItemWidth="520"
WrapFrames="true" Skin="Forest" SlideShowAnimation-Type="none" RotatorType="SlideShowButtons" onClientMouseover="Rotater()">
JavaScript的: -
function Rotator() {
var RadRotator = document.getElementById('<%= TestRotator.ClientId %>');
if (RadRotator.OnClientMouseOver = true){
RadRotator.style.RotatorType = "SlideShowButtons";
}
else if (RadRotator.OnClientMouseOut = false)
{
RadRotator.RotatorType="SlideShow";
}
}
感谢您reply.I我同时使用,但它都没有工作RadRotator.style.RotatorType = SlideShowButtons努力“; RadRotator.RotatorType – Mahendra 2011-12-20 07:29:53
我流下去,直到这条线RadRotator.style.RotatorType =‘SlideShowButtons’;以及在这一行它给出错误“对象不支持这个属性和方法”。 – Mahendra 2011-12-20 07:44:10