Showing posts with label hover. Show all posts
Showing posts with label hover. Show all posts

Wednesday, March 28, 2012

How do I play the animation on control B when hovering over control A?

Hello.

When I hover over a control (in my case a menu), and I want to play the animation on a panel instead my menu, how can I do that?

This is my code so far, I just can't figure out how to change from the menu to the panel.

<asp:scriptmanager ID="Scriptmanager1" runat="server" />
<asp:Menu ID="MyMenu" runat="server" .................................. /
<div class="AnimateThis" id="AnimateThis" runat="server">
This is the text I want to play the animation on.
</div
<ajaxToolkit:AnimationExtender ID="MyAnimation" runat="server" TargetControlID="MyMenu" BehaviorID="AnimateMyText">
<Animations>
<OnHoverOver>
<FadeOut/>
</OnHoverOver>
<OnHoverOut>
<FadeIn/>
</OnHoverOut>
</Animations>
</ajaxToolkit:AnimationExtender

Hi,

Take a look at the Animation Target section of theUsing Animations walkthrough.

Thanks,
Ted


It seems I should use AminationTarget to do this. Thanks.

Monday, March 26, 2012

How do I change mouse pointer for DragPanelExtender?

Hello,

I have DetailsView inside UpdatePanel, when I hover my mouse over title it changes mouse cursor like I'm trying to type something )(

How can I prevent this or what is the best way to give that panel "draggable" look? Also how do I automatically position this window next to specific button on my HTML form?

Thanks,

It seems like you could do this by applying the CSS cursor property to the relevant parts of your page:http://www.w3.org/TR/CSS21/ui.html#cursor-props.