For IE the property you need is .className and for FF you need .class
Hope that helps
Brian
Laptop Toshiba wrote:
<INPUT class="boton800x600" id="Button3" tabIndex="4"
type="button" value="Modificar" name="Button2">
Hello Michael, can you help me about how I can change the
attribute "class" dinamic in _javascript_ on this control
I try with
document.getElementById("Button2").CssClass = "botonotro"; //but
don't work
I try too with
document.getElementById("Button2").class = "botonotro"; //but
don't work
the code of "botonotro" and "boton800x600" I think don't
important, both believe to Styles.css
.boton800x600
{
font-size: 10pt;
z-index: 107;
left: 136px;
border-left:
gray thin
solid;
width: 128px;
color: black;
border-bottom: gray thin
solid;
font-family:
tahoma;
position:
absolute;
top: 296px;
height: 24px;
background-color: fuchsia;
}
.botonotro
{
font-size:
10pt;
z-index: 107;
left: 136px;
border-left:
gray thin
solid;
width: 70px;
color: black;
border-bottom: gray thin
solid;
font-family:
tahoma;
position:
absolute;
top: 296px;
height: 10px;
background-color: fuchsia;
}
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ajax.NET Professional" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/ajaxpro
The latest downloads of Ajax.NET Professional can be found at http://www.ajaxpro.info/
Don't forget to read my blog at http://weblogs.asp.net/mschwarz/
The open source project is now located at
http://www.codeplex.com/Wiki/View.aspx?ProjectName=AjaxPro -~----------~----~----~----~------~----~------~--~---
|