Prev | Current Page 468 | Next

Rob Cameron and Dale Michalk

"Pro ASP.NET 3.5 Server Controls and AJAX Components"

gif');" onmouseout=
"__Image_Swap('ctl00$ControlsBookContent$image1',
'/ControlsBook2Web/Ch08/ex1.gif');">id="ctl00_ControlsBookContent_image1" src="ex1.gif" style="border-width:0px;" />
onmouseover="__Image_Swap('ctl00$ControlsBookContent$image2',
'/ControlsBook2Web/Ch08/ex2_selected.gif');" onmouseout=
"__Image_Swap('ctl00$ControlsBookContent$image2',
'/ControlsBook2Web/Ch08/ex2.gif');">"ctl00$ControlsBookContent$image2"
id="ctl00_ControlsBookContent_image2" src="ex2.gif" style="border-width:0px;" />

At the bottom of the HTML document is the code to preload the images. It creates the
Image JavaScript object and sets the src attribute to complete its task. One script block is emitted
for each control to initialize its images: