커서위치에 글자 삽입 스크립트
function insertAtCursor(areaId,text) { var txtarea = document.getElementById(areaId); var scrollPos = txtarea.scrollTop; var strPos = 0; var br = ((txtarea.selectionStart || txtarea.selectionStart == '0') ? "ff" : (document.selection ? "ie" : false ) ); if (br == "ie") { txtarea.focus(); var range = document.selection.createRange(); range.moveStart ('character', -txtarea.value.length); strPos = ..
웹프로그래밍/js
2011. 6. 1. 16:56
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
TAG
- CSS
- PHP
- JQuery
- API
- sencha touch
- IE
- iphone
- nginx
- centos
- Wordpress
- iis
- laravel
- classic asp
- Debug
- Android
- javascript
- JSON
- nodejs
- git
- macos
- mssql
- ASP
- 안드로이드
- Docker
- Prototype
- Linux
- IOS
- Mac
- 한글
- 워드프레스
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | ||||
| 4 | 5 | 6 | 7 | 8 | 9 | 10 |
| 11 | 12 | 13 | 14 | 15 | 16 | 17 |
| 18 | 19 | 20 | 21 | 22 | 23 | 24 |
| 25 | 26 | 27 | 28 | 29 | 30 | 31 |
글 보관함