![]() |
# 12 |
חבר וותיק
|
מוזר שזה לא עובד..
אני אביא את הקוד המלא: 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(); } } |
![]() |
חברים פעילים הצופים באשכול זה: 1 (0 חברים ו- 1 אורחים) | |
|
|