比如:
<div id="id">
<div id="id0">
This is some sample text. Select this text. This is some sample text. Select this text. This is some sample text. Select this text.
</div>
<div id="id1">
This is some sample text. Select this text. This is some sample text. Select this text. This is some sample text. Select this text.
</div>
<div id="id2">
This is some sample text. Select this text. This is some sample text. Select this text. This is some sample text. Select this text.
</div>
</div>
我想在上边文档中,鼠标点击的任何文档位置加入 一个图标 , 然后保存 图标的位置在数据库中, 这样,需要知道鼠标点击了文档的行列位置. 注意: 文档 和 图标位置 是 分开保存的.
<div id="id">
<div id="id0">
This is some sample text. Select this text. This is some sample text. Select this text. This is some sample text. Select this text.
</div>
<div id="id1">
This is some sample text. Select this text. This is some sample text. Select this text. This is some sample text. Select this text.
</div>
<div id="id2">
This is some sample text. Select this text. This is some sample text. Select this text. This is some sample text. Select this text.
</div>
</div>
我想在上边文档中,鼠标点击的任何文档位置加入 一个图标 , 然后保存 图标的位置在数据库中, 这样,需要知道鼠标点击了文档的行列位置. 注意: 文档 和 图标位置 是 分开保存的.
思路大概就是这样的了!
比较啰嗦而已!
有空请麻烦解决这个问题:
如下:如何获取插入字符的位置?http://bbs.csdn.net/topics/390368345