Código:
¿Cómo hago para acceder al valor de la variable selected?. Gracias por adelantado. Saludos. TextEditor.Button = {}; function Button_constructor ( objid , img_normal , img_mouseover , title ) { var sel; var root = "Includes/Scripts/TextEditor/Images/"; var obj = null; obj = document.getElementById(objid); obj.title = title; obj.src = root+img_normal; this.innerObj = obj; this.selected = true; function change_cursor(obj) { try { obj.style.cursor = "pointer"; //MOZILLA } catch (ex) { obj.style.cursor = "hand"; //IEX } } function obj_onmouseover ( ) { change_cursor(obj); if ( !this.selected ) obj.src = root+img_mouseover; } function obj_onmouseout ( ) { if ( !this.selected ) obj.src = root+img_normal; } obj.onmouseover = obj_onmouseover; obj.onmouseout = obj_onmouseout; } TextEditor.Button = Button_constructor;