select
메뉴에서 값을 선택하면 어떻게 배경 이미지를 변경할 수 있습니까?텍스트 영역의 배경 이미지를 변경하는 방법
<html>
<head>
<title> Your Title </title>
<script>
function kool()
{
`enter code here`abc.style.background="img1.bmp"
}
</script>
</head>
<body>
<textarea name="abc">
1) Make paper airplanes out of the exam. Aim them at the instructor's left nostril.
2) Bring cheerleaders during an exam.
</textarea>
<select id="xyz" onchange="kool()">
<option value="A">Image 1</option>
<option value="B">Image 2</option>
</select>
</body>
</html>
내 이미지에 대한 경로는 어디에 지정합니까? style.backgroundImage = 'url ('img1.bmp + this.value + ')'; " – subanki
'value ="에서' '! –
wow Douwe ur awsome, 고맙네, 너의 코드에서 – subanki