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