admin |
設置を極力簡単にして、こんな感じでも良いのかな。
http://homepage2.nifty.com/godakaz/laboratory/040402a/rnd_tbl.html
<html> <head> <script type="text/javascript"> <!-- var n = 3; // テーブルの種類 function ViewTbl(){ rn = Math.ceil(Math.random()*10); tn = "t" + rn % n ; ob = document.getElementById(tn); ob.style.display = "block"; } //--> </script> </head> <body onload="ViewTbl();">
<table id="t0" style="border:double 4px #ccccff;width:20em;height:10em;display:none;"> <tr> <td style="text-align:center;vertical-align:middle"><p>table_0, id=t0</p></td> </tr> </table>
<table id="t1" style="border:double 4px #ccffcc;width:20em;height:10em;display:none;"> <tr> <td style="text-align:center;vertical-align:middle"><p>table_1, id=t1</p></td> </tr> </table>
<table id="t2" style="border:double 4px #ffcccc;width:20em;height:10em;display:none;"> <tr> <td style="text-align:center;vertical-align:middle"><p>table_2, id=t2</p></td> </tr> </table>
</body> </html> |
|