SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 208 | Next

Robin Pars, Laurence Moroney, and John Grieb

"Foundations of ASP.NET AJAX"

The ValuesScript property usually contains a comma-separated
list of values that resemble a JavaScript array. The animation then goes through these values
and applies them to the indicated property/propertyKey properties for the duration of
the animation. To better understand this, look at the following code segment:

TargetControlID="Image1">



PropertyKey="width"ValuesScript="['700', '600', '500',
'400', '300']"/>




In this case, five numbers will be the different width values for the image during the
animation, but it can be any width value within the visible screen size. The end result will
be very much like the previous example, but instead, the image will shrink in set time
intervals (2 seconds in this case because there are five items in the animation with a total
duration of 10 seconds) as opposed to the continuous shrinking you saw using length
animation.


Pages:
196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220