Changeset 2602 for trunk/expressoMail1_2
- Timestamp:
- 04/20/10 11:55:50 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoMail1_2/js/jscode/DropDownContacts.js
r2579 r2602 74 74 } 75 75 76 var table_contacts_header = "<table style='font-family:arial;font-size:12;color:#0000CF' border=0 cellpadding=0 cellspacing=0>"; 77 var table_contacts_foot = "</table>"; 78 var lines = ''; 76 var lines = document.createElement('TABLE'); 77 lines.style.fontFamily='Arial'; 78 lines.style.font='12pt'; 79 lines.style.color='#0000CF'; 80 lines.border='0'; 81 lines.cellpadding='0'; 82 lines.cellspacing='0'; 83 79 84 var REG_EXP = /^[^\#|^\$|^\%|^\!|^\?|^\"|^\']+$/; 80 85 var match_cont = ""; … … 90 95 } 91 96 } 92 //lines = lines + "<tr><td id=td_DD_"+i+" onClick=\"javascript:hideTip();makeMailList('"+match_contacts[i]+"','"+fld_id+"');document.getElementById('" + fld_id + "').focus();\" onmouseover=\"selectContact("+i+")\">" + match_contacts[i] + "</td></tr>" 93 lines = lines + "<tr><td id=td_DD_"+i+" onMouseDown=\"javascript:hideTip();makeMailList('"+match_cont+"','"+fld_id+"');setTimeout('document.getElementById(\\'"+fld_id+"\\').focus()',300);\" onmouseover=\"selectContact("+i+")\">" + match_cont + "</td></tr>"; 97 var trElement = document.createElement('TR'); 98 var tdElement = document.createElement('TD'); 99 tdElement.id = 'td_DD_'+i; 100 tdElement.name = fld_id; 101 tdElement.onmousedown = function (){ 102 hideTip(); 103 makeMailList(this.innerHTML,this.name); 104 setTimeout('document.getElementById("'+this.name+'").focus()',300); 105 }; 106 tdElement.onmouseover = function (){ 107 selectContact(this.id.substr(6)); 108 }; 109 tdElement.innerHTML = match_cont; 110 trElement.appendChild(tdElement); 111 lines.appendChild(trElement); 94 112 match_cont = ""; 95 113 } … … 126 144 } 127 145 } 128 129 if (lines != ''){ 130 table_contacts = table_contacts_header + lines + table_contacts_foot; 131 doTooltip(posX, posY, table_contacts); 146 if (lines.childNodes.length > 0){ 147 doTooltip(posX, posY, lines); 132 148 } 133 149 else … … 262 278 263 279 writeTip: function(msg) { 264 if ( this.tip && typeof this.tip.innerHTML != "undefined" ) this.tip.innerHTML = msg; 280 if ( typeof this.tip != "undefined" ) { 281 this.tip.innerHTML = ""; 282 this.tip.appendChild(msg); 283 } 265 284 this.tip.style.width = 'auto'; 266 285 }, … … 282 301 this.handleOverlay(0, this.hideDelay); 283 302 this.timer = setTimeout("Tooltip.toggleVis('" + this.tipID + "', 'hidden')", this.hideDelay); 284 this.tip = null; 303 this.tip = null; 285 304 }, 286 305
Note: See TracChangeset
for help on using the changeset viewer.