點一下色碼表看變化

 

 

 

 

 

 

 

捲軸語法

貼於<HEAD>與</HEAD>之間

<style type="text/css">
body {
scrollbar-arrow-color:#ccffff;
scrollbar-base-color:#144B9E;
scrollbar-dark-shadow-color:#ccffff;
scrollbar-track-color:#144B9E;
}
</style>

 

音樂播放器語法

貼於<TD>與</TD>之間

<script>
<!-- Enter here the url or source of the image to turn on the background music as shown below -->
ima2="http://java.6-do.com/pic/play.gif"
<!-- Enter here the url for the background sound -->
musi2="音樂網址"
<!-- Don't edit from here on -->
document.write(" <div id='se2' style='position:absolute;left:-3333'><embed src='"+musi2+"' hidden=true autostart='true' loop=-1></div>")
document.write("<img src="+ima2+" onclick=apag2() style='cursor:pointer'>")
function apag2(){
se2.innerHTML="<embed src='"+musi2+"' hidden=true autostart='true' loop=-1>"
}
</script>
<script>
<!-- Enter here the url or source of the image to turn off the background music as shown below -->
ima21="http://java.6-do.com/pic/stop.gif"
<!-- Don't edit from here on -->
document.write("<img src="+ima21+" onclick=apag21() style='cursor:pointer'>")
function apag21(){
se2.innerHTML=""
}
</script>

 

背景圖變色語法

貼於<BODY>與</BODY>之間

<!-------JavaScript列出16進位色碼並改變背景色 START-------->
<script LANGUAGE="JavaScript">
<!--
var hex = new Array(6)
// assign non-dithered descriptors
hex[0] = "FF"
hex[1] = "CC"
hex[2] = "99"
hex[3] = "66"
hex[4] = "33"
hex[5] = "00"
function display(triplet) {
document.bgColor = '#' + triplet
}
function drawCell(red, green, blue) {
document.write('<TD BGCOLOR="#' + red + green + blue + '">')
document.write('<A HREF="javascript:display(\'' + (red + green + blue) + '\')">')
document.write('<IMG SRC="images/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 CELLPADDING=0 CELLSPACING=0 BORDER=0>')
for (var i = 0; i < 6; ++i) {
drawRow(hex[i], blue)
}
document.write('</TABLE>')
}
function drawCube() {
document.write('<center><TABLE CELLPADDING=5 CELLSPACING=0 BORDER=1 BORDERCOLOR="#CCCCFF"><TR>')
for (var i = 0; i < 6; ++i) {
document.write('<TD BGCOLOR="#FFFFFF">')
drawTable(hex[i])
document.write('</TD>')
}
document.write('</TR></TABLE>')
}
drawCube()
// -->
</script>
<!-------JavaScript列出16進位色碼並改變背景色 END-------->