其实直接可以修改模板就能实现 在留言本模板里找到: <tr bgcolor="#FFFFFF"> <td width="60" height="23"> </td> <td width="82" height="23">您的性别:</td> <td width="443" height="23"><input name="Sex" type="radio" value="boy" checked onclick="document.all.gSex.value=this.value;">先生<input type="radio" name="Sex" value="girl" onclick="document.all.gSex.value=this.value;">女士<input type=hidden name=gSex id=gSex value="boy"></td> </tr>
修改为:
<tr bgcolor="#FFFFFF"> <td width="60" height="23"> </td> <td width="82" height="23">选择头像:</td> <td width="443" height="23"><input name="Sex" type="radio" value="01" checked onclick="document.all.gSex.value=this.value;"><img src=http://bbs.phome.net/ebb_data/smile/ecms1.gif><input type="radio" name="Sex" value="02" onclick="document.all.gSex.value=this.value;"><img src=http://bbs.phome.net/ebb_data/smile/ecms18.gif><input type="radio" name="Sex" value="03" onclick="document.all.gSex.value=this.value;"><img src=http://bbs.phome.net/ebb_data/smile/ecms5.gif><input type=hidden name=gSex id=gSex value="01"></td> </tr>
然后将头像命名为01.gif,02.gif。。。放到/Skin/gbook目录下即可
|