묻고답하기
page_full_width" class="col-xs-12" |cond="$__Context->page_full_width">
[질문/자바] 태이블 보더 속성 적용하는반법좀 <뒹굴님>
2002.12.08 01:18
var hex = new Array(6)
hex[0] = "FF"
hex[1] = "CC"
hex[2] = "99"
hex[3] = "66"
hex[4] = "33"
hex[5] = "00"
function show(triplet) {
document.color.SelColor.value ='#' + triplet
tbcolor.style.borderColor='#' + triplet // 이부분이 문제에여..
document.color.SelColor2.style.background-color ='#' + triplet // 이거뚜 에러나네여 ㅡ_ㅜ 이건 - <-- 요놈이 문제인듯한대... background-color 이건 어떻케 값을주저?? text 박스인대...
}
function drawCell(red, green, blue) {
document.write('<TD BGCOLOR="#' + red + green + blue + '" onmouseover="colortb.style.backgroundColor=''+ red + green + blue +''"onmouseout="colortb.style.backgroundColor='#ffffff'">')
document.write('<A HREF="javascript:show('' + (red + green + blue) + '')">')
document.write('<IMG SRC="line.gif" BORDER=0 HEIGHT=12 WIDTH=12>')
document.write('</A>')
document.write('</TD>')
}
function drawRow(red, blue) {
document.write('<TR>')
for (var i = 0; i < 6; ++i) {
drawCell(red, hex[i], blue)
}
document.write('</TR>')
}
function drawTable(blue) {
document.write('<TABLE ID=ColorTable CELLPADDING=0 CELLSPACING=0 BORDER=0>')
for (var i = 0; i < 6; ++i) {
drawRow(hex[i], blue)
}
document.write('</TABLE>')
}
function drawCube() {
document.write('<TABLE ID=ColorTable CELLPADDING=0 CELLSPACING=0 BORDER=0 align=center><TR>')
for (var i = 0; i < 6; ++i) {
document.write('<TD bgcolor=ffffff>')
drawTable(hex[i])
document.write('</TD>')
}
document.write('</TR></TABLE>')
}
drawCube()
이게 스크립트이구염
<table id="tbcolor" border="1" cellpadding="0" cellspacing="0" bordercolordark="white" ordercolorlight="black">
<tr>
<td width="488">
</td>
<td width="488">
</td>
</tr>
<tr>
<td width="488">
</td>
<td width="488">
</td>
</tr>
</table>
글구 태이블하나더 id =colortb
이거든요 -0- 색상팔래트에서 가져온값을 태이블 border 에적용하려는대 안되는군요..
hex[0] = "FF"
hex[1] = "CC"
hex[2] = "99"
hex[3] = "66"
hex[4] = "33"
hex[5] = "00"
function show(triplet) {
document.color.SelColor.value ='#' + triplet
tbcolor.style.borderColor='#' + triplet // 이부분이 문제에여..
document.color.SelColor2.style.background-color ='#' + triplet // 이거뚜 에러나네여 ㅡ_ㅜ 이건 - <-- 요놈이 문제인듯한대... background-color 이건 어떻케 값을주저?? text 박스인대...
}
function drawCell(red, green, blue) {
document.write('<TD BGCOLOR="#' + red + green + blue + '" onmouseover="colortb.style.backgroundColor=''+ red + green + blue +''"onmouseout="colortb.style.backgroundColor='#ffffff'">')
document.write('<A HREF="javascript:show('' + (red + green + blue) + '')">')
document.write('<IMG SRC="line.gif" BORDER=0 HEIGHT=12 WIDTH=12>')
document.write('</A>')
document.write('</TD>')
}
function drawRow(red, blue) {
document.write('<TR>')
for (var i = 0; i < 6; ++i) {
drawCell(red, hex[i], blue)
}
document.write('</TR>')
}
function drawTable(blue) {
document.write('<TABLE ID=ColorTable CELLPADDING=0 CELLSPACING=0 BORDER=0>')
for (var i = 0; i < 6; ++i) {
drawRow(hex[i], blue)
}
document.write('</TABLE>')
}
function drawCube() {
document.write('<TABLE ID=ColorTable CELLPADDING=0 CELLSPACING=0 BORDER=0 align=center><TR>')
for (var i = 0; i < 6; ++i) {
document.write('<TD bgcolor=ffffff>')
drawTable(hex[i])
document.write('</TD>')
}
document.write('</TR></TABLE>')
}
drawCube()
이게 스크립트이구염
<table id="tbcolor" border="1" cellpadding="0" cellspacing="0" bordercolordark="white" ordercolorlight="black">
<tr>
<td width="488">
</td>
<td width="488">
</td>
</tr>
<tr>
<td width="488">
</td>
<td width="488">
</td>
</tr>
</table>
글구 태이블하나더 id =colortb
이거든요 -0- 색상팔래트에서 가져온값을 태이블 border 에적용하려는대 안되는군요..