图片替换
<input type="button" onclick="addImg('250.bmp')"></input> <div style=" height:100px; width: 315px; " > <div id="MyFile"> <div id='div0'> <img src="247.bmp" id="img1"/> </div> </div> </div> <script> /******以替换结点的方法来替换图片*******/ function addImg(temp) { j=0; document.all('div0').removeNode(true); var str ="<div id='div"+j+"'><
ASCII(HEX) TO CHAR
<input name="HexInput" style="width:280px" type="input" value="43 00 2d 00 48 00 41 00"></input><br/><input type="button" value="转换" onclick="ReturnChar()" ></input><br/><input name="CharOutput" style="width:280px" type="input" value=""></input><script> //ascII(hex) to 字符串function ReturnChar(){var Hex=HexInput.value;var arr=Hex
javascript判断大写字母
<script> //判断传入字符是否是大写字母,字符串的话只判断首字母 function checkisBF(ch) { if((ch.charCodeAt(0)>=65)&&(ch.charCodeAt(0)<=90)) { } else { alert("输入的首字符必须是大写字母"); } } </script>[@more@]