Prindol

DESIGN, HTML5, CSS3, DOM, Jquery, JSON, Actionscript2/3, Linux, IIS

You are not logged in.

#1 2013-05-02 10:57:47

skydown
Administrator
Registered: 2011-07-25
Posts: 315

[JAVASCRIPT] 이미지 라벨 선택 하기

<script type="text/javascript">
function imgLabel(name) {
    var obj=document.getElementById(name);
    if(navigator.appVersion.indexOf('MSIE') != -1) {
        obj.click();
    } else {
        obj.checked = true;
    }
}
</script>
<a href="#" class="img img1" onclick="imgLabel('rdo_answer1'); return false;" title="커리어">커리어</a>
<label class="lb lb1" for="rdo_answer1" onclick="imgLabel('rdo_answer1');"><input class="rdi"  name="rdo_answer" id="rdo_answer1" value="1" type="radio" /><img src="http://image.career.co.kr/career_new/event/2013/brandAward/select_txt_01.gif" alt="커리어" /></label>

Offline

Board footer

Powered by FluxBB