<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
>
<HTML>
<TÊTE>
<TITLE>BBS </TITLE>
<META NAME="Générateur" CONTENT="EditPlus">
<META NAME="Auteur" CONTENT="">
<META NAME="Mots clés" CONTENT="">
<META NOM="Description" CONTENT="">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"/>
<LANGUE SCRIPT="JavaScript">
<!--
function prints(str) {
var matchPIC = new RegExp("((?:http|https|ftp|mms|rtsp)://(&(?=amp;)|[A-Za-z0- 9./=?%_~@#:;+-])+(gif|jpg|png))", "ig");
var matchURL = new RegExp("((?:http|https|ftp|mms|rtsp)://(&(?=amp;)|[A-Za-z0-9./=?%_~ @&#:;+-])+)","ig");
var str2 = "";
str2 =str.replace(" "," ")
si(matchPIC.test(str)){
document.write(str2.replace(matchPIC, "<img src="$1" suggest="$1"></img>"));
}autre{
document.write(str2.replace(matchURL, "<a target="_blank" href="$1">$1</a>"));
}
}
//-->
</SCRIPT>
</HEAD>
<CORPS>
<LANGUE SCRIPT="JavaScript">
<!--
var str = " var str2 = " var str3 = " http://www.csdn.net ";
document.write("<BR>str为"+str+"<BR>处理后为:<BR>");
impressions(str);
str = "" ;
document.write("<BR>str2为"+str2+"<BR>处理后为:<BR>");
impressions(str2);
str2= "";
document.write("<BR>str3为"+str3+"<BR>处理后为:<BR>");
impressions(str3);
//-->
</SCRIPT>
</CORPS>
</HTML>