묻고답하기

접속 할 때마다 셀 배경을 바꾸고 싶습니다.

신의키스님 홈에 있는 "접속 할 때마다 데이블배경을 바꾸는 소스"를 바탕으로 적용했는데..
안되는군요...^^;;;


http://coolbox.co.kr
홈 메인화면에 붉은 색 사진이 들어가 있는 부분입니다.

아래의 소스는 지금 제 홈에 쓰여진 소스입니다.

---------------------------------------------------------------------
<html>

<head>
<meta http-equiv="content-type" content="text/html; charset=euc-kr">
<title>제목 없음</title>
<meta name="generator" content="Namo WebEditor v5.0">
<style>
<!--
body {background-color:transparent}
-->
</style>
<script language="JavaScript">
<!--
var spcbg
do spcbg = Math.random().toString().charAt(2);
while (spcbg > 13 || spcbg < 1);

document.writeln("<style><!--");
document.writeln("tdbg {background:url(image/bs" + spcbg + ".jpg)}");
document.writeln("--></style>");
//-->
</script>
</head>

<body bgcolor="white" text="black" link="blue" vlink="purple" alink="red" leftmargin="0" marginwidth="0" scroll="no" topmargin="0" marginheight="0" background="image/bsdc1.jpg">
<table cellpadding="0" cellspacing="0" width="100%" height="100%">
    <tr>
        <td width="130" style="border-right-width:1px; border-right-color:rgb(102,102,102); border-right-style:solid;">
            <p><img src="image/menu.gif" width="130" height="860" border="0" usemap="#ImageMap1"></p>
        </td>
        <td width="320" style="border-right-width:1px; border-right-color:rgb(102,102,102); border-right-style:solid;">
            <p><iframe src="fron2.htm" allowTransparency="true" frameborder="0" width="100%" height="100%" marginwidth="0" marginheight="0" scrolling="no" style="border:0" name="ac1"></iframe></p>
        </td>
      *  <td class="tdbg" width="540" style="border-right-width:1px; border-right-color:rgb(102,102,102); border-right-style:solid;" background="image/bs4.jpg">
<p><iframe src="fron2.htm" allowTransparency="true" frameborder="0" width="100%" height="100%" marginwidth="0" marginheight="0" scrolling="auto" style="border:0" name="ac2"></iframe></p>
        </td>
        <td>
            <p> </p>
        </td>
    </tr>
</table>
------------------------------------------------------------------------

*표를 한 부분이 랜덤배경을 적용할 셀 부분입니다.
셀 배경에 그림을 깐 이유는 그 셀에서 아이프레임을 돌리려고 했기 때문입니다.
테이블에 적용하던 tablebg 를 혹시나 해서 tdbg로 바꿔봤지만..^^;;;
별 변화가 없더군요..

혹시 셀에선 이런 방법이 안되는 것은 아니죠? -_-;;;;
이곳 게시판들과 여러 곳을 뒤져봐도 셀에 대한 부분은 없더군요..ㅍ_ㅍ..