O'Reilly logo

ASP.NET jQuery Cookbook - Second Edition by Sonal Aneel Allana

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Animating the alt text of the AdRotator control

The AdRotator control is used to display advertisement banners on web pages. The control loads a new banner each time the page is refreshed. In this demonstration, let's enhance the AdRotator control to display the alt text of an ad banner with the sliding animation. The constructs used in this example are as follows:

Construct

Type

Description

$("#identifier")

jQuery selector

This selects an element using its ID

$("html_tag")

jQuery selector

This selects all elements with the specified HTML tag

.addClass()

jQuery method

This adds the specified CSS class to each matched element

.animate()

jQuery method

This performs a custom animation on the specified CSS properties

.css() ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required