• Heim > Web-Frontend > js-Tutorial > Js+Dhtml:WEB程序员简易开发工具包(预先体验版)_javascript技巧

    Js+Dhtml:WEB程序员简易开发工具包(预先体验版)_javascript技巧

    WBOY
    Freigeben: 2016-05-16 19:24:28
    Original
    808 Leute haben es durchsucht

    复制代码 代码如下:





    LD5工具








    <script> <BR>/****************** <BR>Author:lshdic(FYW) <BR>Website:http://www.lshdic.com <BR>E-mail:lshdic@sina.com <BR>Resume:本程序的资料整理、编写、最终审查等工作由LD2、4、5原作者独立完成,难免存在疏忽并不能保证数据100%正确,一页原代码,可独立运行于非LD2005开发环境的WEB浏览器内,另存后即可在本地使用 <BR>******************/ <BR>var str1="",toolcolor="bbbbbb",movecolor="#ffffff" <BR>function write1(){ <BR>a.innerHTML="<table cellspacing=0 cellpadding=3 rules=all style='border-Collapse:collapse;border:1 solid cccccc;' onmouseup='if(event.srcElement.tagName==\"TD\")txt.value=event.srcElement.innerText' onmouseover='if(event.srcElement.tagName==\"TD\"&&event.srcElement.bgColor==\"\")event.srcElement.bgColor=movecolor' onmouseout='if(event.srcElement.tagName==\"TD\"&&event.srcElement.bgColor==movecolor.toLowerCase())event.srcElement.bgColor=\"\"'>"+str1+"" <BR>document.title=sel1.options[sel1.selectedIndex].text+"_参考输入工具["+(sel1.selectedIndex+1)+"]" <BR>} <BR>function write2(strs1,strs2){ <BR>strs1==160?strss1="空格":strss1="&#"+strs1+";" <BR>str1+="<tr><td>&#"+strs1+";<td>&"+strs2+";<td class='n1'>"+strss1+"" <BR>} <BR>function change1(changeindex){ <BR>str1="" <BR>switch(changeindex){ <BR>case 0: //中文特殊符号 <BR>str0="·ˇ¨〃々-~‖…〔〕〈〉《》「」『』〖〗【】±×÷∧∨∑∏∪∩∈∷√⊥∥∠⌒⊙∫∮≡≌≈∽∝≠≮≯≤≥∞∵∴♂♀°℃$¤¢£‰§№☆★○●◎◇◆□■△▲※→←↑↓〓ˊˋ˙-―‥℅℉↖↗↘↙∕∟≒≦≧⊿═║╒╓╔╕╖╗╙╚╛╜╝╞╟╠╡╢╣╤╥╦╧╨╩╪╫╬╭╮╯╰╱╲╳▁▂▃▅▇█▉▊▋▌▍▎▏▓▔▕▼▽◢◣◤◥☉⊕〒‵′〝″ⅰⅱⅲⅳⅴⅵⅶⅷⅸⅹ⒈⒉⒊⒋⒌⒍⒎⒏⒐⒑⒒⒓⒔⒕⒖⒗⒘⒙⒚⒛⑴⑵⑶⑷⑸⑹⑺⑻⑼⑽⑾⑿⒀⒁⒂⒃⒄⒅⒆⒇①②③④⑤⑥⑦⑧⑨⑩㈠㈡㈢㈣㈤㈥㈦㈧㈨㈩ⅠⅡⅢⅣⅤⅥⅦⅧⅨⅩⅪⅫ─━│┃┄┅┆┇┈┉┊┋┌┍┎┏┐┑┒┓└┕┖┗┘┙┚┛├┝┞┟┠┡┢┣┤┥┦┧┨┩┪┫┬┭┮┯┰┱┲┳┴┵┶┷┸┹┺┻┼┽┾┿╀╁╂╃╄╅╆╇╈╉╊╋︵︶︹︺︿﹀︽︾﹁﹂﹃﹄︻︼︷︸︱" <BR>for(i=0;i<str0.length-1;i++){ <BR>str1+="<tr>" <BR>for(j=0;j<7;j++){str1+="<td>"+str0.charAt(i)+"";i++} <BR>str1+="";i-- <BR>} <BR>break; <BR>case 4: //他国单字与符号 <BR>str0="абвгдеёжзийклмнопрстуфхцчшщъыьэюяАБВГДЕЁЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩαβγδεζηθικλμνξοπρστυφχψωāáǎàēéěèīíǐìōóǒòūúǔùǖǘǚǜüêɑńňǹɡㄅㄆㄇㄈㄉㄊㄋㄌㄍㄎㄏㄐㄑㄒㄓㄔㄕㄖㄗㄘㄙㄚㄛㄜㄝㄞㄟㄠㄡㄢㄣㄤㄥㄦㄧㄨㄩぁあぃいぅうぇえぉおかがきぎくぐけげこごさざしじすずせぜそぞただちぢっつづてでとどなにぬねのはばぱひびぴふぶぷへべぺほぼぽまみむめもゃやゅゆょよらりるれろゎわゐゑをんァアィイゥウェエォオカガキギクグケゲコゴサザシジスズセゼソゾタダチヂッツヅテデトドナニヌネノハバパヒビピフブプヘベペホボポマミムメモャヤュユョヨラリルレロヮワヰヱヲンヴヵヶ" <BR>for(i=0;i<str0.length-1;i++){ <BR>str1+="<tr>" <BR>for(j=0;j<7;j++){str1+="<td class='n1'>"+str0.charAt(i)+"";i++} <BR>str1+="";i-- <BR>} <BR>break; <BR>case 1: //Assic实体对照 <BR>str1="<tr bgcolor='"+toolcolor+"'><td>HTM表示<td>浏览<td>VB表示" <BR>for(i=1;i<384;i++){str1+="<tr><td>&#"+i+";<td class='n1'>&#"+i+";<td>chr("+i+")"} <BR>break; <BR>case 7: //wingdings字体 <BR>str1="<tr bgcolor='"+toolcolor+"'><td>HTM表示<td>常规<td>应用字体" <BR>for(i=33;i<384;i++){str1+="<tr><td>&#"+i+";<td class='n1'>&#"+i+";<td class='n2'>&#"+i+";"} <BR>break; <BR>case 8: //wingdings 2字体 <BR>str1="<tr bgcolor='"+toolcolor+"'><td>HTM表示<td>常规<td>应用字体" <BR>for(i=33;i<384;i++){str1+="<tr><td>&#"+i+";<td class='n1'>&#"+i+";<td class='n3'>&#"+i+";"} <BR>break; <BR>case 9: //wingdings 3字体 <BR>str1="<tr bgcolor='"+toolcolor+"'><td>HTM表示<td>常规<td>应用字体" <BR>for(i=33;i<384;i++){str1+="<tr><td>&#"+i+";<td class='n1'>&#"+i+";<td class='n4'>&#"+i+";"} <BR>break; <BR>case 10: //webdings字体 <BR>str1="<tr bgcolor='"+toolcolor+"'><td>HTM表示<td>常规<td>应用字体" <BR>for(i=33;i<384;i++){str1+="<tr><td>&#"+i+";<td class='n1'>&#"+i+";<td class='n5'>&#"+i+";"} <BR>break; <BR>case 11: //Marlett字体 <BR>str1="<tr bgcolor='"+toolcolor+"'><td>HTM表示<td>常规<td>应用字体" <BR>for(i=48;i<58;i++){str1+="<tr><td>&#"+i+";<td class='n1'>&#"+i+";<td class='n6'>&#"+i+";"} <BR>for(i=97;i<122;i++){str1+="<tr><td>&#"+i+";<td class='n1'>&#"+i+";<td class='n6'>&#"+i+";"} <BR>break; <BR>case 12: //华文彩云字体 <BR>str1="<tr bgcolor='"+toolcolor+"'><td>HTM表示<td>常规<td>应用字体" <BR>for(i=33;i<384;i++){str1+="<tr><td>&#"+i+";<td class='n1'>&#"+i+";<td class='n7'>&#"+i+";"} <BR>break; <BR>case 2: //HTML已命名实体 <BR>var str0="iexcl;&cent;&pound;&curren;&yen;&brvbar;&sect;&uml;&copy;&ordf;&laquo;&not;&shy;&reg;&macr;&deg;&plusmn;&sup2;&sup3;&acute;&micro;&para;&middot;&cedil;&sup1;&ordm;&raquo;&frac14;&frac12;&frac34;&iquest;&Agrave;&Aacute;&Acirc;&Atilde;&Auml;&Aring;&AElig;&Ccedil;&Egrave;&Eacute;&Ecirc;&Euml;&Igrave;&Iacute;&Icirc;&Iuml;&ETH;&Ntilde;&Ograve;&Oacute;&Ocirc;&Otilde;&Ouml;&times;&Oslash;&Ugrave;&Uacute;&Ucirc;&Uuml;&Yacute;&THORN;&szlig;&agrave;&aacute;&acirc;&atilde;&auml;&aring;&aelig;&ccedil;&egrave;&eacute;&ecirc;&euml;&igrave;&iacute;&icirc;&iuml;&eth;&ntilde;&ograve;&oacute;&ocirc;&otilde;&ouml;&divide;&oslash;&ugrave;&uacute;&ucirc;&uuml;&yacute;&thorn;&yuml;".split('&') <BR>str1="<tr bgcolor='"+toolcolor+"'><td>HTM表示<td>命名<td>浏览" <BR>write2(34,"quot");write2(38,"amp");write2(60,"lt");write2(62,"gt");write2(160,"nbsp"); <BR>for(i=161;i<256;i++){str1+="<tr><td>&#"+i+";<td>&"+str0[i-161]+"<td class='n1'>&#"+i+";"} <BR>break; <BR>case 3: //HTML附加命名实体 <BR>str1="<tr bgcolor='"+toolcolor+"'><td>HTM表示<td>命名<td>浏览" <BR>write2(402,"fnof"); <BR>var str0="Alpha;&Beta;&Gamma;&Delta;&Epsilon;&Zeta;&Eta;&Theta;&Iota;&Kappa;&Lambda;&Mu;&Nu;&Xi;&Omicron;&Pi;&Rho;".split('&') <BR>for(i=913;i<930;i++){str1+="<tr><td>&#"+i+";<td>&"+str0[i-913]+"<td class='n1'>&#"+i+";"} <BR>str0="Sigma;&Tau;&Upsilon;&Phi;&Chi;&Psi;&Omega;".split('&') <BR>for(i=931;i<938;i++){str1+="<tr><td>&#"+i+";<td>&"+str0[i-931]+"<td class='n1'>&#"+i+";"} <BR>str0="alpha;&beta;&gamma;&delta;&epsilon;&zeta;&eta;&theta;&iota;&kappa;&lambda;&mu;&nu;&xi;&omicron;&pi;&rho;&sigmaf;&sigma;&tau;&upsilon;&phi;&chi;&psi;&omega;".split('&') <BR>for(i=945;i<970;i++){str1+="<tr><td>&#"+i+";<td>&"+str0[i-945]+"<td class='n1'>&#"+i+";"} <BR>write2(977,"thetasym");write2(978,"upsih");write2(982,"piv"); <BR>write2(8226,"bull");write2(8230,"hellip");write2(8242,"prime");write2(8243,"Prime");write2(8254,"oline");write2(8260,"frasl");write2(8472,"weierp");write2(8465,"image");write2(8476,"real");write2(8482,"trade");write2(8501,"alefsym"); <BR>str0="larr;&uarr;&rarr;&darr;&harr;".split('&') <BR>for(i=8592;i<8597;i++){str1+="<tr><td>&#"+i+";<td>&"+str0[i-8592]+"<td class='n1'>&#"+i+";"} <BR>write2(8629,"crarr"); <BR>str0="lArr;&uArr;&rArr;&dArr;&hArr;".split('&') <BR>for(i=8656;i<8661;i++){str1+="<tr><td>&#"+i+";<td>&"+str0[i-8656]+"<td class='n1'>&#"+i+";"} <BR>write2(8704,"forall");write2(8706,"part");write2(8707,"exist");write2(8709,"empty");write2(8711,"nabla");write2(8712,"isin");write2(8713,"notin");write2(8715,"ni");write2(8719,"prod");write2(8722,"sum");write2(8722,"minus");write2(8727,"lowast");write2(8730,"radic");write2(8733,"prop");write2(8734,"infin");write2(8736,"ang");write2(8869,"and");write2(8870,"or");write2(8745,"cap");write2(8746,"cup");write2(8747,"int");write2(8756,"there4");write2(8764,"sim");write2(8773,"cong");write2(8773,"asymp");write2(8800,"ne");write2(8801,"equiv");write2(8804,"le");write2(8805,"ge");write2(8834,"sub");write2(8835,"sup");write2(8836,"nsub");write2(8838,"sube");write2(8839,"supe");write2(8853,"oplus");write2(8855,"otimes");write2(8869,"perp");write2(8901,"sdot");write2(8968,"lceil");write2(8969,"rceil");write2(8970,"lfloor");write2(8971,"rfloor");write2(9001,"lang");write2(9002,"rang");write2(9674,"loz");write2(9824,"spades");write2(9827,"clubs");write2(9829,"hearts");write2(9830,"diams"); <BR>break; <BR>case 5: //W3C16色对照表 <BR>str1="<tr bgcolor='"+toolcolor+"'><td>效果<td>名称<td>16进制表示" <BR>str0="Black,White,Red,Yellow,Lime,Aqua,Blue,Fuchsia,Gray,Silver,Maroon,Olive,Green,Teal,Navy,Purple,Transparent".split(",") <BR>str00="000000,ffffff,ff0000,ffff00,00ff00,00ffff,0000ff,ff00ff,808080,c0c0c0,800000,808000,008000,008080,000080,800080,透明色".split(",") <BR>for(i=0;i<str0.length;i++){str1+="<tr><td bgcolor='"+str0[i]+"'><td>"+str0[i]+"<td style='color:#"+str00[i]+"'>#"+str00[i]+""} <BR>break; <BR>case 6: //Windows系统色盘 <BR>str1="<tr bgcolor='"+toolcolor+"'><td>效果1<td>效果2<td>名称" <BR>str0="windowtext,windowframe,window,threedshadow,buttonshadow,threedlightshadow,threedhighlight,threedface,buttonface,threeddarkshadow,scrollbar,menutext,menu,infotext,infobackground,inactivecaptiontext,inactivecaption,inactiveborder,highlighttext,highlight,graytext,captiontext,buttontext,buttonhighlight,background,appworkspace,activecaption,activeborder".split(",") <BR>for(i=0;i<str0.length;i++){str1+="<tr><td bgcolor='"+str0[i]+"'><td style='color:"+str0[i]+"'>Lshdic<td style='word-Break:keep-all;'>"+str0[i]+""} <BR>break; <BR>case 13: //键盘键值探测器 <BR>str1="<center> <p>现在请您按下您键盘上的任意一个键<p><center>其键值会显示在上方输入框中" <BR>break; <BR>case 14: //简易计算器 <BR>str1="<center> <p>请在下边输入框中输入需要计算的公式<p><center>公式如 12+64 20/5 100+(77*44)<p><center><input id='txt2'>[br]<input type='button' value='开始计算' onclick='try{txt.value=eval(txt2.value)}catch(e){alert(\"错误的公式!\")}'>" <BR>break; <BR>case 15: //进制转换工具 <BR>for(i=2;i<129;i++){str0+="<option>"+i;i++} <BR>str1="<center> <p>请在下边输入框中输入一组数字<p><center><input id='txt2'>[br]转换为:<select id='sel2'>"+str0+"进制[br]<input type='button' value='开始转换' onclick='try{txt.value=new Number(txt2.value).toString(sel2.options[sel2.selectedIndex].text)}catch(e){alert(\"异常错误!\")}'>" <BR>break; <BR>} <BR>write1() <BR>} <BR>function document.onkeydown(){ //页面按键时 <BR>if(sel1.selectedIndex==13){ //检测是否开启键盘键值探测器 <BR>txt.value=event.keyCode;event.keyCode=0;event.returnValue=false; <BR>}} <BR>temp1=location.href //初始化启动部分(附加的URL参数可以控制预先选取的列表,形式如xxx.htm?xxx=*,其中*应为0-12之间的数字,用于配合Lshdic2005软体附属工具的默认启动调用) <BR>try{ <BR>sel1.options[temp1.substr(temp1.indexOf('=')+1)].selected=true;sel1.onchange() <BR>}catch(e){ <BR>sel1.onchange() <BR>} <BR>//本插件程序由于能够在WEB浏览器中直接运行,因此提前于LD5软件的发布供大家使用,因此,本程序并非为最终发布时的完整版本形态 <BR></script>

     
    Quelle:php.cn
    Erklärung dieser Website
    Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn
    Beliebte Tutorials
    Mehr>
    Neueste Downloads
    Mehr>
    Web-Effekte
    Quellcode der Website
    Website-Materialien
    Frontend-Vorlage