欢迎来到天天文库
浏览记录
ID:6127486
大小:773.50 KB
页数:28页
时间:2018-01-04
《js脚本中英文对照编辑器》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、1.输入中文跟对应的英文,点击上传。JS脚本会在本地处理数据2.JS脚本会自动找出,中英文数据不一致的段落,方便修改,使每一句中文跟英文对应3.当数据核实无误后即可上传,图为鼠标移动到中文处后显示对应的英文,方便学习阅读1.通过上传并拖拽图片,将图片插入文章中editpage.html
2、le>3、riptsrc="js/index.js">4、/jquery.ui.mouse.js"><5、!---->varischange=1;zhongwen.str="";yingwen.str="";zhongwen.count=0;yingwen.count=0;yingwen.countInP=newArray();zhongwen.countInP=newArray();functionyulan(){if(ischange){remake(1);initAyy();setc_1();SetPFlag();resetParr()6、;resetInsertImg();ischange=0;}}functionupload(){if(ischange){alert("编辑内容发生了改变,将跳转到预览页面");makeeditflag(1);}else{if(yingwen.count==zhongwen.count&&yingwen.countInP.length==zhongwen.countInP.length){//上传}else{alert("中文与英文句子不7、匹配,请重新检查");makeeditflag(2);}}}functionupLoadimg(){}functioneditchange(obj){ischange=1;vartemp;if(obj.id=='divc_2')temp=document.getElementById('editTitlespan1');elsetemp=document.getElementById('editTitles8、pan2');if(obj.value.length>20000)temp.innerHTML="超出"+(obj.value.length-20000)+"字,超出的部分将变为无效";elsetemp.innerHTML="";}functionpasteEditchange(obj){ischange=1;setTimeout(function(){editchange(obj);},100);}functionmakeeditfl
3、riptsrc="js/index.js">4、/jquery.ui.mouse.js"><5、!---->varischange=1;zhongwen.str="";yingwen.str="";zhongwen.count=0;yingwen.count=0;yingwen.countInP=newArray();zhongwen.countInP=newArray();functionyulan(){if(ischange){remake(1);initAyy();setc_1();SetPFlag();resetParr()6、;resetInsertImg();ischange=0;}}functionupload(){if(ischange){alert("编辑内容发生了改变,将跳转到预览页面");makeeditflag(1);}else{if(yingwen.count==zhongwen.count&&yingwen.countInP.length==zhongwen.countInP.length){//上传}else{alert("中文与英文句子不7、匹配,请重新检查");makeeditflag(2);}}}functionupLoadimg(){}functioneditchange(obj){ischange=1;vartemp;if(obj.id=='divc_2')temp=document.getElementById('editTitlespan1');elsetemp=document.getElementById('editTitles8、pan2');if(obj.value.length>20000)temp.innerHTML="超出"+(obj.value.length-20000)+"字,超出的部分将变为无效";elsetemp.innerHTML="";}functionpasteEditchange(obj){ischange=1;setTimeout(function(){editchange(obj);},100);}functionmakeeditfl
4、/jquery.ui.mouse.js"><
5、!---->varischange=1;zhongwen.str="";yingwen.str="";zhongwen.count=0;yingwen.count=0;yingwen.countInP=newArray();zhongwen.countInP=newArray();functionyulan(){if(ischange){remake(1);initAyy();setc_1();SetPFlag();resetParr()
6、;resetInsertImg();ischange=0;}}functionupload(){if(ischange){alert("编辑内容发生了改变,将跳转到预览页面");makeeditflag(1);}else{if(yingwen.count==zhongwen.count&&yingwen.countInP.length==zhongwen.countInP.length){//上传}else{alert("中文与英文句子不
7、匹配,请重新检查");makeeditflag(2);}}}functionupLoadimg(){}functioneditchange(obj){ischange=1;vartemp;if(obj.id=='divc_2')temp=document.getElementById('editTitlespan1');elsetemp=document.getElementById('editTitles
8、pan2');if(obj.value.length>20000)temp.innerHTML="超出"+(obj.value.length-20000)+"字,超出的部分将变为无效";elsetemp.innerHTML="";}functionpasteEditchange(obj){ischange=1;setTimeout(function(){editchange(obj);},100);}functionmakeeditfl
此文档下载收益归作者所有