-----------------------------------------------------------

New Message on MumbaiUserGroup

-----------------------------------------------------------
From: johnsonsmithy2k2
Message 2 in Discussion

Hey Bobby!     You can achive by using DialogHelper object to change the face 
or color of the font.  lemmi explain with code snippet, First Declare the 
Object ID by following one: <!--Create the Dialog Helper Object-->
 <OBJECT ID=dlgHelper CLASSID="clsid:3050f819-98b5-11cf-bb82-00aa00bdce0b" 
WIDTH="0px" HEIGHT="0px"></OBJECT>   next, call dlgHelper.ChooseColorDlg() to 
get color dialog. please have a look at the following URL for DialogHelper 
Object. 
http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/reference/objects/dialoghelper.asp
   See the following code snippets for Showthe colordialog   function 
callColorDlg(sColorType){ if (sInitColor == null) 
 //display color dialog box
 var sColor = dlgHelper.ChooseColorDlg();
else
 var sColor = dlgHelper.ChooseColorDlg(sInitColor);
 //change decimal to hex
 sColor = sColor.toString(16);
 //add extra zeroes if hex number is less than 6 digits
if (sColor.length < 6) {
   var sTempString = "000000".substring(0,6-sColor.length);
   sColor = sTempString.concat(sColor);
}
 //change color of the selected text
 document.execCommand(sColorType, false, sColor);
 sInitColor = sColor;
}   Please call this function on your Drop Down list event., like 
callColorDlg('ForeColor').   For more informations, Please take a look at the 
following URL. 
http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/reference/colors/colors.asp
  - Color Table Reference   Thanx, Smith    

-----------------------------------------------------------

To stop getting this e-mail, or change how often it arrives, go to your E-mail 
Settings.
http://groups.msn.com/MumbaiUserGroup/_emailsettings.msnw

Need help? If you've forgotten your password, please go to Passport Member 
Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help

For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact

If you do not want to receive future e-mail from this MSN group, or if you 
received this message by mistake, please click the "Remove" link below. On the 
pre-addressed e-mail message that opens, simply click "Send". Your e-mail 
address will be deleted from this group's mailing list.
mailto:[EMAIL PROTECTED]

Reply via email to