//测试选中值
<input type=button value=ok
onmouseover="alert(document.selection.createRange().text)">document.selection.createRange().text取到值后你自己组合相加就可以了.
<input type=button value=ok
onmouseover="alert(document.selection.createRange().text)">document.selection.createRange().text取到值后你自己组合相加就可以了.
onmouseover="alert(document.selection.createRange().text)">选中这几个字中的其中几个来试试