html.js
上传用户:scene123
上传日期:2010-02-19
资源大小:3311k
文件大小:3k
源码类别:

.net编程

开发平台:

C#

  1. var action=new Array("createlink","email","insertimage","flash","","light","shadow","fly","move","/","bold","italic","underline","","justifyleft","justifycenter","justifyright","","insertorderedlist","indent")
  2. var tooltip=new Array("插入链接","插入邮件","插入图片","插入flash","","发光文字","阴影文字","飞行文字","移动文字","/","粗体","斜体","下划线","","向左对齐","向中靠","向右对齐","","列表","缩进")
  3. var s=
  4. '    <style>' +
  5. '    .Utoolbutton{border:1 double;border-color:#DDDDDD #DDDDDD #DDDDDD #DDDDDD;cursor:hand;background:EFEFEF}' +
  6. '    .Dtoolbutton{border:1 double;border-color:#FFFFFF #999999 #999999 #FFFFFF;cursor:hand;background:DDDDDD}' +
  7. '    .Ctoolbutton{border:1 double;border-color:#999999 #FFFFFF #FFFFFF #999999;cursor:hand;background:DDDDDD}' +
  8. '    </style>' +
  9. '    <table border=0 cellPadding=0 cellSpacing=0 width="520" title="E-TECH图文信息发布系统nhttp://www.e-tech.cn"><tbody>' +
  10. '      <tr><td width="40%" id=htmlOnly>' +
  11. '<select onchange="format('formatblock',this[this.selectedIndex].value);this.selectedIndex=0"><option>段落格式<option value="1">标题一<option value="2">标题二<option value="3">标题三<option value="4">标题四<option value="5">标题五<option value="6">标题六</select>' +
  12. '<select onchange="format('special',this[this.selectedIndex].value);this.selectedIndex=0"><option>特殊字体格式<option value="sup">上标<option value="sub">下标<option value="del">删除线<option value="blink">闪烁<option value="big">增大字体<option value="small">减小字体</select><br>' +
  13. '<select onchange="format('fontname',this[this.selectedIndex].value);this.selectedIndex=0"><option selected>字体<option value="宋体">宋体<option value="新宋体">新宋体<option value="楷体_GB2312">楷体_GB2312<option value="仿宋_GB2312">仿宋_GB2312<option value="黑体">黑体<option value="Arial">Arial<option value="Arial Black">Arial Black<option value="Courier New">Courier New<option value="Georgia">Georgia<option value="Impact">Impact<option value="Lucida Console">Lucida Console<option value="Lucida Sans Unicode">Lucida Sans Unicode<option value="Marlett">Marlett<option value="Symbol">Symbol<option value="Tahoma">Tahoma<option value="Times New Roman">Times New Roman<option value="Verdana">Verdana<option value="Webdings">Webdings<option value="Wingdings">Wingdings</option></select>' +
  14. '<select onchange="format('fontSize',this[this.selectedIndex].text);this.selectedIndex=0"><option selected>字号<option>1<option>2<option>3<option>4<option>5<option>6<option>7</option></select>' +
  15. '</td><td width="60%"><table><tr><td>';
  16. for (var i=0;i<action.length;i++) {
  17.   if (action[i]=="/") s+='<br><img width="16" height="16" src="./img/forecolor.gif" class="Utoolbutton" onmouseover="this.className='Dtoolbutton';" onmouseout="this.className='Utoolbutton';" onclick="this.className='Ctoolbutton';forecolor();" title="字体颜色" hspace="2" vspace="0">'
  18.   else if (action[i]=="") s+=' '
  19.   else {
  20.     s+='<img width="16" height="16" src="./img/' + action[i] + '.gif" class="Utoolbutton" onmouseover="this.className='Dtoolbutton';" onmouseout="this.className='Utoolbutton';" onclick="this.className='Ctoolbutton';'
  21.     if (i>6) s+='format('' + action[i] + '');'
  22.     else     s+='create('' + action[i] + '');'
  23.     s+='" title="' + tooltip[i] + '" hspace="2" vspace="0">'
  24.   }
  25. }
  26. s+=
  27. '     </td></tr></table></td></tr>' +
  28. '    </tbody></table>' ;
  29. document.write(s)