View Single Post
ישן 28-06-06, 21:34   # 2
miniature
חבר וותיק
 
מיני פרופיל
תאריך הצטרפות: Oct 2005
הודעות: 1,754

miniature לא מחובר  

מוזר שזה לא עובד..
אני אביא את הקוד המלא:
HTML קוד:
<span>
<select id="fontname" onchange="fontname(this)">
<option value="Arial" selected="selected">Arial</option>
<option value="Courier New">Courier New</option>
<option value="Georgia">Georgia</option>
<option value="Tahoma">Tahoma</option>
<option value="Times New Roman">Times New Roman</option>
<option value="Verdana">Verdana</option>
<option value="otherfont" style="color:#626262;">אחר...</option>
</select>
</span>
HTML קוד:
function fontname(fontname_i) {
  var fontname = fontname_i[fontname_i.selectedIndex].value;
  if(fontname != "none") {
    if(fontname == "otherfont") {
      otherfont();
    }
    else {
      document.getElementById('editor').focus();
      document.execCommand('fontname',false,fontname);
      document.getElementById('editor').focus();
    }
  }
  else {
    document.getElementById('editor').focus();
  }
}
__________________
יואב.

דרכים ליצירת קשר:

אימייל: thebigfire@walla.co.il
הודעה פרטית
  Reply With Quote