想了一天没有想出来,诚心请高手帮忙
<script language= "javascript ">
function formonclick(i){
if(i==1){
var mm_1=prompt( "加粗文字 ", "请输入要加粗的文字! ");
if(mm_1!=null){
mm_1= "[b] "+mm_1+ "[/b] ";
}
}
if(i==2){
var mm_2=prompt( "倾斜文字 ", "请输入要倾斜的文字! ");
if(mm_2!=null){
mm_2= "[i] "+mm_2+ "[/i] ";
alert(mm_2);
}
}
if(i==3){
var mm_3=prompt( "下划线文字 ", "请输入要带下划线的文字! ");
if(mm_3!=null){
mm_3= "[u] "+mm_3+ "[/u] ";
}
}
if(i==4){
var mm_4=prompt( "图片 ", "http:// ");
if(mm_4!=null){
mm_4= "[img src= ' "+mm_4+ " '] ";
}
}
if(i==5){
var mm_5=prompt( "超链接 ", "http:// ");
if(mm_5!=null){
mm_5= "[a href= ' "+mm_5+ " ' target= '_blank '] "+mm_5+ "[/a] ";
}
}
}
</script>
===========================================================================
<form method= "post " name= "send " action= "exsend.asp " onSubmit= "return checkform () ">
<table align= "center " cellpadding= "0 " cellspacing= "0 " id= "send ">
<tr>
<td width= "100 " height= "30 " align= "right " > 主题: </td>
<td width= "580 " align= "left ">
<label>
<input type= "text " name= "title " >
</label> </td>
</tr>
<tr>
<td height= "30 " rowspan= "2 " align= "right " > 内容: </td>
<td height= "28 " align= "left " valign= "middle ">