Changeset 3525
- Timestamp:
- 11/19/10 16:41:32 (13 years ago)
- Location:
- branches/2.2/expressoMail1_2
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2/expressoMail1_2/js/abas.js
r3372 r3525 144 144 borderTitle = borderTitle.substring(0, resize*0.08); 145 145 146 td.innerHTML = "<table width=100% border=0 cellspacing=0 cellpadding=0><tr><td id=font_border_id_" + ID+" class='font-menu' width=*>" + borderTitle + "</td><td width=1px><img onmousedown='javascript:return false' style='cursor:pointer' onclick=delete_border('" + ID + "','false') src='templates/"+template+"/images/close_button.gif'></td></tr></table>"; 146 td.innerHTML = "<div style='width:100%;border:0;padding:0;'>\n\ 147 <div id='font_border_id_" + ID+"' class='font-menu' style='width:*;'>" + 148 borderTitle + 149 "</div>\n\ 150 <div style='width:1px;float:left;clear:right;'>\n\ 151 <img onmousedown='javascript:return false' style='cursor:pointer' onclick=delete_border('" + ID + "','false') src='templates/"+template+"/images/close_button.gif'/>\n\ 152 </div>\n\ 153 </div>"; 147 154 148 155 bb = document.getElementById("border_blank"); … … 199 206 if ((children[i].nodeName === 'TD') && (children[i].id!=='border_id_0') && (children[i].id!=='border_blank')){ 200 207 children[i].style.width = newWidthTD; 201 set_border_caption(children[i].id, children[i].title );208 set_border_caption(children[i].id, children[i].title, newWidthTD); 202 209 } 203 210 } … … 205 212 } 206 213 207 function set_border_caption(border_id, title) 208 { 209 var border = document.getElementById(border_id); 210 var border_width = border.clientWidth; 214 function set_border_caption(border_id, title, border_width) 215 { 216 var border = document.getElementById(border_id); 217 if (border_width == null) 218 { 219 border_width = border.clientWidth; 220 } 211 221 var caption = ""; 212 if (title.substring(0, (border_width-44)*0.14).length < title.length) 213 title = title.substring(0, (border_width-44)*0.14) + "..."; 222 Element("font_"+border.id).style.width = (border_width - 25)+'px'; 214 223 Element("font_"+border.id).innerHTML = title; 215 224 return(title); -
branches/2.2/expressoMail1_2/templates/default/main.css
r3421 r3525 118 118 .font-menu 119 119 { 120 color: #000; 121 } 122 123 .font-menu-sel 124 { 125 color:#0000FF; 126 } 127 128 .font-menu, .font-menu-sel { 129 float: left; 130 clear: left; 131 overflow: hidden; 132 white-space: nowrap; 133 padding-left: 5px; 134 margin-right: 5px; 120 135 text-decoration: none; 121 136 text-align: center; 122 color: #000;123 }124 125 .font-menu-sel126 {127 text-decoration: none;128 text-align: center;129 color:#0000FF;130 137 } 131 138
Note: See TracChangeset
for help on using the changeset viewer.