Revision 20,
1.3 KB
checked in by niltonneto, 17 years ago
(diff) |
Inclusão do módulo Mensageiro Instantâneo no CVS.
|
-
Property svn:eol-style set to
native
-
Property svn:executable set to
*
|
Rev | Line | |
---|
[20] | 1 | var im_conf_font = { |
---|
| 2 | |
---|
| 3 | content : null, |
---|
| 4 | |
---|
| 5 | "get_element" : function() |
---|
| 6 | { |
---|
| 7 | var _document = document.getElementById(im_win.chat_pJid + '_edita'); |
---|
| 8 | this.content = _document.contentWindow.document.getElementsByTagName('body').item(0); |
---|
| 9 | |
---|
| 10 | }, |
---|
| 11 | |
---|
| 12 | "changeFont" : function(nameFont) |
---|
| 13 | { |
---|
| 14 | this.get_element(); |
---|
| 15 | this.content.style.fontFamily = nameFont; |
---|
| 16 | this.content.innerHTML = this.content.innerHTML; |
---|
| 17 | im_win.hideFontNameSelection(); |
---|
| 18 | }, |
---|
| 19 | |
---|
| 20 | "changeSizeFont" : function(SizeFont) |
---|
| 21 | { |
---|
| 22 | this.get_element(); |
---|
| 23 | this.content.style.fontSize = SizeFont; |
---|
| 24 | this.content.innerHTML = this.content.innerHTML; |
---|
| 25 | im_win.hideFontSizeSelection(); |
---|
| 26 | }, |
---|
| 27 | |
---|
| 28 | "changeFontColor" : function(ColorFont) |
---|
| 29 | { |
---|
| 30 | this.get_element(); |
---|
| 31 | this.content.style.color = ColorFont; |
---|
| 32 | this.content.innerHTML = this.content.innerHTML; |
---|
| 33 | im_win.hideFontColorSelection(); |
---|
| 34 | }, |
---|
| 35 | |
---|
| 36 | "changeFontStyle" : function(StyleFont) |
---|
| 37 | { |
---|
| 38 | this.get_element(); |
---|
| 39 | if(StyleFont == "bold") |
---|
| 40 | this.content.style.fontWeight = "bold"; |
---|
| 41 | else{ |
---|
| 42 | this.content.style.fontWeight = "normal"; |
---|
| 43 | this.content.style.fontStyle = StyleFont; |
---|
| 44 | } |
---|
| 45 | this.content.innerHTML = this.content.innerHTML; |
---|
| 46 | im_win.hideFontStyleSelection(); |
---|
| 47 | }, |
---|
| 48 | |
---|
| 49 | "defaultOptions" : function() |
---|
| 50 | { |
---|
| 51 | this.content.style.fontStyle = "normal" ; |
---|
| 52 | this.content.style.color = "000000"; |
---|
| 53 | this.content.style.fontStyle = "10pt"; |
---|
| 54 | } |
---|
| 55 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.