자바랑 xhtml로 이거 만드는거 배우는데 맨날 쳐자서 하나도 모르겠어요 ㅠㅠ
RGB 16진수 입력이랑 아래에 textarea 에 어떻게해야 출력되는지 거리를 잘 모르겠어요 ㅠㅠ
도와주세요 ㅜㅜ
이건 제가 발로만든 태그에요.. 도와주세요
--------------------------
<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\"
\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">
<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"ko\" lang=\"ko\">
<head>
</head>
<body>
< language=\"\">
function colorChange1(c){document.bgColor=c.value;}
function colorChange2(){document.bgColor=\'\"#\"+\"r\"+\"g\"+\"b\"\';}
</>
<form name=\"form1\">
<input type=\"text\" name=\"color1\" /><input type=\"button\" name=\"b1\" value=\"색변경\" =\"colorChange1(document.form1.color1);\" /><br /><br />
R: <input type=\"text\" name=\"r\" /> G: <input type=\"text\" name=\"g\" /> B: <input type=\"text\" name=\"b\" />
<input type=\"button\" value=\"색변경\" =\"colorChange2();\" /> <br /><br />
<textarea cols=100 rows=10>document.write(\"색상이 +\"b1\"+(으)로 변경되었습니다.\")</textarea>
</form>
</body>
</html>
시러 숙제 좀 직접 풀어라
ㅜㅜ 정말 모르겠어서 도움부탁드리는거에요 ㅠㅠ 도와주세요
ㅋㅋ이게왜자바에요 ㅗㅗ엿엿쌍뻐큐
는 농담이고 저도 잘모루긴하다만 하면 금방할 과제같네여 화이팅
아닌가요 ㅠㅠ 제발.. 도와주세요
닌 이게 자바냐.. 자바 스크립크지.. 그리고 자바스크립트 선언도 잘 안 되어있네. 근데 dtd는 왜 있는거야? 그래서 xhtml인가..?
어 저기 안써있네요 ㅜ 제 꺼에는 스크립트 선언은 되어있어요
하나도 감이안오네요 ㅜㅜ
function onChange(){ var a = document.getElementById(\'b1\').value; var b = document.getElementById(\'b2\').value; document.getElementById(\'tArea\').value = \"색상이\"+ a 로 변경되었습니다. }
대강 저기 애들 한태 아이디 주고 저렇게 해주면 씹코드 되지만 결과는 나올거임