< link href="StyleSheet.css" rel="stylesheet" type="text/css" / > < script > function FntClr(Redid) { if(Redid==1)document.getElementById ("lblName").className ='fntBold1'; if(Redid==2)document.getElementById ("lblName").className ='fntBold2'; if(Redid==3)document.write ("< marquee direction='right' >Jayakumar< /marquee >"); } < /script > < /head >< body > < form id="form1" runat="server" > < select onchange ="FntClr(this.value)" > < option value ="1" >Bold< /option > < option value ="2" >Italic< /option > < option value ="3" >Marquee< /option > < /select > < /form > < asp:Label ID="lblName" Text ="Jayakumar" runat ="server" >< /asp:Label >