Details | Last modification | View Log | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 338 | schaersvoo | 1 | var welinvullen=["input", "textarea", "select"] |
| 2 | welinvullen=welinvullen.join("|") |
||
| 3 | |||
| 4 | function disableselect(e) |
||
| 5 | { |
||
| 6 | if (welinvullen.indexOf(e.target.tagName.toLowerCase())==-1) |
||
| 7 | { |
||
| 8 | return false |
||
| 9 | } |
||
| 10 | } |
||
| 11 | |||
| 12 | function Aanzetten() |
||
| 13 | { |
||
| 14 | return true |
||
| 15 | } |
||
| 16 | |||
| 17 | if (typeof document.onselectstart!="undefined") |
||
| 18 | { |
||
| 19 | document.onselectstart=new Function ("return false") |
||
| 20 | } |
||
| 21 | else |
||
| 22 | { |
||
| 23 | document.onmousedown=disableselect; |
||
| 24 | document.onmouseup=Aanzetten; |
||
| 25 | } |