語法展示:: http://home.graffiti.net/edfdsffasdf/
請用IE6.0或更新版本觀看語法特效展示
將以下程式碼複製,貼在<body>及</body>標籤之間。
<center>
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td>
<script language="JavaScript">
<!--
function webcolor(c){
document.bgColor="#"+c.r1.options[c.r1.selectedIndex].text+c.r2.options[c.r2.selectedIndex].text+c.g1.options[c.g1.selectedIndex].text+c.g2.options[c.g2.selectedIndex].text+c.b1.options[c.b1.selectedIndex].text+c.b2.options[c.b2.selectedIndex].text;
}
-->
</script>
<form name="c">
<select name="r1" size="16" onChange="webcolor(this.form)">
<option>0</option>
<option>1</option><option>2</option><option>3</option>
<option>4</option><option>5</option><option>6</option>
<option>7</option><option>8</option><option>9</option>
<option>A</option><option>B</option><option>C</option>
<option>D</option><option>E</option><option selected>F</option>
</select>
<select name="r2" size="16" onChange="webcolor(this.form)">
<option>0</option>
<option>1</option><option>2</option><option>3</option>
<option>4</option><option>5</option><option>6</option>
<option>7</option><option>8</option><option>9</option>
<option>A</option><option>B</option><option>C</option>
<option>D</option><option>E</option><option selected>F</option>
</select>
<select name="g1" size="16" onChange="webcolor(this.form)">
<option>0</option>
<option>1</option><option>2</option><option>3</option>
<option>4</option><option>5</option><option>6</option>
<option>7</option><option>8</option><option>9</option>
<option>A</option><option>B</option><option>C</option>
<option>D</option><option selected>E</option><option>F</option>
</select>
<select name="g2" size="16" onChange="webcolor(this.form)">
<option>0</option>
<option>1</option><option>2</option><option>3</option>
<option>4</option><option>5</option><option>6</option>
<option>7</option><option>8</option><option>9</option>
<option selected>A</option><option>B</option><option>C</option>
<option>D</option><option>E</option><option>F</option>
</select>
<select name="b1" size="16" onChange="webcolor(this.form)">
<option>0</option>
<option>1</option><option>2</option><option>3</option>
<option>4</option><option>5</option><option>6</option>
<option>7</option><option>8</option><option>9</option>
<option>A</option><option>B</option><option>C</option>
<option selected>D</option><option>E</option><option>F</option>
</select>
<select name="b2" size="16" onChange="webcolor(this.form)">
<option>0</option>
<option>1</option><option>2</option><option>3</option>
<option>4</option><option selected>5</option><option>6</option>
<option>7</option><option>8</option><option>9</option>
<option>A</option><option>B</option><option>C</option>
<option>D</option><option>E</option><option>F</option>
</select>
</form></td>
</tr>
</table>
</center>
留言列表