0

I want to have a function for my website that lets users tag other users/articles. But, anchor tags are not supported inside textareas. So, I set the background to transparent for the textarea and places a div beneath it. On the keyup event, the div is populated with the value of the textarea. The only problem is that the user can't see the cursor since it's transparent. Any ideas?

4

1 回答 1

1

您可以通过 CSS 执行此操作...检查链接http://beradrian.wordpress.com/2008/01/08/cross-browser-custom-css-cursors/

input, textarea {
    cursor: url(cursor.cur);
}
于 2012-05-21T10:01:25.353 回答