본문 바로가기
공부자료/자바스크립트

버튼에 이미지 넣기

by MIS경영정보 2013. 8. 31.
반응형

 

 

 그림파일이 mis 이고 확장자가 jpg인 경우(mis.jpg)



<button type="button" title="test" style="background:URL('/mis/jpg');border:0px; width:100px; height:30px; cursor:pointer;" onclick="javascript:test();"></button>

 

 

<button type="button" title="test" style="background:URL('mis.jpg');border:0px; width:100px; height:30px; cursor:pointer;" onclick="javascript:memberForm();"></button>

'공부자료 > 자바스크립트' 카테고리의 다른 글

새창 띄우기, 창 닫기  (0) 2013.08.21

댓글