Prev | Current Page 555 | Next

Rob Cameron and Dale Michalk

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

NET A JAX CONTROLS AND EXTENDERS
ControlsBook2Lib.Ch09.HighlightedHyperlink.initializeBase(this, [element]);
this._highlightCssClass = null;
this._nohighlightCssClass = null;
}
// Create the prototype for the control
ControlsBook2Lib.Ch09.HighlightedHyperlink.prototype =
{
initialize : function()
{
ControlsBook2Lib.Ch09.HighlightedHyperlink.
callBaseMethod(this, 'initialize');
this._onMouseOver = Function.createDelegate(this, this._onMouseOver);
this._onMouseOut = Function.createDelegate(this, this._onMouseOut);
$addHandlers(this.get_element(),
{ 'mouseover' : this._onMouseOver,
'mouseout' : this._onMouseOut },
this);
this.get_element().className = this._nohighlightCssClass;
},
dispose : function()
{
$clearHandlers(this.get_element());
ControlsBook2Lib.Ch09.HighlightedHyperlink.callBaseMethod(this, 'dispose');
},
// Event delegates
_onMouseOver : function(e)
{
if (this.get_element() && !this.get_element().disabled)
{
this.get_element().className = this._highlightCssClass;
}
},
_onMouseOut : function(e)
{
if (this.get_element() && !this.get_element().disabled)
{
this.get_element().className = this._nohighlightCssClass;
}
},
CHAPTER 9 ?–  A SP.NET A JAX C ONTROLS AND EXTENDERS 437
// Control properties
get_highlightCssClass : function()
{
return this.


Pages:
543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567