日期:2014-05-16 浏览次数:20361 次
function backgroundChoice (bgColor) {
switch (bgColor) {
case "White":
document.getElementById("bgColor").src = "T_White.png";
//document.getElementById("designP").value = "This is Design 1";
break;
case "Yellow":
document.getElementById("bgColor").src = "T_Yellow.png";
// document.getElementById("designP").value = "This is Design 2";
break;
case "Blue":
document.getElementById("bgColor").src = "T_Blue.png";
// document.getElementById("designP").value = "This is Design 3";
break;
case "Green":
document.getElementById("bgColor").src = "T_Green.png";
// document.getElementById("designP").value = "This is Design 4";
break;
case "Pink":
document.getElementById("bgColor").src = "T_Pink.png";
// document.getElementById("designP").value = "This is Design 5";
break;
case "Red":
document.getElementById("bgColor").src = "T_Red.png";
// document.getElementById("designP").value = "This is Design 6";
break;
case "Purple":
document.getElementById("bgColor").src = "T_Purple.png";
// document.getElementById("designP").value = "This is Design 7";
break;
case "Gray":
document.getElementById("bgColor").src = "T_Gray.png";
// document.getElementById("designP").value = "This is Design 8";
break;
var backGround = {
White : 'T_White.png',
Yellow : 'T_Yellow.png',
Blue : 'T_Blue.png',
Green : 'T_Green.png',
Pink : 'T_Pink.png',
Red : 'T_Red.png',
Purple : 'T_Purple.