Changeset 915


Ignore:
Timestamp:
10/28/07 11:26:54 (12 years ago)
Author:
ray
Message:

Loading message facelift

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Xinha.css

    r813 r915  
    246246.loading 
    247247{ 
    248   background-color:#666; 
     248  font-family:sans-serif; 
    249249  position:absolute; 
    250250  z-index:998; 
     251  text-align:center; 
     252  width:212px; 
     253  padding: 55px 0 5px 0; 
     254  border:2px solid #ccc; 
     255  /* border-color: ButtonHighlight ButtonShadow ButtonShadow ButtonHighlight;*/ 
     256  background: url(images/xinha_logo.gif) no-repeat #fff center 5px; 
    251257} 
    252258.loading_main 
    253259{ 
    254   font-size:1.6em; 
    255   color:#ff6; 
     260  font-size:11px; 
     261  color:#000; 
     262  
     263} 
     264.loading_sub 
     265{ 
     266  font-size:9px; 
     267  color:#666; 
    256268  text-align:center; 
    257269} 
    258 .loading_sub 
    259 { 
    260   font-size:1.0em; 
    261   color:#fff; 
    262   text-align:center; 
    263 } 
  • trunk/XinhaCore.js

    r913 r915  
    64376437    { 
    64386438      var textarea = Xinha.getElementById('textarea', editor_names[x] ); 
    6439       if ( !textarea ) continue; 
     6439      if ( !textarea ) 
     6440          { 
     6441                editor_names[x] = null; 
     6442                continue; 
     6443          }  
    64406444    } 
    64416445    var editor = new Xinha(textarea, Xinha.cloneObject(default_config)); 
     
    67326736  for (var i=0;i<xinha_editors.length;i++) 
    67336737  { 
    6734      Xinha.loadingMessages.push(Xinha.createLoadingMessage(Xinha.getElementById('textarea', xinha_editors[i]))); 
     6738     if (!document.getElementById(xinha_editors[i])) continue; 
     6739         Xinha.loadingMessages.push(Xinha.createLoadingMessage(Xinha.getElementById('textarea', xinha_editors[i]))); 
    67356740  } 
    67366741}; 
     
    67486753  loading_message.className = "loading"; 
    67496754   
    6750   loading_message.style.left = Xinha.findPosX(textarea) +  'px'; 
     6755  loading_message.style.left = (Xinha.findPosX(textarea) + textarea.offsetWidth / 2) - 106 +  'px'; 
    67516756  loading_message.style.top = (Xinha.findPosY(textarea) + textarea.offsetHeight / 2) - 50 +  'px'; 
    6752   loading_message.style.width =  textarea.offsetWidth +  'px'; 
    6753    
    67546757  // main static message 
    67556758  var loading_main = document.createElement("div"); 
     
    67616764  loading_sub.className = "loading_sub"; 
    67626765  loading_sub.id = "loading_sub_" + textarea.id; 
    6763   text = text ? text : Xinha._lc("Constructing object"); 
     6766  text = text ? text : Xinha._lc("Loading Core"); 
    67646767  loading_sub.appendChild(document.createTextNode(text)); 
    67656768  loading_message.appendChild(loading_main); 
     
    68056808  for (var i=0;i< xinha_editors.length;i++) 
    68066809  { 
     6810     if (!document.getElementById(xinha_editors[i])) continue; 
    68076811     var main = document.getElementById("loading_" + document.getElementById(xinha_editors[i]).id); 
    68086812     main.parentNode.removeChild(main); 
Note: See TracChangeset for help on using the changeset viewer.