16
조회 수 : 11931 신고 : 0
미리보기 : |
---|
아래소스를 body 안에 넣으면 전체페이지 드래그 금지가 되고, table 안에 넣으면 해당 테이블에만, tr 에 넣으면 해당 tr에만 드래그가 안되는 소스입니다.
oncontextmenu="return false" ondragstart="return false" onselectstart="return false"
ex)<body oncontextmenu="return false" ondragstart="return false" onselectstart="return false">
파이어폭스에서 드래그금지가 되지 않을시 아래 스크립트도 같이 삽입해주세요.
<script type="text/javascript">
var omitformtags=["input", "textarea", "select"]
omitformtags=omitformtags.join("|")
function disableselect(e){
if (omitformtags.indexOf(e.target.tagName.toLowerCase())==-1)
return false
}
function reEnable(){
return true
}
if (typeof document.onselectstart!="undefined")
document.onselectstart=new Function ("return false")
else{
document.onmousedown=disableselect
document.onmouseup=reEnable
}
</script>
추천수 10단위당 메달이 1개씩 노출되고, 추천수에 따라 배경색이 변하며, 일정수의 추천수를 받을시 아이콘이 붙게됩니다.
- 추천수 50개이상
- 추천수 30개이상
- 추천수 20개이상
- 추천수 10개이상
- 추천수 3개이상