Changeset 60 for trunk/instant_messenger/js/im_win.js
- Timestamp:
- 08/21/07 17:28:27 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/instant_messenger/js/im_win.js
r59 r60 10 10 try 11 11 { 12 backFantom = func.newEl('div');12 var backFantom = func.newEl('div'); 13 13 func.confEl(backFantom, 'id', 'backFantom'); 14 14 func.confEl(backFantom, 'style', 'position:absolute;top:0px;left:0px;width:100%;height:100%;z-Index:-1;'); 15 15 16 test = func.newEl('div'); 17 func.confEl(test, 'id', 'test'); 18 func.confEl(test, 'style', 'visibility: hidden;'); 19 20 menu_contato = func.newEl('div'); 16 var menu_contato = func.newEl('div'); 21 17 func.confEl(menu_contato, 'id', 'menu_contato'); 22 18 func.confEl(menu_contato, 'class', 'menu_im'); 23 19 func.confEl(menu_contato, 'style', 'position:absolute;z-index:99999'); 24 20 25 emotions = func.newEl('div');21 var emotions = func.newEl('div'); 26 22 func.confEl(emotions, 'id', 'shared_emotions'); 27 23 func.confEl(emotions, 'class', 'emotionFrame'); 28 24 func.confEl(emotions, 'style', 'position:absolute;padding:1px;left:350px;visibility:hidden;top:0px'); 29 25 30 font_name = func.newEl('div');26 var font_name = func.newEl('div'); 31 27 func.confEl(font_name, 'id', 'shared_fontName'); 32 28 func.confEl(font_name, 'class', 'statusMenu'); 33 29 func.confEl(font_name, 'style', 'position:absolute;visibility:hidden;padding:1px;left:400px;top:0px'); 34 30 35 font_size = func.newEl('div');31 var font_size = func.newEl('div'); 36 32 func.confEl(font_size, 'id', 'shared_fontSize'); 37 33 func.confEl(font_size, 'class', 'statusMenu'); 38 34 func.confEl(font_size, 'style', 'position:absolute;visibility:hidden;padding:1px;left:400px;top:0px'); 39 35 40 font_color = func.newEl('div');36 var font_color = func.newEl('div'); 41 37 func.confEl(font_color, 'id', 'shared_fontColor'); 42 38 func.confEl(font_color, 'class', 'statusMenu'); 43 39 func.confEl(font_color, 'style', 'position:absolute;visibility:hidden;padding:1px;left:400px;top:0px'); 44 40 45 font_style = func.newEl('div');41 var font_style = func.newEl('div'); 46 42 func.confEl(font_style, 'id', 'shared_fontStyle'); 47 43 func.confEl(font_style, 'class', 'statusMenu'); 48 44 func.confEl(font_style, 'style', 'position:absolute;visibility:hidden;padding:1px;left:400px;top:0px'); 49 45 50 func.insEl(backFantom, test,menu_contato, emotions, font_name, font_size, font_color, font_style, false);46 func.insEl(backFantom, menu_contato, emotions, font_name, font_size, font_color, font_style, false); 51 47 52 48 emotions.innerHTML = Templates.emotions(); … … 56 52 font_style.innerHTML = Templates.font_style(); 57 53 58 pId = 'contacts';59 60 main_menu_all = func.newEl('div');54 var pId = 'contacts'; 55 56 var main_menu_all = func.newEl('div'); 61 57 func.confEl(main_menu_all, 'style', 'margin: 3px;'); 62 58 63 main_menu_head = func.newEl('div');59 var main_menu_head = func.newEl('div'); 64 60 func.confEl(main_menu_head, 'id', pId + '_im_window_body_inner_head'); 65 61 func.confEl(main_menu_head, 'style', 'margin: 0px 0px 3px 0px; border: 1px solid #809aa9; display: block;'); 66 62 67 main_menu_vcard = func.newEl('div');63 var main_menu_vcard = func.newEl('div'); 68 64 func.confEl(main_menu_vcard, 'id', 'im_vcard_contacts'); 69 65 func.confEl(main_menu_vcard, 'style', 'display: none;'); 70 66 71 main_menu_body = func.newEl('div');67 var main_menu_body = func.newEl('div'); 72 68 func.confEl(main_menu_body, 'id', 'div_contacts'); 73 69 func.confEl(main_menu_body, 'style', 'border: 1px solid #809aa9;'); … … 75 71 func.insEl(main_menu_head, main_menu_vcard, main_menu_body, main_menu_all); 76 72 77 main_menu_head_picture = func.newEl('img');73 var main_menu_head_picture = func.newEl('img'); 78 74 func.confEl(main_menu_head_picture, 'id', pId + '_avatar'); 79 75 func.confEl(main_menu_head_picture, 'src', img_photo.src); 80 76 func.confEl(main_menu_head_picture, 'style', 'float: left; height: 65px; margin: 2px; width: 49px;'); 81 77 82 main_menu_head_name = func.newEl('span');78 var main_menu_head_name = func.newEl('span'); 83 79 func.confEl(main_menu_head_name, 'id', 'span_nickname'); 84 main_menu_head_name_txt = document.createTextNode(" your nickname");80 var main_menu_head_name_txt = document.createTextNode(" your nickname"); 85 81 func.insEl(main_menu_head_name_txt, main_menu_head_name); 86 82 87 br1 = func.newEl('br');88 89 main_menu_head_message = func.newEl('span');83 var br1 = func.newEl('br'); 84 85 var main_menu_head_message = func.newEl('span'); 90 86 func.confEl(main_menu_head_message, 'id', 'span_message'); 91 main_menu_head_message_txt = document.createTextNode(' your message');87 var main_menu_head_message_txt = document.createTextNode(' your message'); 92 88 func.insEl(main_menu_head_message_txt, main_menu_head_message); 93 89 94 br2 = func.newEl('br');90 var br2 = func.newEl('br'); 95 91 96 92 func.insEl(main_menu_head_picture, main_menu_head_name, br1, main_menu_head_message, br2, main_menu_head); 97 93 98 main_menu_head_div = func.newEl("div");94 var main_menu_head_div = func.newEl("div"); 99 95 func.confEl(main_menu_head_div,'id','menu_preferences'); 100 96 func.confEl(main_menu_head_div,'class','menu_im'); … … 122 118 main_menu_head.innerHTML += '<span id="span_menu_pref" style="float: left;" onmousedown="IM.menu_preferences(event ,\'menu_preferences\'); document.oncontextmenu = new Function(\'return false\');"></span>'; 123 119 124 br3 = func.newEl('br');120 var br3 = func.newEl('br'); 125 121 func.confEl(br3, 'style', 'clear: both'); 126 122 127 div_ie = func.newEl('div');123 var div_ie = func.newEl('div'); 128 124 129 125 func.insEl(br3, div_ie, main_menu_head); … … 468 464 "showWindowItem" : function(pId) 469 465 { 466 /* 467 * Não tire esta linha 468 * Isso deve estar aqui para a janela 'oculta' 469 * não 'piscar' na tela no momento que é criada. 470 */ 471 func.byId(pId + '_im_window_body_inner').style.overflow = 'auto'; 472 470 473 if ( (name_document = document.getElementById(pId + '_divEdita')) ) 471 474 { … … 488 491 dd.elements[pId + "_im_window_resize"].show(); 489 492 dd.elements[pId + "_im_window_movable"].show(); 493 490 494 }, 491 495 … … 523 527 524 528 "windowMaximizeRestore" : function(objName) 525 { 529 { 526 530 with(objName) 527 531 objName = substr(0, indexOf('_im')); … … 681 685 // Photo Ldap; 682 686 this.get_photo_ldap(pId); 683 687 684 688 name_document = document.getElementById(pId + '_edita'); 685 689 name_document.contentWindow.document.write('<html><body id="' + pId.replace('@', '_at_').replace(/\./g, '_dot_') + '" style="margin:0px;padding:0px"></body></html>');
Note: See TracChangeset
for help on using the changeset viewer.