<script language="javascript">
function encodeMyHtml(html) {
encodedHtml = escape(html);
encodedHtml = encodedHtml.replace(g,"%2F");
encodedHtml = encodedHtml.replace(//?/g,"%3F");
encodedHtml = encodedHtml.replace(/=/g,"%3D");
encodedHtml = encodedHtml.replace(/&/g,"%26");
encodedHtml = encodedHtml.replace(/@/g,"%40");
alert(encodedHtml);
var nn=encodedHtml.split("%5C");
//window.htmlEncoded.value = nn;
window.htmlEncoded.value = encodedHtml;
alert(nn[nn.length-1]);
window.htmlEncoded.value+="取得文件名:"+nn[nn.length-1];
}
function testEncodedHtml(html) {
testEncodedHtmlArea.innerHTML = unescape(html);
}
</script>