在 html 表单中的光标处嵌入一些文本
通过一个 textarea 标签,当用户单击此处时,我可以使用一些带有 onMouseDown 的 javascript 来获取光标的坐标。现在我希望能够写一些文字来阐述这一点。有什么办法可以做到这一点吗? 谢谢你的帮助, 安迪尼克
Gvien a textarea tag, I can get the coordinates of the cursor using some javascript with onMouseDown when a user clicks there. Now I want to be able to write some text to that point. Is there any way to do that?
Thanks for you help,
Andynic
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你问的问题可能很难。我发现 这里的代码和教程工作得很好。它至少会让你开始。
这是代码(如果您不想点击链接):
What you're asking can be difficult. I've found that the code and tutorial here work very well. It will at least get you started.
Here's the code (if you don't want to follow the link):