html.js
上传用户:scene123
上传日期:2010-02-19
资源大小:3311k
文件大小:3k
- var action=new Array("createlink","email","insertimage","flash","","light","shadow","fly","move","/","bold","italic","underline","","justifyleft","justifycenter","justifyright","","insertorderedlist","indent")
- var tooltip=new Array("插入链接","插入邮件","插入图片","插入flash","","发光文字","阴影文字","飞行文字","移动文字","/","粗体","斜体","下划线","","向左对齐","向中靠","向右对齐","","列表","缩进")
- var s=
- ' <style>' +
- ' .Utoolbutton{border:1 double;border-color:#DDDDDD #DDDDDD #DDDDDD #DDDDDD;cursor:hand;background:EFEFEF}' +
- ' .Dtoolbutton{border:1 double;border-color:#FFFFFF #999999 #999999 #FFFFFF;cursor:hand;background:DDDDDD}' +
- ' .Ctoolbutton{border:1 double;border-color:#999999 #FFFFFF #FFFFFF #999999;cursor:hand;background:DDDDDD}' +
- ' </style>' +
- ' <table border=0 cellPadding=0 cellSpacing=0 width="520" title="E-TECH图文信息发布系统nhttp://www.e-tech.cn"><tbody>' +
- ' <tr><td width="40%" id=htmlOnly>' +
- '<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>' +
- '<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>' +
- '<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>' +
- '<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>' +
- '</td><td width="60%"><table><tr><td>';
- for (var i=0;i<action.length;i++) {
- 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">'
- else if (action[i]=="") s+=' '
- else {
- 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';'
- if (i>6) s+='format('' + action[i] + '');'
- else s+='create('' + action[i] + '');'
- s+='" title="' + tooltip[i] + '" hspace="2" vspace="0">'
- }
- }
- s+=
- ' </td></tr></table></td></tr>' +
- ' </tbody></table>' ;
- document.write(s)