摘要: 一:UTF8编码函数functionURLEncode(Str){if(Str==null||Str=="")return"";varnewStr="";functiontoCase(sStr){returnsStr.toString(16).toUpperCase();}for(vari=0,icode,len=Str.length;i<len;i++){icode=Str.charCod... 阅读全文
posted @ 2010-11-06 14:27 Look_Sun 阅读(1980) 评论(0) 推荐(0) 编辑
摘要: 上传预览我们可以这么写<scriptlanguage="javascript">functiontest(){document.all.showimg.src=document.all.file1.value;}</script><imgid="showimg"><inputtype="file"id="file1"onchange="test()">... 阅读全文
posted @ 2010-11-06 14:26 Look_Sun 阅读(6890) 评论(0) 推荐(1) 编辑