티스토리 뷰
function weaponOrganiser(){
alert("weapon test");
var weaponOrg = "Vector";
//G36C
if(weaponOrg == "G36C"){
//$("#G36C").css('background-image', 'url("' + images/weapons/G36C/G36C.png + '")');
$('#G36C').css('background-image', 'url("/images/weapons/G36C/G36C.png")');
alert("G36C applied");
}
else if(weaponOrg == "Vector"){
//$("#G36C").css('background-image', 'url("' + images/weapons/Vector/Vector.png + '")');
$('#G36C').css('background-image', 'url("/images/weapons/Vector/Vector.png")');
alert("Vector applied");
}
}
jQuery(object).css("background
'■ 프론트엔드 ■ > jQuery' 카테고리의 다른 글
| checkbox, radio, text 각 타입 - 체크및 비활성화 (0) | 2013.10.13 |
|---|---|
| 모바일웹에서 버튼을 길게 눌렀을때 뜨는 이미지저장 (context menu)막기 (0) | 2013.10.13 |
| .on() - 지금 또는 나중에 이벤트처리 묶음 (0) | 2013.10.13 |
| .offset() - 좌표찾기, 좌표셋팅 (0) | 2013.10.13 |
| .val() - 체크박스, 인풋박스 값가져오기 (0) | 2013.10.13 |
댓글