动画扩展器
下面代码的目的是什么?我从开发人员那里得到了这个,但我不知道这个 animationExtender
正在做什么。
<asp:Panel ID="Panel2" runat="server" Width="300px" BackColor="Gold">
<div id="parentDiv">
Parent element layout
<div id="childDiv">
Child element layout</div>
</div>
</asp:Panel>
<aspext:AnimationExtender ID="Extender2" runat="server" TargetControlID="Panel2">
<Animations>
<OnHoverOver>
<Condition ConditionScript="onDivHoverOver()"></Condition>
</OnHoverOver>
<OnHoverOut >
<Condition ConditionScript="onDivHoverOut()"></Condition>
</OnHoverOut>
</Animations>
</aspext:AnimationExtender>
JavaScript 函数如下:
function onDivHoverOver() {
count = 0;
}
function onDivHoverOut() {
count++;
}
What is the purpose of below code? I got this from a developer, and I dont know what this animationExtender
is doing.
<asp:Panel ID="Panel2" runat="server" Width="300px" BackColor="Gold">
<div id="parentDiv">
Parent element layout
<div id="childDiv">
Child element layout</div>
</div>
</asp:Panel>
<aspext:AnimationExtender ID="Extender2" runat="server" TargetControlID="Panel2">
<Animations>
<OnHoverOver>
<Condition ConditionScript="onDivHoverOver()"></Condition>
</OnHoverOver>
<OnHoverOut >
<Condition ConditionScript="onDivHoverOut()"></Condition>
</OnHoverOut>
</Animations>
</aspext:AnimationExtender>
JavaScript functions are below:
function onDivHoverOver() {
count = 0;
}
function onDivHoverOut() {
count++;
}
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
诡异的。
看起来代码只是在结束时将计数设置为 0,并在鼠标移出后将计数设置为 1。
需要更多代码来确定用法。
Weird.
Looks like the code is simply setting count to 0 on over and setting count to 1 after the mouse moves out.
Need more code to determine usage.